From a099ab87f66d2042c82715d68ffefeceda70b9bf Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Fri, 15 May 2020 19:21:58 +1000 Subject: [PATCH 1/2] Adding vscript properties for base entity --- base.fgd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base.fgd b/base.fgd index 54d5ac0..1c8c8f5 100644 --- a/base.fgd +++ b/base.fgd @@ -58,6 +58,14 @@ [ targetname(target_source) : "Name" : : "The name that other entities refer to this entity by." + vscripts(string) : "Entity Scripts" : "" : "Name(s) of script files that are executed after all entities have spawned." + thinkfunction(string) : "Script think function" : "" : "Name of a function in this entity's script scope which will be called automatically." + + input RunScriptFile(string) : "Execute a game script file from disk" + input RunScriptCode(string) : "Execute a string of script source code" + input CallScriptFunction(string) : "Call a named function from this entity's Activation Script" + + // Inputs input Kill(void) : "Removes this entity from the world." input KillHierarchy(void) : "Removes this entity and all its children from the world." From bba5141c2dadd18c37fb69157c7500c92c9b35b5 Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Tue, 19 May 2020 22:48:40 +1000 Subject: [PATCH 2/2] Adding logic_script entity --- base.fgd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/base.fgd b/base.fgd index 1c8c8f5..7f22511 100644 --- a/base.fgd +++ b/base.fgd @@ -4219,6 +4219,26 @@ "delete itself after firing this output." ] +@PointClass base(Targetname) iconsprite("editor/logic_script.vmt") = logic_script : "An entity that acts as a container for scripts" +[ + Group00(target_destination) : "EntityGroup[0]" + Group01(target_destination) : "EntityGroup[1]" + Group02(target_destination) : "EntityGroup[2]" + Group03(target_destination) : "EntityGroup[3]" + Group04(target_destination) : "EntityGroup[4]" + Group05(target_destination) : "EntityGroup[5]" + Group06(target_destination) : "EntityGroup[6]" + Group07(target_destination) : "EntityGroup[7]" + Group08(target_destination) : "EntityGroup[8]" + Group09(target_destination) : "EntityGroup[9]" + Group10(target_destination) : "EntityGroup[10]" + Group11(target_destination) : "EntityGroup[11]" + Group12(target_destination) : "EntityGroup[12]" + Group13(target_destination) : "EntityGroup[13]" + Group14(target_destination) : "EntityGroup[14]" + Group15(target_destination) : "EntityGroup[15]" +] + @PointClass base(Targetname, EnableDisable) iconsprite("editor/logic_timer.vmt") = logic_timer : "An entity that fires a timer event at regular, or random, intervals. It can also be set to oscillate between" + "a high and low end, in which case it will fire alternating high/low outputs each time it fires."