PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
DamageSystem.c File Reference

Data Structures

class  TotalDamageResult
 

Typedefs

typedef map< string, ref array< string > > DamageZoneMap
 

Enumerations

enum  DamageType
 exposed from C++ (do not change) More...
 

Functions

enum DamageType CloseCombatDamage (EntityAI source, Object targetObject, int targetComponentIndex, string ammoTypeName, vector worldPos, int directDamageFlags=ProcessDirectDamageFlags.ALL_TRANSFER)
 
static proto native void CloseCombatDamageName (EntityAI source, Object targetObject, string targetComponentName, string ammoTypeName, vector worldPos, int directDamageFlags=ProcessDirectDamageFlags.ALL_TRANSFER)
 
static proto native void ExplosionDamage (EntityAI source, Object directHitObject, string ammoTypeName, vector worldPos, int damageType)
 
static bool GetDamageZoneMap (EntityAI entity, out DamageZoneMap zoneMap)
 
static bool GetDamageZoneFromComponentName (notnull EntityAI entity, string component, out string damageZone)
 Returns damage zone to which the named component belongs.
 
static bool GetComponentNamesFromDamageZone (notnull EntityAI entity, string damageZone, out array< string > componentNames)
 
static string GetDamageDisplayName (EntityAI entity, string zone)
 
static void ResetAllZones (EntityAI entity)
 

Variables

 CLOSE_COMBAT
 
 FIRE_ARM
 
 EXPLOSION
 
 STUN
 
 CUSTOM
 

Typedef Documentation

◆ DamageZoneMap

Enumeration Type Documentation

◆ DamageType

enum DamageType

exposed from C++ (do not change)

Function Documentation

◆ CloseCombatDamage()

enum DamageType CloseCombatDamage ( EntityAI  source,
Object  targetObject,
int  targetComponentIndex,
string  ammoTypeName,
vector  worldPos,
int  directDamageFlags = ProcessDirectDamageFlags.ALL_TRANSFER 
)

◆ CloseCombatDamageName()

static proto native void CloseCombatDamageName ( EntityAI  source,
Object  targetObject,
string  targetComponentName,
string  ammoTypeName,
vector  worldPos,
int  directDamageFlags = ProcessDirectDamageFlags.ALL_TRANSFER 
)
static

◆ ExplosionDamage()

static proto native void ExplosionDamage ( EntityAI  source,
Object  directHitObject,
string  ammoTypeName,
vector  worldPos,
int  damageType 
)
static

◆ GetComponentNamesFromDamageZone()

static bool GetComponentNamesFromDamageZone ( notnull EntityAI  entity,
string  damageZone,
out array< string componentNames 
)
static

◆ GetDamageDisplayName()

static string GetDamageDisplayName ( EntityAI  entity,
string  zone 
)
static

References string::Hash().

◆ GetDamageZoneFromComponentName()

static bool GetDamageZoneFromComponentName ( notnull EntityAI  entity,
string  component,
out string  damageZone 
)
static

Returns damage zone to which the named component belongs.

References component, and string::ToLower().

◆ GetDamageZoneMap()

static bool GetDamageZoneMap ( EntityAI  entity,
out DamageZoneMap  zoneMap 
)
static

◆ ResetAllZones()

static void ResetAllZones ( EntityAI  entity)
static

Variable Documentation

◆ CLOSE_COMBAT

CLOSE_COMBAT

◆ CUSTOM

CUSTOM

◆ EXPLOSION

EXPLOSION

◆ FIRE_ARM

FIRE_ARM

◆ STUN

STUN