View Issue Details

IDProjectCategoryView StatusLast Update
0003679The Dark ModAIpublic09.03.2014 00:24
Reportergrayman Assigned Tograyman  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product VersionTDM 2.01 
Target VersionTDM 2.02Fixed in VersionTDM 2.02 
Summary0003679: death_script needs to know who's responsible for death
DescriptionWhen an AI dies, an optional "death_script" can be run.

Atm, the script is told who died.

It should also be told who caused the death.

This is useful when trying to implement an objective like "Only kill in self-defense".
TagsNo tags attached.

Activities

grayman

grayman

09.03.2014 00:24

viewer   ~0006421

Added these AI events:

getAttacker() – returns the entity that attacked the requestor

isPlayerResponsibleForDeath() – returns ‘1’ if the player was responsible for the requestor’s death, ‘0’ otherwise

rev. 5938:

DeadState.cpp
AI.h
AI.cpp
AI_events.cpp
Memory.cpp
Memory.h
Actor.cpp

Issue History

Date Modified Username Field Change
27.02.2014 15:17 grayman New Issue
04.03.2014 20:27 grayman Assigned To => grayman
04.03.2014 20:27 grayman Status new => assigned
09.03.2014 00:24 grayman Note Added: 0006421
09.03.2014 00:24 grayman Status assigned => resolved
09.03.2014 00:24 grayman Resolution open => fixed
09.03.2014 00:24 grayman Fixed in Version => TDM 2.02