Garry's Mod

Garry's Mod

Hide and Seek
Twist  [开发者] 2014 年 6 月 2 日 上午 8:16
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.
最后由 Twist 编辑于; 2014 年 6 月 21 日 上午 6:10
< >
正在显示第 1 - 7 条,共 7 条留言
thanos did nothing wrong 2014 年 6 月 21 日 上午 7:59 
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?
最后由 thanos did nothing wrong 编辑于; 2014 年 6 月 21 日 上午 8:07
alemismun 2015 年 10 月 21 日 上午 7:33 
the has_lasttrail 0 doasent disable my trail D:
Gibbzy 2016 年 4 月 26 日 上午 1:52 
how do u slap
bee 2023 年 2 月 19 日 下午 8:40 
They don’t work
Olaf210 2023 年 2 月 20 日 上午 6:51 
引用自 Gibbzy
how do u slap
you must to download addon for this
Kris 2023 年 7 月 4 日 上午 8:26 
to push press e
Simon Scar 2023 年 7 月 5 日 下午 12:27 
Why is stamina a thing?
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50