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

◆ OnProjectileStoppedInTerrain()

void CGame::OnProjectileStoppedInTerrain ( TerrainCollisionInfo info)
inlineprotected

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

3476 {
3477 string simulation;
3478
3479 if (info.GetIsWater())
3480 return;
3481
3482 GetGame().ConfigGetText("cfgAmmo " + info.GetAmmoType() + " simulation", simulation);
3483 if (simulation == "shotArrow")
3484 {
3485 string pile;
3486 GetGame().ConfigGetText("cfgAmmo " + info.GetAmmoType() + " spawnPileType", pile);
3487 vector pos = info.GetPos();
3488 vector dir = -info.GetInVelocity();
3489
3490 dir.Normalize();
3491 pos -= dir * ARROW_PIERCE_DEPTH;
3492
3494 arrow.SetDirection(dir);
3495 arrow.SetFromProjectile(info);
3496 }
3497 }
class LogManager EntityAI
const int ECE_KEEPHEIGHT
Определения CentralEconomy.c:27
const int ECE_DYNAMIC_PERSISTENCY
Определения CentralEconomy.c:32
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
const float ARROW_PIERCE_DEPTH
Определения DayZGame.c:3472
proto float Normalize()
Normalizes vector. Returns length.
proto native CGame GetGame()

Перекрестные ссылки ARROW_PIERCE_DEPTH, ConfigGetText(), CreateObjectEx(), ECE_DYNAMIC_PERSISTENCY, ECE_KEEPHEIGHT, GetGame() и vector::Normalize().