Garry's Mod

Garry's Mod

Half-Life 2: Deathmatch
 This topic has been pinned, so it's probably important
froggy  [developer] May 16, 2018 @ 2:11pm
Convars, commands, etc.
sv_hl2mp_teamplay (default: 0)
Disable for free for all, enable for team deathmatch

sv_hl2mp_timelimit (default: 30)
How long (in minutes) until the map switches (0 for unlimited)

sv_hl2mp_fraglimit (default: 0)
How many kills until the map switches (0 for unlimited)

sv_hl2mp_weapon_respawn (default: 20)
How long until weapons respawn

sv_hl2mp_item_respawn (default: 30)
How long until items such as ammo respawn

sv_hl2mp_limitammo (default: 1)
Enable to limit max ammo, disable to set max ammo to 9999

sv_hl2mp_weaponstay (default: 0)
Disable obtaining ammo by picking up weapons

sv_hl2mp_flashlight (default: 0)
Allow players to turn on flashlight

sv_hl2mp_footsteps (default: 1)
Make footstep sounds when players move

sv_hl2mp_aux (default: 1)
Enable AUX to limit sprinting

sv_hl2mp_maxaux (default: 300)
300 for 5 seconds of AUX (seconds * 60)

sv_hl2mp_falldamage (default: 0)
Take fall damage when falling high enough

sv_hl2mp_taunts (default: 0)
Allow players to taunt

sv_hl2mp_teamcollide (default: 1)
Enable teammate collisions

sv_hl2mp_hevhands (default: 0)
Use HEV suit hands instead of the hands defined by the playermodel

sv_hl2mp_playercolor (default: 1)
Allow players to set the color of their model

sv_hl2mp_weaponcolor (default: 1)
Allow players to set the color of their weapon

sv_hl2mp_allplayermodels (default: 0)
Allow players to use any playermodel

sv_hl2mp_gmoddamage (default: 0)
Enable default Garry's Mod weapon damage

sv_hl2mp_dmg_head (default: 2)
Damage multiplier for the head

sv_hl2mp_dmg_chest (default: 1)
Damage multiplier for the chest

sv_hl2mp_dmg_stomach (default: 1)
Damage multiplier for the stomach

sv_hl2mp_dmg_arm (default: 1)
Damage multiplier for the arm

sv_hl2mp_dmg_leg (default: 1)
Damage multiplier for the leg

sv_hl2mp_hl1 (default: 0)
Use HL1 weapons and items (requires Half-Life: Source to be mounted)

sv_hl2mp_bot_quota (default: 0)
Maximum amount of bots to keep in the server

sv_hl2mp_bot_free_slots (default: 2)
Minimum amount of free slots to leave unoccupied by bots per team

sv_hl2mp_bot_skill (default: 2)
Bot skill (0 = very easy, 1 = easy, 2 = normal, 3 = hard, 4 = very hard, 5 = impossible)

sv_hl2mp_bot_team (default: 0)
What team the bots should join (0 = whichever has less players, 1 = rebels, 2 = combine)

sv_hl2mp_bot_allplayermodels (default: 0)
Allow bots to use any playermodel

sv_hl2mp_bot_specialplayermodel (default: 1)
Make certain bots use playermodels corresponding to their name (0 = disabled, 1 = respect sv_hl2mp_bot_allplayermodels, 2 = ignore all restrictions)

sv_hl2mp_bot_generatenav (default: 0)
Automatically generate a navigation mesh for bots if the current map is missing one


cl_hl2mp_playermodel (default: police)
Half-Life 2: Deathmatch free-for-all playermodel

cl_hl2mp_playermodel_rebel (default: male10)
Half-Life 2: Deathmatch rebel playermodel

cl_hl2mp_playermodel_combine (default: combine)
Half-Life 2: Deathmatch combine playermodel

cl_hl2mp_team (default: 0)
Half-Life 2: Deathmatch desired team (0 for automatic based on cl_hl2mp_playermodel, 1 for rebel, 2 for combine)

cl_hl2mp_mapinfo (default: 1)
Should the map info box be visible at all times, or only when viewing scoreboard?

cl_hl2mp_ffascoreboard (default: 1)
If enabled, the scoreboard will put players of both teams in the same list during free-for-all matches


cl_hl2mp_spectate
Exit spectator if arg is 0, otherwise enter spectator


If you want to add specific playermodels to teams without enabling all of them, create a SetupTeamPlayerModels hook:
hook.Add( "SetupTeamPlayerModels", "asdf", function( rebel, combine ) table.insert( rebel, "eli" ) table.insert( combine, "breen" ) end )
Last edited by froggy; Nov 1, 2023 @ 5:13pm
< >
Showing 1-5 of 5 comments
Ajiliffe Sep 29, 2023 @ 5:20am 
well how do i create the hook then? in order to add more default playermodels?
Ajiliffe Sep 29, 2023 @ 11:09am 
can i get a better guide i did all it said the playermodels are not present, do i have to get the model's entire path or just the name in the selector? and where do i put the lua?

Originally posted by froggy:
https://wiki.facepunch.com/gmod/Beginner_Tutorial_Intro
does anyone have the pm hook template?
i get
[ERROR] lua_run:1: '=' expected near '<eof>'
< >
Showing 1-5 of 5 comments
Per page: 1530 50