From a099ab87f66d2042c82715d68ffefeceda70b9bf Mon Sep 17 00:00:00 2001 From: James Mitchell Date: Fri, 15 May 2020 19:21:58 +1000 Subject: [PATCH 1/5] 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/5] 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." From 93c99bd3d043c3732f9cf0ab9aa826e1bddd43b6 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Fri, 22 May 2020 22:29:06 -0500 Subject: [PATCH 3/5] Added RunScriptCodeQuotable --- base.fgd | 1 + 1 file changed, 1 insertion(+) diff --git a/base.fgd b/base.fgd index 75916a4..88b3e3a 100644 --- a/base.fgd +++ b/base.fgd @@ -105,6 +105,7 @@ input RunScriptFile(string) : "Execute a game script file from disk" input RunScriptCode(string) : "Execute a string of script source code" + input RunScriptCodeQuotable(string) : "Execute a string of script source code which converts double apostrophes ('') to quotation marks for strings" input CallScriptFunction(string) : "Call a named function from this entity's Activation Script" From 2ee2a5545f74d8b638ee6502fb561c94f6ff356d Mon Sep 17 00:00:00 2001 From: Blixibon Date: Wed, 27 May 2020 10:54:02 -0500 Subject: [PATCH 4/5] Added more VScript stuff --- base.fgd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base.fgd b/base.fgd index 88b3e3a..ec1534d 100644 --- a/base.fgd +++ b/base.fgd @@ -107,6 +107,7 @@ input RunScriptCode(string) : "Execute a string of script source code" input RunScriptCodeQuotable(string) : "Execute a string of script source code which converts double apostrophes ('') to quotation marks for strings" input CallScriptFunction(string) : "Call a named function from this entity's Activation Script" + input ClearScriptScope(void) : "Clears this entity's script scope" // Inputs @@ -1083,6 +1084,14 @@ minpropscreenwidth(float) : "End Fade Pixels" : 0 : "Minimum number of pixels wide at which the prop is visible (0 = don't fade out). This number is ignored if the prop has a specific fade distance specified." detailvbsp(string) : "Detail.vbsp file" : "detail.vbsp" : "Detail.vbsp file to use for emitting detail props (found in directory /modname)" detailmaterial(string) : "Detail material file" : "detail/detailsprites" : "Material for detail sprites to use for drawing detail props" + vscriptlanguage(choices) : "VScript language" : 0 : "Sets the script language this map should use for entity scripts." = + [ + 0 : "Default (Squirrel)" + //1 : "GameMonkey (Unsupported)" + 2 : "Squirrel" + //3 : "Lua (Unsupported)" + //4 : "Python (Unsupported)" + ] startdark(choices) : "Level Fade In" : 0 = [ 0 : "No" From f7e8d4daa60d967ab8cc1404f9f0226d6e885d98 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 30 May 2020 11:35:21 -0500 Subject: [PATCH 5/5] Added filter_script --- base.fgd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base.fgd b/base.fgd index ec1534d..48f6d00 100644 --- a/base.fgd +++ b/base.fgd @@ -6783,6 +6783,14 @@ output OutForceFriendlyFire(bool) : "Outputs whether the damage info forces friendly fire." ] +//------------------------------------------------------------------------- +//------------------------------------------------------------------------- + +@FilterClass base(BaseFilter) iconsprite("editor/filter_script.vmt") = filter_script : + "A filter which utilizes hooks in its entity scripts." +[ +] + //------------------------------------------------------------------------- // // Special Mapbase Entities