34 else if (
entity.IsMagazine())
74 for (
int j = 0;
j <
inner.Count();
j++)
100 else if (
entity.IsMagazine())
128 entity.SetHealth(
"",
"Health",
entity.GetMaxHealth(
"",
"Health"));
129 entity.SetHealth(
"",
"Shock",
entity.GetMaxHealth(
"",
"Shock"));
130 entity.SetHealth(
"",
"Blood",
entity.GetMaxHealth(
"",
"Blood"));
map< string, ref array< string > > DamageZoneMap
static string GetDamageDisplayName(EntityAI entity, string zone)
static proto native void CloseCombatDamageName(EntityAI source, Object targetObject, string targetComponentName, string ammoTypeName, vector worldPos, int directDamageFlags=ProcessDirectDamageFlags.ALL_TRANSFER)
static bool GetDamageZoneMap(EntityAI entity, out DamageZoneMap zoneMap)
enum DamageType CloseCombatDamage(EntityAI source, Object targetObject, int targetComponentIndex, string ammoTypeName, vector worldPos, int directDamageFlags=ProcessDirectDamageFlags.ALL_TRANSFER)
static bool GetComponentNamesFromDamageZone(notnull EntityAI entity, string damageZone, out array< string > componentNames)
static proto native void ExplosionDamage(EntityAI source, Object directHitObject, string ammoTypeName, vector worldPos, int damageType)
static bool GetDamageZoneFromComponentName(notnull EntityAI entity, string component, out string damageZone)
Returns damage zone to which the named component belongs.
static void ResetAllZones(EntityAI entity)
DamageType
exposed from C++ (do not change)
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
proto native float GetDamage(string zoneName, string healthType)
proto native float GetHighestDamage(string healthType)
proto native CGame GetGame()
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.