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

[TF2] End of round extension


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-21-2012 , 09:12   [TF2] End of round extension
Reply With Quote #1

As it says here looks like he tried with some code and got it but I'm unsure of where he's going with it.

http://forums.alliedmods.net/showthread.php?t=64543

Quote:
So, I want to set mp_bonusroundtime to "30", but the max is 15. Is there anyway to do this with SourcePawn? I tried sm_cvar with no luck.

Info on cvar:
"mp_bonusroundtime" = "15.000000" ( def. "15" ) min. 5.000000 max. 15.000000
game replicated
- Time after round win until round restarts
Quote:
Durr, n/m i'm blind.

SetConVarBounds
Syntax:
native SetConVarBounds(Handle:convar, ConVarBounds:type, bool:set, Float:value=0.0);


Usage:
convar Handle to the convar. type Type of bound to set, ConVarBound_Lower or ConVarBound_Upper set If set to true, convar will use specified bound. If false, bound will be removed. value Floating point value to use as the specified bound.
What I want to do is extend this beyond the 15second max that Valve has it to 30seconds +
This was posted in the donator section but figured it would get more visability by everyone here.
Horsedick is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-21-2012 , 09:50   Re: [TF2] End of round extension
Reply With Quote #2

You can just use SourceMod's sm_cvar command to set it, it doesn't respect the boundaries.
__________________
asherkin is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-21-2012 , 10:33   Re: [TF2] End of round extension
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
You can just use SourceMod's sm_cvar command to set it, it doesn't respect the boundaries.
not sure I follow...
Horsedick is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-21-2012 , 11:49   Re: [TF2] End of round extension
Reply With Quote #4

Quote:
Originally Posted by Horsedick View Post
not sure I follow...
In server.cfg, Instead of this:
Code:
mp_bonusroundtime 30
use this:

Code:
sm_cvar mp_bonusroundtime 30
Incidentally, I vaguely remember there being code in mapchooser (and mapchooser_extended) that removes the upper bound on mp_bonusroundtime.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-21-2012 at 11:50.
Powerlord is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-21-2012 , 11:52   Re: [TF2] End of round extension
Reply With Quote #5

aww ok yeah follow now - thanks
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-21-2012 , 19:16   Re: [TF2] End of round extension
Reply With Quote #6

Ok that didn't work..its still 15 seconds and had an odd super fast flip sides.

next suggestion?
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 05-22-2012 , 10:21   Re: [TF2] End of round extension
Reply With Quote #7

I went back and tried it on a diff server still the same results with the sm_cvar ahead of the command in server.cfg doesn't appear to be doing anything cept a super fast flip of sides.
Horsedick is offline
sirmoe
Senior Member
Join Date: Mar 2008
Old 11-11-2012 , 22:42   Re: [TF2] End of round extension
Reply With Quote #8

Yeah I have also noticed this, even via sm_cvar it doesn't get extended
sirmoe is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-13-2012 , 10:08   Re: [TF2] End of round extension
Reply With Quote #9

Quote:
Originally Posted by sirmoe View Post
Yeah I have also noticed this, even via sm_cvar it doesn't get extended
I can only offer a guess, but my guess is that the TF2 server notices that it's set to longer than its max and either changes its value or ignores it and uses a fixed 15 seconds.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 11-16-2012 , 09:52   Re: [TF2] End of round extension
Reply With Quote #10

This way is not working?
Code:
#include <console> #define ValueYouWanted 80.0 new Handle:BonusRoundTime = INVALID_HANDLE public OnPluginStart() {     BonusRoundTime = FindConVar("mp_bonusroundtime")     SetConVarBounds(BonusRoundTime, ConVarBound_Upper, true, ValueYouWanted) }
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot

Last edited by Root_; 11-16-2012 at 09:54. Reason: nevermind
Root_ 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 09:35.


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