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

◆ OnServerSteppedOn()

void TrapBase::OnServerSteppedOn ( Object obj,
string damageZone )
inlineprotected

Generic limp handling

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

137 {
138 if (obj.IsInherited(CarWheel))
139 {
140 obj.ProcessDirectDamage(DamageType.CLOSE_COMBAT, this, damageZone, "BearTrapHit_CarWheel", "0 0 0", 1);
141 if (m_UpdateTimer.IsRunning())
142 {
144 }
145
146 SetInactive(false);
147 Synch(EntityAI.Cast(obj));
148
149 return;
150 }
151
152 if (obj.IsDamageDestroyed())
153 return;
154
155 string zoneUsed = damageZone;
156 if (damageZone == "zone_leg_random")
157 {
158 zoneUsed = "LeftLeg";
159 if (Math.RandomIntInclusive(0, 1) == 1)
160 zoneUsed = "RightLeg";
161 }
162
164 ZombieBase zombie;
165 if (obj.IsInherited(PlayerBase) || (Class.CastTo(zombie,obj) && !zombie.IsCrawling() && Math.RandomIntInclusive(0, 1) == 1))
166 {
168 }
169
170 obj.ProcessDirectDamage(DamageType.CLOSE_COMBAT, this, zoneUsed, "BearTrapHit", "0 0 0", 1);
171
172 SetInactive(false);
173 Synch(EntityAI.Cast(obj));
174 }
class LogManager EntityAI
DamageType
exposed from C++ (do not change)
Определения DamageSystem.c:11
ref Timer m_UpdateTimer
Определения RadialMenu.c:20
void Synch(EntityAI victim)
keeping "step" here for consistency only
Определения TrapBase.c:281
void SetInactive(bool stop_timer=true)
Определения TrapBase.c:459
override void Stop()
Определения DayZPlayerImplement.c:64
void CauseVictimToStartLimping(Object obj, string damagedZone)
Определения Trap_Bear.c:177

Перекрестные ссылки Class::CastTo(), CauseVictimToStartLimping(), m_UpdateTimer, Math::RandomIntInclusive(), SetInactive() и Synch().

Используется в OnSteppedOn(), OnUpdate() и OnUpdate().