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

◆ OnProjectileStopped()

void CGame::OnProjectileStopped ( ProjectileStoppedInfo info)
inlineprotected

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

3529 {
3530 string simulation;
3531
3532 g_Game.ConfigGetText("cfgAmmo " + info.GetAmmoType() + " simulation", simulation);
3533
3534 if (simulation == "shotArrow")
3535 {
3536 string pile;
3537
3538 g_Game.ConfigGetText("cfgAmmo " + info.GetAmmoType() + " spawnPileType", pile);
3539
3540 EntityAI arrow = EntityAI.Cast(g_Game.CreateObjectEx(pile, info.GetPos(), ECE_DYNAMIC_PERSISTENCY));
3541 arrow.PlaceOnSurface();
3542 arrow.SetFromProjectile(info);
3543 }
3544 }
class LogManager EntityAI
const int ECE_DYNAMIC_PERSISTENCY
Определения CentralEconomy.c:32
DayZGame g_Game
Определения DayZGame.c:3942
proto native vector GetPos()
proto native string GetAmmoType()

Перекрестные ссылки ECE_DYNAMIC_PERSISTENCY, g_Game, ProjectileStoppedInfo::GetAmmoType() и ProjectileStoppedInfo::GetPos().