DayZ 1.30
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 vector offset = Vector(0, 0.1, 0); //Vertical offset applied to landmine explosion (in meters)
235 DamageSystem.ExplosionDamage(this, NULL, ammoType, GetPosition() + offset, damageType); //Offset explosion on Y axis
236 DeleteThis();
237 }
238 }
DayZGame g_Game
Определения DayZGame.c:4074
string ammoType
Определения DustKickupEffects.c:24
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

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

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