Raised This Month: $ Target: $400
 0% 

[TF2] Music when there are 2 people left in arena mode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marverlous
Senior Member
Join Date: May 2013
Old 10-08-2013 , 21:24   [TF2] Music when there are 2 people left in arena mode
Reply With Quote #1

It would be wonderful if there is a plugins that would automatically start a customizable song/music when there are 2 people left in the arena match.
Marverlous is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-08-2013 , 23:35   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #2

I can build this, can't do it now though but maybe in a day or two unless someone else builds it.
Drixevel is offline
Marverlous
Senior Member
Join Date: May 2013
Old 12-12-2013 , 00:24   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #3

Anyone?
Marverlous is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-12-2013 , 11:24   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #4

This is quick, dirty, and completely untested...

Use the cvar arena_standoffmusic_song to set which song plays. Note that this is relative to the sound directory, so if you were going to play sound/music/mvm_start_last_wave.wav you'd put "music/mvm_start_last_wave.wav" as the value:

Code:
arena_standoffmusic_song "music/mvm_start_last_wave.wav"
As a reminder, if this is an sv_pure 1 server, you will need to whitelist the directory you put this in your cfg/pure_server_whitelist.txt (if you don't have one, copy cfg/pure_server_whitelist_example.txt to cfg/pure_server_whitelist.txt and then edit it)

For a directory sound/custom, this would be:
Code:
sound/custom/...  any
Attached Files
File Type: sp Get Plugin or Get Source (arena_standoffmusic.sp - 292 views - 2.6 KB)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-12-2013 at 11:29.
Powerlord is offline
Marverlous
Senior Member
Join Date: May 2013
Old 12-12-2013 , 19:40   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #5

didnt seem too work, do the sound files have to be non-custom or in any specific format? Either way, thank you.
edit: nvm it worked but the sounds play at 4 people, not 2, it seem.

Last edited by Marverlous; 12-12-2013 at 19:48.
Marverlous is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-17-2013 , 16:45   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #6

Quote:
Originally Posted by Marverlous View Post
didnt seem too work, do the sound files have to be non-custom or in any specific format? Either way, thank you.
edit: nvm it worked but the sounds play at 4 people, not 2, it seem.
Whoops, haven't looked at this thread lately.

Kind of weird that it worked at 4 people left... it's specifically looking for 1 player left on each team (because I assumed that's what you meant by 2 people).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 04-27-2014 , 02:52   Re: [TF2] Music when there are 2 people left in arena mode
Reply With Quote #7

Does this work with looped wavs?

Also, can you make this an official plugin, with its own page and whatnot? It's really neat.
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 11:57.


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