Ulysses

General => Developers Corner => Topic started by: iViscosity on May 20, 2016, 02:56:18 PM

Title: votemap change at the end of the round?
Post by: iViscosity on May 20, 2016, 02:56:18 PM
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?
Title: Re: votemap change at the end of the round?
Post by: Buzzkill on May 20, 2016, 05:12:44 PM
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
Title: Re: votemap change at the end of the round?
Post by: iViscosity on May 23, 2016, 04:30:13 AM
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.