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

◆ OnProjectileStopped()

void CGame::OnProjectileStopped ( ProjectileStoppedInfo info)
inlineprotected

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

3658 {
3659 string simulation;
3660
3661 g_Game.ConfigGetText("cfgAmmo " + info.GetAmmoType() + " simulation", simulation);
3662
3663 if (simulation == "shotArrow")
3664 {
3665 string pile;
3666
3667 g_Game.ConfigGetText("cfgAmmo " + info.GetAmmoType() + " spawnPileType", pile);
3668
3669 EntityAI arrow = EntityAI.Cast(g_Game.CreateObjectEx(pile, info.GetPos(), ECE_DYNAMIC_PERSISTENCY));
3670 arrow.PlaceOnSurface();
3671 arrow.SetFromProjectile(info);
3672 }
3673 }
class LogManager EntityAI
const int ECE_DYNAMIC_PERSISTENCY
Определения CentralEconomy.c:33
DayZGame g_Game
Определения DayZGame.c:4074
proto native vector GetPos()
proto native string GetAmmoType()

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