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

◆ Explode()

override void Explode ( int damageType,
string ammoType = "" )
protected

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

221 {
222 if (ammoType == "")
223 {
224 ammoType = ConfigGetString("ammoType");
225 }
226
227 if (ammoType == "")
228 {
229 ammoType = "Dummy_Heavy";
230 }
231
232 if ( g_Game.IsServer() )
233 {
234 SynchExplosion();
235 vector offset = Vector(0, 0.1, 0); //Vertical offset applied to landmine explosion (in meters)
236 DamageSystem.ExplosionDamage(this, NULL, ammoType, GetPosition() + offset, damageType); //Offset explosion on Y axis
237 DeleteThis();
238 }
239 }
DayZGame g_Game
Определения DayZGame.c:3942
void DeleteThis()
Определения Trap_LandMine.c:193
Определения EnConvert.c:119
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки DeleteThis(), g_Game, GetPosition() и Vector().

Используется в EEKilled(), FuelStation::EEKilled(), InventoryItem::EEKilled(), ExplodeNow(), Grenade_Base::InitiateExplosion(), InitiateExplosion(), OnServerSteppedOn() и OnSteppedOn().