20 string cfg =
"CfgVehicles BarbedWire barbedWireShockEnergyConsumption";
21 float needed_energy =
g_Game.ConfigGetFloat(cfg);
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.
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].