General > Developers Corner
votemap change at the end of the round?
(1/1)
iViscosity:
So I'm trying to make the default "votemap" command make the map change, upon Admin approval, at the end of the current round, not the instant it's approved, does anyone know how I can do that?
Buzzkill:
Assuming you want this for all/many gamemode, it depends to a great extent on each gamemode, as the gamemode defines how rounds operate within it. You'd need conditions, based on the gamemode, that would hook into the round system (assuming the gamemode exposed round-based hooks).
gmod_mapvote is probably the most complete, with respect to gamemode support, that I've seen. Might want to poke around the source.
https://github.com/v0ide/gmod-mapvote
iViscosity:
Sorry I haven't been able to get back to you. Thanks for this. I found something in the code for a hook "TTTEndRound" so I think I'll try this out.
Navigation
[0] Message Index
Go to full version