Garry's Mod

Garry's Mod

Hide and Seek
Twist  [developer] 2 Jun, 2014 @ 8:16am
3
Commands & Useful Server Info
COMMANDS
Server commands:
  • has_timelimit (secs) = The amount of time in seconds rounds last. (0 = infinite)
  • has_minplayers (number) = The minimum amount of players needed to start a round.
  • has_maxrounds (number) = The amount of rounds to be played until the map changes to the next map in the "mapcyclefile" convar list.
  • has_seekoncaught (0 or 1) = When enabled, players that are caught will join the seeking side. Otherwise, caught players will spectate until the round is over.
  • has_infinitestamina (0 or 1) = When enabled, players will be able to sprint forever.
  • has_choosetype (0 or 1) = Determines how the first seeker is chosen.
    (0 = random, 1 = first hider caught is seeker next round)
  • has_rtv_enabled (0 or 1) = When enabled, the chat command '!rtv' will work. You would only want to disable this if you've got an RTV plug-in already.
  • has_envdmgallowed (0 or 1) = When enabled, trigger_hurts will kill players while turning them into Seekers. This is to stop players hiding in areas that are normally inaccessable or in spots that would get them stuck.
  • has_restartround = This will force a round restart in-case something bugs up.
  • has_lasttrail (0 or 1) = This sets whether the trail appears on the last hider.
  • has_extendtime (secs) = This will extend the current round's time by the specified amount of seconds. Negative numbers will withdraw time.
  • has_dyntagging (0 or 1) = When enabled, the area-tagging range will shrink when next to walls and objects, minimizing the chances of tagging through walls.
    NOTE: This can slow down servers with large amounts of players.

Client commands:
  • has_help = This will show the help dialog. You can also press F1 to bring it up.
  • has_options = This will show the options dialog.
  • has_achievements = This will bring up the achievements list, showing both your earned and unearned achievements.

Chat commands:
  • !help = This will bring up the help menu for you. You can also press F1 to bring it up.
  • !achievements = This will bring up the achievements list, showing both your earned and unearned achievements.


HOOKS
Hook to use for mapchange voting:
  • hook.Add( "HASGameEnded" , "HookName" , function( RoundWinner ) )
  • This hook is called when all rounds have finished. If a function using this hook is returned true, the gamemode will NOT use the default mapchange.
  • This allows you to use your mapchange voting systems without the gamemode slapping it out the way.

  • The hook argument 'RoundWinner' is the player announced with the most points.
Last edited by Twist; 21 Jun, 2014 @ 6:10am
< >
Showing 1-7 of 7 comments
What about a command to get rid of antistuck, like when we're hosting via an whisper server?

EDIT: I've just noticed it's not there actually. But even so, how do I turn it off on my dedicated server?
Last edited by thanos did nothing wrong; 21 Jun, 2014 @ 8:07am
alemismun 21 Oct, 2015 @ 7:33am 
the has_lasttrail 0 doasent disable my trail D:
Gibbzy 26 Apr, 2016 @ 1:52am 
how do u slap
bee 19 Feb, 2023 @ 8:40pm 
They don’t work
Olaf210 20 Feb, 2023 @ 6:51am 
Originally posted by Gibbzy:
how do u slap
you must to download addon for this
pikrisplays 4 Jul, 2023 @ 8:26am 
to push press e
Simon Scar 5 Jul, 2023 @ 12:27pm 
Why is stamina a thing?
< >
Showing 1-7 of 7 comments
Per page: 1530 50