Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: vscript support #1

Merged
merged 2 commits into from
May 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions base.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -4211,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."
Expand Down