Skip to content

Commit b81f558

Browse files
Add "gamemodes" KV to all entities
1 parent 7ab48fe commit b81f558

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

fgd/base_entity.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// target(target_destination) : "Target"
1717
spawnflags(flags) : "spawnflags" : "Flags that can be set on spawn (i.e. in Hammer Editor)" = []
1818

19+
gamemodes(integer) : "Gamemodes" : 0
1920

2021
vscripts[VSCRIPT](scriptlist) : "Entity Scripts" : : "Name(s) of script files that are executed after all entities have spawned."
2122
thinkfunction[VSCRIPT](string) : "Script think function" : : "Name of a function in this entity's script scope which will be called automatically."

fgd/bases/BaseEntityBrush.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@BaseClass
2-
base(BaseEntityIO)
2+
base(BaseEntityIO, Gamemodes)
33
= BaseEntityBrush: "Internal entity. Contains a template for all entity brushes."
44
[
55
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."

fgd/bases/BaseEntityPoint.fgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@BaseClass
2-
base(BaseEntityIO)
2+
base(BaseEntityIO, Gamemodes)
33
= BaseEntityPoint
44
[
55
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."

fgd/bases/Gamemodes.fgd

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22
appliesto(MOMENTUM)
33
= Gamemodes
44
[
5-
gamemode[engine](integer) : "Gamemode" : 0
6-
gamemode(choices) : "Gamemode" : 0 =
5+
gamemodes(flags) : 0 : "Gamemodes" : "Which gamemodes this entity is active in. If no flags are set, the entity is active in all gamemodes." =
76
[
8-
0 : "Unknown"
9-
1 : "Surf"
10-
2 : "Bhop"
11-
3 : "Bhop (HL1)"
12-
4 : "Climb (Mom)"
13-
5 : "Climb (KZT)"
14-
6 : "Climb (1.6)"
15-
7 : "RJ"
16-
8 : "SJ"
17-
9 : "Ahop"
18-
10 : "Conc"
19-
11 : "Defrag (CPM)"
20-
12 : "Defrag (VQ3)"
21-
13 : "Defrag (VTG)"
7+
1 : "Surf" : 0
8+
2 : "Bhop" : 0
9+
4 : "Bhop (HL1)" : 0
10+
8 : "Climb (Mom)" : 0
11+
16 : "Climb (KZT)" : 0
12+
32 : "Climb (1.6)" : 0
13+
64 : "RJ" : 0
14+
128 : "SJ" : 0
15+
256 : "Ahop" : 0
16+
512 : "Conc" : 0
17+
1024 : "Defrag (CPM)" : 0
18+
2048 : "Defrag (VQ3)" : 0
19+
4096 : "Defrag (VTG)" : 0
2220
]
2321
]

0 commit comments

Comments
 (0)