Skip to content

Commit 4d449ae

Browse files
authored
Merge pull request TeamSpen210#207 from Luke18033/unified-fgd-changes-4
Unified FGD changes: TF2 edition
2 parents dff04a9 + 8ef6456 commit 4d449ae

108 files changed

Lines changed: 517 additions & 325 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

fgd/bases/BaseEntity.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Special case - entities that aren't quite brushes or point ents.
2-
@BaseClass base(BaseEntityIO) = BaseEntity
2+
@BaseClass base(BaseEntityInputs, BaseEntityOutputs) = BaseEntity
33
[
44
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."
55
globalname(string) : "Global Entity Name" : : "Name by which this entity is linked to another entity in a different map. " +

fgd/bases/BaseEntityBrush.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@BaseClass base(BaseEntityIO) = BaseEntityBrush
1+
@BaseClass base(BaseEntityInputs, BaseEntityOutputs) = BaseEntityBrush
22
[
33
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."
44
globalname(string) : "Global Entity Name" : : "Name by which this entity is linked to another entity in a different map. " +
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// IO available on all entities.
2-
@BaseClass = BaseEntityIO
3-
[
4-
// Inputs
1+
@BaseClass = BaseEntityInputs
2+
[
3+
// Inputs
54
input Kill(void) : "Removes this entity from the world."
65
input KillHierarchy(void) : "Removes this entity and all its children from the world."
76

@@ -17,23 +16,16 @@
1716
input DispatchEffect[until_L4D](string) : "Dispatch an effect from the entity's origin. See https://developer.valvesoftware.com/wiki/List_of_Client_Effects"
1817

1918
input RunScriptFile[VSCRIPT](string) : "Execute a game script file from disk."
20-
input RunScriptCode[+VSCRIPT, -srctools, -TF2](script) : "Execute a string of script source code."
21-
input RunScriptCode[+VSCRIPT, +srctools, -TF2](script) : "Execute a string of script source code. Backtick ( ` ) characters will be converted to quotes in-game for strings."
19+
input RunScriptCode[+VSCRIPT, -srctools, -TF2](script) : "Execute a string of script source code. Using double quote characters will corrupt the VMF, so strings cannot be passed in."
20+
input RunScriptCode[+VSCRIPT, +srctools, -TF2](script) : "Execute a string of script source code. Using double quote characters will corrupt the VMF, use backticks ( ` ) instead if you need to pass in a string."
2221
// TF2 does this in game code.
23-
input RunScriptCode[+TF2, +VSCRIPT](script) : "Execute a string of script source code. Backtick ( ` ) characters will be converted to quotes in-game for strings."
22+
input RunScriptCode[+TF2, +VSCRIPT](script) : "Execute a string of script source code. Using double quote characters will corrupt the VMF, use backticks ( ` ) instead if you need to pass in a string."
2423
input RunScriptCodeQuotable[+MBase, +VSCRIPT](string) : "Execute a string of script source code which converts double apostrophes ('') to quotation marks for strings."
2524
input CallScriptFunction[VSCRIPT](string) : "Execute the given function name."
2625
input ClearScriptScope[+MBase, +VSCRIPT](void) : "Clears this entity's script scope"
2726
input TerminateScriptScope[+TF2, +VSCRIPT](void) : "Terminates the script scope of the entity."
2827

29-
// Outputs
30-
output OnUser1(void) : "Fired in response to FireUser1 input."
31-
output OnUser2(void) : "Fired in response to FireUser2 input."
32-
output OnUser3(void) : "Fired in response to FireUser3 input."
33-
output OnUser4(void) : "Fired in response to FireUser4 input."
34-
output OnKilled[MBase, L4D](void) : "Fired when the entity is killed and removed from the game."
35-
36-
// Mapbase BaseEntity changes:
28+
// Mapbase Inputs:
3729
input PassUser1[MBase](string) : "Causes this entity's OutUser1 output to be fired, passing along the parameter unchanged."
3830
input PassUser2[MBase](string) : "Causes this entity's OutUser2 output to be fired, passing along the parameter unchanged."
3931
input PassUser3[MBase](string) : "Causes this entity's OutUser3 output to be fired, passing along the parameter unchanged."
@@ -50,8 +42,8 @@
5042
input AcceptInput[MBase](string) : "Fires the named input on this entity. Format: '<input name>:<parameter>:<activator>:<caller>:<output ID>' (SetTarget:cheese). Everything beyond the input name is optional. Mind the fact this is arranged differently from FireOutput, having the parameter right after the input name."
5143
input CancelPending[MBase](void) : "Cancels any events fired by this entity that are currently pending in the I/O event queue."
5244

53-
input AddSpawnFlags[MBase](integer) : "Adds spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in this FGD."
54-
input RemoveSpawnFlags[MBase](integer) : "Removes spawnflag(s) to this entity. Many spawnflags have their respective numbers suffixed in this FGD."
45+
input AddSpawnFlags[MBase](integer) : "Adds spawnflag(s) to this entity. Spawnflags have their respective numbers prefixed in this FGD."
46+
input RemoveSpawnFlags[MBase](integer) : "Removes spawnflag(s) to this entity. Spawnflags have their respective numbers prefixed in this FGD."
5547

5648
input AddSolidFlags[MBase](integer) : "Adds solid flags to this entity."
5749
input RemoveSolidFlags[MBase](integer) : "Removes solid flags from this entity."
@@ -62,12 +54,7 @@
6254
input SetTarget[MBase](target_destination) : "Sets this entity's target. This is specific to certain entities, particularly logic entities that involve a target."
6355
input SetOwnerEntity[MBase](target_destination) : "Sets this entity's owner entity. This has nothing to do with parenting and has more to do with collision and kill credits."
6456

65-
input SetThinkNull[MBase](void) : "Sets this entity's general think function to null. Behavior varies from entity to entity.."
57+
input SetThinkNull[MBase](void) : "Sets this entity's general think function to null. Behavior varies from entity to entity."
6658

6759
input Use[MBase](void) : "More or less replicates the player interacting with an entity. (+USE)"
68-
69-
output OutUser1[MBase](string) : "Fires in response to PassUser1 input, with the parameter passed through unchanged."
70-
output OutUser2[MBase](string) : "Fires in response to PassUser2 input, with the parameter passed through unchanged."
71-
output OutUser3[MBase](string) : "Fires in response to PassUser3 input, with the parameter passed through unchanged."
72-
output OutUser4[MBase](string) : "Fires in response to PassUser4 input, with the parameter passed through unchanged."
73-
]
60+
]

fgd/bases/BaseEntityOutputs.fgd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@BaseClass = BaseEntityOutputs
2+
[
3+
// Outputs
4+
output OnUser1(void) : "Fired in response to FireUser1 input."
5+
output OnUser2(void) : "Fired in response to FireUser2 input."
6+
output OnUser3(void) : "Fired in response to FireUser3 input."
7+
output OnUser4(void) : "Fired in response to FireUser4 input."
8+
output OnKilled[MBase, L4D](void) : "Fired when the entity is killed and removed from the game."
9+
10+
// Mapbase Outputs
11+
output OutUser1[MBase](string) : "Fires in response to PassUser1 input, with the parameter passed through unchanged."
12+
output OutUser2[MBase](string) : "Fires in response to PassUser2 input, with the parameter passed through unchanged."
13+
output OutUser3[MBase](string) : "Fires in response to PassUser3 input, with the parameter passed through unchanged."
14+
output OutUser4[MBase](string) : "Fires in response to PassUser4 input, with the parameter passed through unchanged."
15+
]

fgd/bases/BaseEntityPoint.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@BaseClass base(BaseEntityIO) = BaseEntityPoint
1+
@BaseClass base(BaseEntityInputs, BaseEntityOutputs) = BaseEntityPoint
22
[
33
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."
44
globalname(string) : "Global Entity Name" : : "Name by which this entity is linked to another entity in a different map. " +

fgd/bases/BaseObject.fgd

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
teamnum[engine](integer) : "Team" : 2
44
teamnum(choices) : "Team" : 2 : "Team" =
55
[
6-
2: "Red"
7-
3: "Blue"
6+
2: "RED"
7+
3: "BLU"
8+
]
9+
10+
defaultupgrade[engine](integer) : "Starting Upgrade Level" : 0
11+
defaultupgrade(choices) : "Starting Upgrade Level" : "0" =
12+
[
13+
0: "Level 1"
14+
1: "Level 2"
15+
2: "Level 3"
816
]
917

1018
spawnflags(flags) : "spawnflags" =
@@ -13,8 +21,8 @@
1321
]
1422

1523
// Inputs
16-
input SetBuilder(string) : "Sets the builder of this object to the player given (from an output)"
17-
input SetSolidToPlayer(string) : "Sets the builder solid to the player given (from an output)"
24+
input SetBuilder(string) : "Sets the builder of this object to the !activator"
25+
input SetSolidToPlayer(integer) : "Sets if the building should be solid to players other than its builder"
1826
input Show(void) : "Makes the building visible and tries to re-enable it."
1927
input Hide(void) : "Makes the building invisible and disables it."
2028
input SetHealth(integer) : "Sets a new value for the breakable's health. If the breakable's health reaches zero it will break."

fgd/bases/Door.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
32: "Toggle" : 0
4343
256: "Use Opens" : 0
4444
512: "NPCs Can't" : 0
45-
1024: "Touch Opens" : 1
45+
1024: "Touch Opens" : 0
4646
2048: "Starts locked" : 0
4747
4096: "Door Silent" : 0
4848
131072: "Block Infected nav when closed" : 0 [L4D, L4D2]

fgd/bases/NavAttributeRegion.fgd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,10 @@
2020
precise(boolean) : "Precise" : 0
2121
crouch(boolean) : "Crouch" : 0
2222
stairs(boolean) : "Stairs" : 0
23+
remove_attributes(integer) : "Remove Attributes" : 0 : "Should remove attributes from nav areas instead of applying them?"
24+
tank_only(boolean) : "Tank Only" : 0
25+
mob_only(boolean) : "Mob Only" : 0
26+
27+
// Inputs
28+
input ApplyNavAttributes(void) : "Applies the nav attributes."
2329
]

fgd/bases/TFPickup.fgd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@BaseClass base(Item)
2+
appliesto(TF2)
3+
sphere(fademindist)
4+
sphere(fademaxdist) = TFPickup: "Base class for TF2 item pickups"
5+
[
6+
pickup_sound(string) : "Sound Effect" : : "The sound script entry that is played when the item is picked up."
7+
pickup_particle(string) : "Particle Effect" : : "The particle effect that is displayed when the item is picked up."
8+
9+
// Outputs
10+
output OnRedPickup(void) : "Sent when RED picks-up the item."
11+
output OnBluePickup(void) : "Sent when BLU picks-up the item."
12+
]

fgd/bases/TeamNum.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[
66
0: "Any"
77
2: "RED"
8-
3: "BLU/ROBOTS"
8+
3: "BLU/Robots"
99
5 : "Halloween Bosses"
1010
1 : "Spectator / Halloween Souls"
1111
]

0 commit comments

Comments
 (0)