Raised This Month: $51 Target: $400
 12% 

Stupid Plugin Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
robotortoise
Senior Member
Join Date: Nov 2013
Old 10-08-2014 , 18:50   Stupid Plugin Request
Reply With Quote #1

Hiya! I'd like to request a very simple plugin: One that plays a song every time a map vote nomination comes up.

And the runoff vote please, too.

UMC did this, but it's too old and clunky for me nowadays, and the only thing I miss is my voting jeopardy music...
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-09-2014 , 11:29   Re: Stupid Plugin Request
Reply With Quote #2

Simply put: The stock MapChooser doesn't let other plugins know when most vote events happen. The exception is when a vote starts and when a nomination is removed (usually when a player disconnects).

MapChooser Extended (and you knew this was going to be mentioned) lets other plugins know when:
  • The map vote warning timer starts.
  • The map vote runoff warning timer starts.
  • The map vote warning timer ticks (passes number of seconds remaining).
  • A map vote starts.
  • A map vote ends (and what map won).
  • A nomination is removed.

The MapChooser Extended Sounds plugin (same thread as above) already uses the above hooks.

Adding a notification that a nomination was added isn't a bad idea, as well as adding an argument to OnMapVoteStart to say whether it was a runoff or not.

Having said all that, I haven't been doing much with MapChooser Extended lately. When I've had free dev time, it's been doing stuff with PropHunt, adding an ability to the SM menu system, and things unrelated to SourceMod at all. It doesn't help that my main server currently runs UMC as I use its ability to restrict maps based on player counts (it's my PropHunt server).
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-09-2014 at 11:35.
Powerlord is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 10-09-2014 , 16:46   Re: Stupid Plugin Request
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
MapChooser Extended (and you knew this was going to be mentioned) lets other plugins know when:
  • The map vote warning timer starts.
  • The map vote runoff warning timer starts.
  • The map vote warning timer ticks (passes number of seconds remaining).
  • A map vote starts.
  • A map vote ends (and what map won).
  • A nomination is removed.

The MapChooser Extended Sounds plugin (same thread as above) already uses the above hooks.

Actually...no. No, I had no idea that plugin existed at all! So, it would replace the current rtv, nextmap, and nominations plugins?
Hm. Will you update it if there's a new feature for the stock plugins? (For example, UMC was never updated with support for showing the current map, or what maps have been recently selected.)

If so, that may be an even better replacement for my uses!
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-09-2014 , 19:46   Re: Stupid Plugin Request
Reply With Quote #4

Umc shows the current map.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 10-09-2014 , 21:06   Re: Stupid Plugin Request
Reply With Quote #5

Quote:
Originally Posted by friagram View Post
Umc shows the current map.
Yeah. But the built-in one shows the current map IN the nominate list.
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 10-10-2014 , 02:30   Re: Stupid Plugin Request
Reply With Quote #6

Edit the config to not exclude the current map (RtFM)
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-10-2014 , 13:47   Re: Stupid Plugin Request
Reply With Quote #7

Quote:
Originally Posted by friagram View Post
Umc shows the current map.
His point is that the stock MapChooser's nominations show the map (and recently played maps), you just can't select it (because it was recently played).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 10-10-2014 , 13:47   Re: Stupid Plugin Request
Reply With Quote #8

Quote:
Originally Posted by Powerlord View Post
His point is that the stock MapChooser's nominations show the map (and recently played maps), you just can't select it (because it was recently played).
Exactly.
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-10-2014 , 15:50   Re: Stupid Plugin Request
Reply With Quote #9

Quote:
Originally Posted by robotortoise View Post
Hm. Will you update it if there's a new feature for the stock plugins? (For example, UMC was never updated with support for showing the current map, or what maps have been recently selected.)
I actively port features added to SourceMod's MapChooser to MapChooser Extended... however, I've been really bad about releasing new versions of MapChooser Extended and its subplugins because some of the updates are tied to an updated version of the NativeVotes (TF2-only) plugin.

Having said that, I'm currently porting some of the fixes from MapChooser Extended back to the stock MapChooser.

Here's the list of things I'm working on backporting to it:
  • CS:GO - Start map end vote if mp_match_can_clinch is on and a team is one point away from winning.
  • CS:GO & TF2 - Automatically disable end of map vote.
  • (RTV) TF2 - Automatically disable change map vote.
  • (Nominations) - Fix map name from being 32 characters only.
  • CS:GO - Swap team scores during halftime if mp_halftime is enabled.
  • DoD:S, CS:S, and CS:GO - Use the correct cvars to use for bonus time votes (it's not mp_bonusroundtime for those games)
  • CS:GO - Handle map votes correctly for Arms Race (improved from MapChooser Extended's version).
  • TF2 - Handle map votes correctly for Mann vs. Machine (improved from MapChooser Extended's version).
  • New forwards: OnMapVoteEnded(const char[] map), OnNominationAdded(const char map[], int owner).
  • Updated forward: OnMapVoteStarted(bool:runoff)... which tells you whether the vote being started is a runoff vote or not.
  • (Not completed yet) CS:GO - Treat workshop map names the same as non-workshop map names.

The stuff marked as improved from MapChooser Extended's version will be ported back into it.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-10-2014 at 15:53.
Powerlord is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 10-10-2014 , 16:00   Re: Stupid Plugin Request
Reply With Quote #10

Quote:
Originally Posted by Powerlord View Post
I actively port features added to SourceMod's MapChooser to MapChooser Extended... however, I've been really bad about releasing new versions of MapChooser Extended and its subplugins because some of the updates are tied to an updated version of the NativeVotes (TF2-only) plugin.

Having said that, I'm currently porting some of the fixes from MapChooser Extended back to the stock MapChooser.

Here's the list of things I'm working on backporting to it:
  • CS:GO - Start map end vote if mp_match_can_clinch is on and a team is one point away from winning.
  • CS:GO & TF2 - Automatically disable end of map vote.
  • (RTV) TF2 - Automatically disable change map vote.
  • (Nominations) - Fix map name from being 32 characters only.
  • CS:GO - Swap team scores during halftime if mp_halftime is enabled.
  • DoD:S, CS:S, and CS:GO - Use the correct cvars to use for bonus time votes (it's not mp_bonusroundtime for those games)
  • CS:GO - Handle map votes correctly for Arms Race (improved from MapChooser Extended's version).
  • TF2 - Handle map votes correctly for Mann vs. Machine (improved from MapChooser Extended's version).
  • New forwards: OnMapVoteEnded(const char[] map), OnNominationAdded(const char map[], int owner).
  • Updated forward: OnMapVoteStarted(bool:runoff)... which tells you whether the vote being started is a runoff vote or not.
  • (Not completed yet) CS:GO - Treat workshop map names the same as non-workshop map names.

The stuff marked as improved from MapChooser Extended's version will be ported back into it.

Awesome. Glad to hear it!
__________________
-Robotortoise [Palutena's Bro]

If you ever need help with Wii/Gamecube/DS sounds/music/ect., I'm your man!

Contact me via Steam

I don't bite.


How to loop and compress .wav files

Me and my friends' server
robotortoise is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode