Skip to content

Commit aaa4a87

Browse files
TeamSpen210ozxybox
authored andcommitted
feat: Customisable floor buttons
1 parent c85b155 commit aaa4a87

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

fgd/bases/BasePortButton.fgd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
0 : "Solid"
88
1 : "Non-Solid"
99
]
10+
filtername(filterclass) : "Filter Name" : : "A filter entity that restricts which things can press the button, beyond the builtin filter."
1011

1112
// Inputs
1213
input PressIn(void) : "Activate the button as if it was pressed, sending it to the bottom position."
@@ -15,4 +16,6 @@
1516
// Outputs
1617
output OnPressed(void) : "Called when the button has been pressed."
1718
output OnUnPressed(void) : "Called when the button has been released."
19+
output OnPressedPlayer[engine](void) : "Called when the button is pressed by a player - useless on cube/sphere buttons."
20+
output OnPressedCube(void) : "Called when the button is pressed by a cube (specifically a non-player)."
1821
]

fgd/point/prop/prop_floor_button.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
]
1313

1414
// Outputs
15+
output OnPressedPlayer(void) : "Called when the button has been pressed by any player."
1516
output OnPressedBlue(void) : "Called in Coop when the button has been pressed by ATLAS."
1617
output OnPressedOrange(void) : "Called in Coop when the button has been pressed by P-Body."
1718
]

fgd/point/prop/prop_under_floor_button.fgd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
model(studio) : "Button model" : "models/props_underground/underground_floor_button.mdl" : "The model to be used in game"
99

1010
// Outputs
11+
output OnPressedPlayer(void) : "Called when the button has been pressed by any player."
1112
output OnPressedBlue(void) : "Called in Coop when the button has been pressed by ATLAS."
1213
output OnPressedOrange(void) : "Called in Coop when the button has been pressed by P-Body."
1314
]

0 commit comments

Comments
 (0)