ULX

Author Topic: votemap change at the end of the round?  (Read 1917 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
votemap change at the end of the round?
« 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?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Buzzkill

  • Respected Community Member
  • Full Member
  • *****
  • Posts: 176
  • Karma: 59
    • The Hundred Acre Bloodbath
Re: votemap change at the end of the round?
« Reply #1 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

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: votemap change at the end of the round?
« Reply #2 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.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.