DayZ 1.27
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 ( GetGame().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 }
void DeleteThis()
Определения Trap_LandMine.c:193
Определения EnConvert.c:106
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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

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