AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [TF2] End of round extension (https://forums.alliedmods.net/showthread.php?t=185769)

Horsedick 05-21-2012 09:12

[TF2] End of round extension
 
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.

asherkin 05-21-2012 09:50

Re: [TF2] End of round extension
 
You can just use SourceMod's sm_cvar command to set it, it doesn't respect the boundaries.

Horsedick 05-21-2012 10:33

Re: [TF2] End of round extension
 
Quote:

Originally Posted by asherkin (Post 1713606)
You can just use SourceMod's sm_cvar command to set it, it doesn't respect the boundaries.

not sure I follow...

Powerlord 05-21-2012 11:49

Re: [TF2] End of round extension
 
Quote:

Originally Posted by Horsedick (Post 1713647)
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.

Horsedick 05-21-2012 11:52

Re: [TF2] End of round extension
 
aww ok yeah follow now - thanks

Horsedick 05-21-2012 19:16

Re: [TF2] End of round extension
 
Ok that didn't work..its still 15 seconds and had an odd super fast flip sides.

next suggestion?

Horsedick 05-22-2012 10:21

Re: [TF2] End of round extension
 
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.

sirmoe 11-11-2012 22:42

Re: [TF2] End of round extension
 
Yeah I have also noticed this, even via sm_cvar it doesn't get extended

Powerlord 11-13-2012 10:08

Re: [TF2] End of round extension
 
Quote:

Originally Posted by sirmoe (Post 1836651)
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.

Root_ 11-16-2012 09:52

Re: [TF2] End of round extension
 
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) }


All times are GMT -4. The time now is 20:46.

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