DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CauseVictimToStartLimping()

void TrapBase::CauseVictimToStartLimping ( Object obj,
string damagedZone )
inlineprotected

См. определение в файле Trap_Bear.c строка 177

178 {
179 PlayerBase player;
180 ZombieBase zombie;
181 if (Class.CastTo(player,obj))
182 {
183 player.DamageAllLegs(player.GetMaxHealth() * 2); //reduce legs health (not regular DamageSystem damage, does not transfer!)
184 }
185 else if (Class.CastTo(zombie,obj))
186 {
187 zombie.SetHealth("LeftLeg", "Health", 0.0);
188 zombie.SetHealth("RightLeg", "Health", 0.0);
189 }
190 }

Перекрестные ссылки Class::CastTo().

Используется в OnServerSteppedOn().