Skip to content

Latest commit

 

History

History
113 lines (98 loc) · 5.96 KB

File metadata and controls

113 lines (98 loc) · 5.96 KB

Commands

Client Commands

ttt_reset_weapons_cache

Resets the client's equipment cache used in shop display. Useful when debugging changed shop rules.
Added in: 1.0.11

ttt_roleweapons

Allows for viewing and editing which weapons are available in each role's shop.
Added in: 1.2.7
Parameters:

  • command - Which command should be run (Added in 1.9.4)
    • clean - Removes any invalid configurations. WARNING: This CANNOT be undone!
    • copy FROM TO [REPLACE] - Duplicates a role configuration. If true is provided for the REPLACE parameter, any existing configuration will be removed (Added in 2.1.10)
    • duplicate - Alias for copy (Added in 2.1.10)
    • list - Prints the current configuration in the server console, highlighting anything invalid
    • open (aka show) - Opens the configuration UI. See this tutorial for how to use the UI. (This command is the default if no parameter is provided)
    • print - Alias for list
    • reload - Reloads the configurations from the server's filesystem
    • show - Alias for open

Server Commands

sv_ttt_roleweapons

Allows for viewing and editing which weapons are available in each role's shop. Server-side version of ttt_roleweapons.
Added in: 1.9.4
Parameters:

  • command - Which command should be run
    • clean - Removes any invalid configurations. WARNING: This CANNOT be undone!
    • copy FROM TO [REPLACE] - Duplicates a role configuration. If true is provided for the REPLACE parameter, any existing configuration will be removed (Added in 2.1.10)
    • duplicate - Alias for copy (Added in 2.1.10)
    • list - Prints the current configuration in the server console, highlighting anything invalid
    • print - Alias for list
    • reload - Reloads the configurations from the server's filesystem

ttt_damage_from_random

Damages the local player by a random non-jester team player. NOTE: Cheats must be enabled to use this command.
Added in: 1.3.7
Parameters:

  • damage - How much damage to do to the local player (Defaults to 1)
  • allow_dead - Whether to allow the randomly selected player to be dead (Defaults to false) (Added in 1.9.0)

ttt_damage_from_player

Damages the local player by another player with the given name. NOTE: Cheats must be enabled to use this command.
Added in: 1.3.7
Parameters:

  • killer_name - The name of the player who will kill the local player
  • damage - How much damage to do to the local player (Defaults to 1)
  • allow_dead - Whether to allow the specified player to be dead (Defaults to false) (Added in 1.9.0)

ttt_damage_target_from_random

Damages the target player by a random non-jester team player. NOTE: Cheats must be enabled to use this command.
Added in: 1.3.7
Parameters:

  • target_name - The name of the player who will be killed
  • damage - How much damage to do to the target (Defaults to 1)
  • allow_dead - Whether to allow the randomly selected player to be dead (Defaults to false) (Added in 1.9.0)

ttt_damage_target_from_player

Damages the target player by another player with the given name. NOTE: Cheats must be enabled to use this command.
Added in: 1.3.7
Parameters:

  • target_name - The name of the player who will be killed
  • killer_name - The name of the player who will kill the target player
  • damage - How much damage to do to the target (Defaults to 1)
  • allow_dead - Whether to allow the specified player to be dead (Defaults to false) (Added in 1.9.0)

ttt_kill_from_random

Kills the local player by a random non-jester team player. NOTE: Cheats must be enabled to use this command.
Added in: 1.0.0
Parameters:

  • remove_body - Whether to remove the local player's body after killing them (Defaults to false)
  • allow_dead - Whether to allow the randomly selected player to be dead (Defaults to false) (Added in 1.9.0)

ttt_kill_from_player

Kills the local player by another player with the given name. NOTE: Cheats must be enabled to use this command.
Added in: 1.0.0
Parameters:

  • killer_name - The name of the player who will kill the local player
  • remove_body - Whether to remove the local player's body after killing them (Defaults to false)
  • allow_dead - Whether to allow the specified player to be dead (Defaults to false) (Added in 1.9.0)

ttt_kill_target_from_random

Kills the target player by a random non-jester team player. NOTE: Cheats must be enabled to use this command.
Added in: 1.0.0
Parameters:

  • target_name - The name of the player who will be killed
  • remove_body - Whether to remove the target player's body after killing them (Defaults to false)
  • allow_dead - Whether to allow the randomly selected player to be dead (Defaults to false) (Added in 1.9.0)

ttt_kill_target_from_player

Kills the target player by another player with the given name. NOTE: Cheats must be enabled to use this command.
Added in: 1.0.0
Parameters:

  • target_name - The name of the player who will be killed
  • killer_name - The name of the player who will kill the target player
  • remove_body - Whether to remove the target player's body after killing them (Defaults to false)
  • allow_dead - Whether to allow the specified player to be dead (Defaults to false) (Added in 1.9.0)

ttt_order_for_someone

Orders a shop item on behalf of a another player with the given name. NOTE: Cheats must be enabled to use this command.
Added in: 1.0.0
Parameters:

  • target_name - The name of the player who will be killed
  • order - The weapon class string or equipment ID number to be ordered

ttt_team_chat_as_player

Sends a team chat message on behalf of another player with the given name. If the player's role cannot send team chat messages, nothing will happen. NOTE: Cheats must be enabled to use this command.
Added in: 2.0.7
Parameters:

  • sender_name - The name of the player who is sending the message
  • text - The message to send