From cb334f20fbb9203b8810b695ab7bd08f0bc1f9b2 Mon Sep 17 00:00:00 2001 From: Joseph Stalin Date: Thu, 27 Dec 2018 10:09:31 +0500 Subject: [PATCH] Added type "Flame" to trigger SpawnShot Signed-off-by: DeaDDooMER --- src/game/g_triggers.pas | 6 ++++++ src/mapdef/mapdef.txt | 1 + src/shared/mapdef.inc | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) 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 +; -- 2.29.2