From ed10ab4ede5afa4c69a750c7607008418fe82add Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 5 Apr 2022 21:46:45 -0400 Subject: [PATCH] Expand Zapper fields --- source/maps/fgd/hl-nzp.fgd | 22 ++++++++++++++++++---- source/maps/fgd/tb-nzp.fgd | 21 +++++++++++++++++---- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/source/maps/fgd/hl-nzp.fgd b/source/maps/fgd/hl-nzp.fgd index c1ed7dd..e766798 100644 --- a/source/maps/fgd/hl-nzp.fgd +++ b/source/maps/fgd/hl-nzp.fgd @@ -140,23 +140,37 @@ @PointClass size(-8 -8 -8, 8 8 8) base(Item) color(141 85 29) studio("progs/Misc/teddy.mdl") = teddy_spawn : "Teddy spawn location" [] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio("models/machines/zapper/z_switch.mdl") = zapper_switch : "Electro-Shock Activation Switch" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_switch : "Electro-Shock Activation Switch" [ - cost(integer) : "Cost" + model(studio) : "Model" : "models/machines/zapper/z_switch.mdl" + skin(integer) : "Skin" : 0 + cost(integer) : "Cost" : 1000 + zappername(string) : "Zapper Name" + mode(choices) : "Cooldown Mode" : 0 = + [ + 0: "Timed Cooldown (Der Riese)" + 1: "End of Round Cooldown (Verruckt)" + ] + cooldown(integer) : "Cooldown Time (s)" : 30 + calc_time(integer) : "Lasting Time (s)" : 60 zappername(string) : "Zapper Name" spawnflags(Flags) = [ 1 : "Requires Power" : 0 ] ] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio("models/machines/zapper/z_zap.mdl") = zapper_node : "Electro-Shock Node" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_node : "Electro-Shock Node" [ + model(studio) : "Model" : "models/machines/zapper/z_zap.mdl" + skin(integer) : "Skin" : 0 zappername(string) : "Zapper Name" targetname(target_source) : "Name" target(target_destination) : "Target" ] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio("models/machines/zapper/z_light.mdl") = zapper_light : "Electro-Shock Node" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_light : "Electro-Shock Node" [ + model(studio) : "Model" : "models/machines/zapper/z_light.mdl" + skin(integer) : "Skin" : 0 zappername(string) : "Zapper Name" ] @SolidClass = trigger_electro : "Zapper trigger field" diff --git a/source/maps/fgd/tb-nzp.fgd b/source/maps/fgd/tb-nzp.fgd index 15a6218..3da4222 100644 --- a/source/maps/fgd/tb-nzp.fgd +++ b/source/maps/fgd/tb-nzp.fgd @@ -140,23 +140,36 @@ @PointClass size(-8 -8 -8, 8 8 8) base(Item) color(141 85 29) model("progs/Misc/teddy.mdl") = teddy_spawn : "Teddy spawn location" [] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model("models/machines/zapper/z_switch.mdl") = zapper_switch : "Electro-Shock Activation Switch" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model({"path" : model, "skin" : skin}) = zapper_switch : "Electro-Shock Activation Switch" [ - cost(integer) : "Cost" + model(string) : "Model" : "models/machines/zapper/z_switch.mdl" + skin(integer) : "Skin" : 0 + cost(integer) : "Cost" : 1000 zappername(string) : "Zapper Name" + mode(choices) : "Cooldown Mode" : 0 = + [ + 0: "Timed Cooldown (Der Riese)" + 1: "End of Round Cooldown (Verruckt)" + ] + cooldown(integer) : "Cooldown Time (s)" : 30 + calc_time(integer) : "Lasting Time (s)" : 60 spawnflags(Flags) = [ 1 : "Requires Power" : 0 ] ] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model("models/machines/zapper/z_zap.mdl") = zapper_node : "Electro-Shock Node" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model({"path" : model, "skin" : skin}) = zapper_node : "Electro-Shock Node" [ + model(string) : "Model" : "models/machines/zapper/z_zap.mdl" + skin(integer) : "Skin" : 0 zappername(string) : "Zapper Name" targetname(target_source) : "Name" target(target_destination) : "Target" ] -@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model("models/machines/zapper/z_light.mdl") = zapper_light : "Electro-Shock Node" +@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) model({"path" : model, "skin" : skin}) = zapper_light : "Electro-Shock Node" [ + model(string) : "Model" : "models/machines/zapper/z_light.mdl" + skin(integer) : "Skin" : 0 zappername(string) : "Zapper Name" ] @SolidClass = trigger_electro : "Zapper trigger field"