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

◆ OnStepEvent()

override void DayZInfected::OnStepEvent ( int event_id,
string event_user_string )
inlineprotected

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

1156 {
1157 super.OnStepEvent(event_id, event_user_string);
1158
1159 SurfaceInfo surfaceInfo;
1160 if (event_id % 2 == 0)
1161 {
1162 surfaceInfo = g_Game.GetSurfaceInfoUnderObjectByBone(this, SurfaceAnimationBone.LeftBackLimb);
1163 }
1164 else if (event_id % 2 == 1)
1165 {
1166 surfaceInfo = g_Game.GetSurfaceInfoUnderObjectByBone(this, SurfaceAnimationBone.RightBackLimb);
1167 }
1168
1169 //string surface;
1170 if(surfaceInfo)
1171 {
1172 vector orientation;
1173
1174 if (event_id >= GameConstants.AI_SPRINT_STEP_MIN_ID && event_id <= GameConstants.AI_SPRINT_STEP_MAX_ID)
1175 {
1176 int stepParticleID = surfaceInfo.GetStepParticleId();
1177 if (stepParticleID > 0)
1178 {
1179 orientation = GetOrientation() * (-1);
1180 ParticleManager.GetInstance().PlayInWorldEx(stepParticleID, null, GetPosition(), orientation);
1181 }
1182 }
1183
1184 HandleCeilingDustStepEffect(surfaceInfo);
1185 }
1186 }
vector GetOrientation()
Определения AreaDamageManager.c:306
DayZGame g_Game
Определения DayZGame.c:4074
vector orientation
Определения DustKickupEffects.c:21
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
int[] SurfaceInfo
Определения SurfaceInfo.c:1
void HandleCeilingDustStepEffect(SurfaceInfo surfaceInfo)
Определения ZombieBase.c:1188
proto int GetStepParticleId()
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки GameConstants::AI_SPRINT_STEP_MAX_ID, GameConstants::AI_SPRINT_STEP_MIN_ID, g_Game, GetOrientation(), GetPosition(), SurfaceInfo::GetStepParticleId(), HandleCeilingDustStepEffect(), orientation и ParticleManager().