Ttt map settings: Difference between revisions
Jump to navigation
Jump to search
(my bot stopped working with 5 or 6 pages left) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
{{this is a| | {{this is a|logical entity|name=ttt_map_settings|game=Garry's Mod}} Allows the map to specify some behaviors, such as whether crowbars unlock things | ||
== Keyvalues == | == Keyvalues == | ||
Line 10: | Line 10: | ||
== Inputs == | == Inputs == | ||
{{ | {{I|SetPlayerModels|Sets playermodel to use to the given model path. Because entities are spawned before players, you can use this to set a random playermodel using logic entities.}} | ||
== Outputs == | == Outputs == | ||
{{ | {{O|MapSettingsSpawned|Fires when this entity spawns.}} | ||
{{ | {{O|RoundPreparation|Fires when the Preparation phase of a round starts.}} | ||
{{ | {{O|RoundStart|Fires when a round begins, meaning traitors have been selected.}} | ||
{{ | {{O|RoundEnd|Fires when a round has ended. The type of win/loss is a parameter of the output: 2 = traitors win, 3 = innocent win, 4 = timelimit.}} |
Latest revision as of 17:09, 22 May 2025
ttt_map_settings
is a logical entity available in Garry's Mod. Allows the map to specify some behaviors, such as whether crowbars unlock things
Keyvalues
- Crowbar unlocks doors ([todo internal name (i)]) <choices>
- Enable crowbar unlocking func_door and func_door_rotating entities that have a targetname set, using an Unlock input.
- Crowbar unlocks buttons ([todo internal name (i)]) <choices>
- Enable crowbar unlocking func_button entities that have a targetname set, using an Unlock input.
- Crowbar opens func_movelinear ([todo internal name (i)]) <choices>
- Enable crowbar opening func_movelinear entities that have a targetname set, using an Open input.
- Force player model ([todo internal name (i)]) <string>
- Sets playermodels. Should look like 'models/player/phoenix.mdl'. Set to empty for random.
- Spectators can possess props that have a targetname set ([todo internal name (i)]) <choices>
- Allow spectators to 'possess' named props that might be involved in map logic.
Inputs
- SetPlayerModels
- Sets playermodel to use to the given model path. Because entities are spawned before players, you can use this to set a random playermodel using logic entities.
Outputs
- MapSettingsSpawned
- Fires when this entity spawns.
- RoundPreparation
- Fires when the Preparation phase of a round starts.
- RoundStart
- Fires when a round begins, meaning traitors have been selected.
- RoundEnd