20 string cfg =
"CfgVehicles BarbedWire barbedWireShockEnergyConsumption";
25 if ( energy_consumed )
32 player.MessageImportant(
"*SCRATCH and ELECTROCUTION*" );
44 player.MessageImportant(
"*SCRATCH*" );
56 AI_unit.SetHealth(
"",
"", 0);
ItemBase m_ParentBarbedWire
static const int SOUNDS_SHOCK_COUNT
void SetParentObject(ItemBase wire)
void SoundElectricShock()
static const string m_SoundsShock[SOUNDS_SHOCK_COUNT]
static const int SOUNDS_COLLISION_COUNT
static const string m_SoundsCollision[SOUNDS_COLLISION_COUNT]
override void OnEnter(Object obj)
DEPRECATED UNUSED prototype for damage by BarbedWire, do not use as example.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native CGame GetGame()
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].