-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing hot_potato keyvalues, other changes
- Loading branch information
Showing
8 changed files
with
61 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
@PointClass base(BasePropPhysics, SRCModel) | ||
appliesto(P2) | ||
studioprop() | ||
line(255 255 0, targetname, spawnername) | ||
= hot_potato: "A glass futbol variant which explodes and can't be thrown. Spawning this from a hot_potato_spawner allows it to have a timer set." | ||
[ | ||
model[-srctools](studio) : "[H] Model" : "models/props/futbol.mdl" : "The model to display in Hammer. VScript must be used to set the in-game model." | ||
model[+srctools](studio) : "[HA] Custom Model" : "models/props/futbol.mdl" : "The model to display in Hammer, and the custom model to use if Override Model is enabled." | ||
skin(integer) : "Skin" : 0 : "Skin on the model to use." | ||
|
||
@PointClass base(prop_glass_futbol, prop_exploding_futbol) | ||
appliesto(P2) | ||
studioprop("models/props/futbol.mdl") | ||
line(255 255 0, targetname, spawnername) = hot_potato: "This uses the futbol model. It can be carried around, but on impact it explodes, similar to prop_exploding_futbols." | ||
[ | ||
] | ||
explodeontouch(boolean) : "Explode on touch" : 1 : "If the hot potato should explode when it touches something." | ||
ShouldRespawn(boolean) : "Should respawn" : 1 : "If the hot potato should respawn at the specified spawner when destroyed. Not specifying a spawner is functionally identical to turning this off, but causes extra console spam." | ||
spawnername(target_destination) : "Spawner Name" : : "Name of a hot_potato_spawner for this hot potato to respawn in once broken." | ||
|
||
// Inputs | ||
input Explode(void) : "Explodes the hot potato." | ||
input Dissolve(void) : "Fizzles the hot potato. Doesn't fire the OnFizzled output." | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
@PointClass base(prop_glass_futbol_socket) | ||
@PointClass base(hot_potato_socket) | ||
appliesto(P2) | ||
studio("models/editor/axis_helper.mdl") = hot_potato_catcher: "Catches 'hot potatos' and fires an output." | ||
= hot_potato_catcher: "Invisible entity that holds 'hot potatos' and fires an output. Identical to hot_potato_socket, except it doesn't play any sounds when a hot potato is inserted." | ||
[ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
|
||
@PointClass base(prop_glass_futbol_socket) | ||
@PointClass base(BaseEntityPoint) | ||
appliesto(P2) | ||
studio("models/editor/axis_helper.mdl") = hot_potato_socket: "Catches (bombs?) and fires an output." | ||
studio("models/editor/angle_helper.mdl") | ||
= hot_potato_socket: "Invisible entity that holds 'hot potatos' and fires an output. When a hot potato comes close it will snap into place." | ||
[ | ||
|
||
// Outputs | ||
output OnHotPotatoReleased(void) : "Player has taken the hot potato out of this socket." | ||
output OnHotPotatoCaught(void) : "This socket has captured a hot potato." | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
|
||
@PointClass base(prop_glass_futbol_spawner) | ||
@PointClass base(BaseEntityAnimating) | ||
appliesto(P2) | ||
studioprop("models/props/futbol_dispenser.mdl") = hot_potato_spawner: "Catches 'hot potatos' and fires an output." | ||
studioprop("models/props/futbol_dispenser.mdl") | ||
= hot_potato_spawner: "Spawns 'hot potatos'. Will re-create a hot potato when its created hot potato breaks." | ||
[ | ||
startwithhotpotato(boolean) : "Start with Hot Potato" : 1 : "Set true if this spawner starts with a hot potato in it. " + | ||
"Set to false if this spawner's hot potato will be manually placed in the map." | ||
IsTimed(boolean) : "Is Timed" : 0 : "If enabled, the hot potatos created from this spawner will automatically explode after a set amount of time." | ||
Timer(float) : "Timer" : "10" : "Length of the timer, in seconds." | ||
TimerIndicatorName(target_destination) : "Timer Indicator Name" : : "Name of a prop_indicator_panel that should show the time remaining." | ||
|
||
// Inputs | ||
input ForceSpawn(void) : "Spawns a new hot potato. Usually isn't necessary, because hot potatos respawn automatically if broken." | ||
|
||
// Outputs | ||
output OnHotPotatoSpawned(void) : "Created a new hot potato." | ||
output OnHotPotatoGrabbed(void) : "Player has taken the hot potato out of this spawner." | ||
output OnHotPotatoCaught(void) : "Player has put the hot potato back into this spawner." | ||
output OnHotPotatoReleased(void) : "Player has grabbed a hot potato from or put a hot potato back into this spawner." | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters