From: Joseph Stalin Date: Thu, 27 Dec 2018 05:09:31 +0000 (+0500) Subject: Added type "Flame" to trigger SpawnShot X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cb334f20fbb9203b8810b695ab7bd08f0bc1f9b2;p=d2df-sdl.git Added type "Flame" to trigger SpawnShot Signed-off-by: DeaDDooMER --- diff --git a/src/game/g_triggers.pas b/src/game/g_triggers.pas index 07b0d7d..562c941 100644 --- a/src/game/g_triggers.pas +++ b/src/game/g_triggers.pas @@ -806,6 +806,12 @@ begin snd := 'SOUND_WEAPON_EXPLODEBFG'; end; + TRIGGER_SHOT_FLAME: + begin + g_Weapon_flame(wx, wy, dx, dy, 0, -1, True); + //snd := 'SOUND_WEAPON_FIREPLASMA'; + end; + else exit; end; diff --git a/src/mapdef/mapdef.txt b/src/mapdef/mapdef.txt index df3298a..375ef4a 100644 --- a/src/mapdef/mapdef.txt +++ b/src/mapdef/mapdef.txt @@ -289,6 +289,7 @@ enum TriggerShot { TRIGGER_SHOT_BFG, // 12 TRIGGER_SHOT_EXPL, // 13 TRIGGER_SHOT_BFGEXPL, // 14 + TRIGGER_SHOT_FLAME, // 15 // TRIGGER_SHOT_MAX = MAX, } diff --git a/src/shared/mapdef.inc b/src/shared/mapdef.inc index 61e6891..8eca3cc 100644 --- a/src/shared/mapdef.inc +++ b/src/shared/mapdef.inc @@ -196,7 +196,8 @@ const TRIGGER_SHOT_BFG = 12; TRIGGER_SHOT_EXPL = 13; TRIGGER_SHOT_BFGEXPL = 14; - TRIGGER_SHOT_MAX = 14; + TRIGGER_SHOT_FLAME = 15; + TRIGGER_SHOT_MAX = 15; // TriggerShotTarget const @@ -1088,4 +1089,4 @@ const defaultMapDef: AnsiString = ''+ #114#101#97#100#95#100#34#32#116#121#112#101#32#117#98#121#116#101#32#111+ #102#102#115#101#116#32#49#53#32#119#114#105#116#101#100#101#102#97#117#108+ #116#59#10#125#10 -; \ No newline at end of file +;