View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003679 | The Dark Mod | AI | public | 27.02.2014 15:17 | 09.03.2014 00:24 |
Reporter | grayman | Assigned To | grayman | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | TDM 2.01 | ||||
Target Version | TDM 2.02 | Fixed in Version | TDM 2.02 | ||
Summary | 0003679: death_script needs to know who's responsible for death | ||||
Description | When 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". | ||||
Tags | No tags attached. | ||||
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 |
|
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 |