Each AI archetype entity has under its 'Damage' properties two fields to specify which bodypart/damage setup to use.
The Body Damage game system allows for setting up damage multipliers for a character's body parts.
These damage multipliers will be used when the character is being hit by bullets, collision, explosions... during the game.
The system is split into two main components:
Debug console variables and commands related to the body damage can be found further below.
The Body Destruction system allows for bodyparts of a character to be made destructible.
The system stores the damage done to defined body parts and triggers destruction events when its health points are depleted.
Destruction Events can also be triggered when the character's health pass a certain threshold.
Destruction events can consist of the following:
Some special features are available for death from Explosions and Microwave Gun.
Note that the Body Destruction system will never alter the damage done to the character itself!
The system is configured through the Body Destructibility xml file.
CVar | Description |
---|---|
g_bodyDamage_log | Enables/Disables body damage console logging. |
g_bodyDestruction_debug | Enables/Disables body destruction on screen logging messages. |
g_bodyDestruction_debugFilter EntityName | Enables detailed debug information on a particular entity. Display information includes:
|
g_bodyDamage_reload OptionalActorName | Reloads BodyDamage xml data for the specified actor (optional parameter), or for everyone if none is provided. |