How to change weapon respawn times?

dbanimal

2010-08-19 23:08:42

Hi all,

Is there a way to change the weapon respawn times in a map (besides through server.cfg)? I want it built into the map I'm making and I need to slow the respawn times down dramatically but am not sure how to do it. There is no option in the weapons properties to change it.

Thanks in advance!

dbanimal

[EYE] Valar

2010-08-20 04:37:37

you need a point_server_command with the below lines fired through a logic_auto OnMapSpawn
(note these are default values the game ships with)

sv_cheats 1
sv_hl2mp_item_respawn_time 30 (optional - this is for ammo)
sv_hl2mp_weapon_respawn_time 20
sv_cheats 0

dbanimal

2010-08-20 17:43:12

Alright, thanks for the info!

Sacrifist

2010-08-25 05:55:32

Just a heads up. Im pretty sure that if you alter any commands like those or sv_gravity or crap that is similar, the server admin will need to have the default commands in his/her server.cfg or the server will continue to run them on other maps in the rotation after your map is played. It's been awhile since I altered things like that so it's possible that Im talking out of my ass here, but for some reason I am thinking that this is the case. If someone can prove that this post is false, just call me a dumbass and move along lol.