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

3 players ingame 1 rtv only required ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 06-05-2012 , 21:10   3 players ingame 1 rtv only required ?
Reply With Quote #1

hi,
today I found something strange.
I was on my TF2 server (me + 2 other guys) now one of them typed rtv in chat and it was a success -> map changed instant.

I thought min. 2 players should be vote for a succesful RTV.

rtv.cfg:
Spoiler


now as you can see everything is default.
I'm not sure but is this because of sm_rtv_needed "0.60" (60% needed) ?
3 x 0.6 = 1.8
1.8 is only one player?

so if I would increse it to 0.70 (70% needed)
3 x 0.7 = 2.1
2.1 should be two player ?
so with 0.70 (70%) two out of three player must rtv for a succesful RTV ?

Please correct me if I'm wrong lol
__________________
AeroAcrobat is offline
xomp
BANNED
Join Date: Jul 2008
Old 06-06-2012 , 10:18   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #2

Anything involving SM's voting configuration is overly and unnecessarily complex (1.8 players? really?). It's just terrible.
xomp is offline
Send a message via Skype™ to xomp
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-06-2012 , 10:27   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #3

Quote:
Originally Posted by xomp View Post
Anything involving SM's voting configuration is overly and unnecessarily complex (1.8 players? really?). It's just terrible.
You're welcome to file patches with justification to change things.
__________________
asherkin is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-06-2012 , 11:30   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #4

Line 123 & 140
PHP Code:
g_VotesNeeded RoundToFloor(float(g_Voters) * GetConVarFloat(g_Cvar_Needed)); 
RoundToFloor(3.0 x 0.60 = 1.8) // Rounds a float to the next lowest integer value.
g_VotesNeeded = 1



Then start line 239
PHP Code:
    if (g_Votes >= g_VotesNeeded)
    {
        
StartRTV();
    } 
if(1 >= 1)
StartRTV();
Bacardi is offline
xomp
BANNED
Join Date: Jul 2008
Old 06-06-2012 , 16:58   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
You're welcome to file patches with justification to change things.
kay
xomp is offline
Send a message via Skype™ to xomp
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-06-2012 , 17:29   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #6

We could propose that it be changed to use RoundToNearest.

Alternately, it might be nice to have a rounding mode cvar... RoundToFloor, RoundToCeil, and RoundToNearest could be options then.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-06-2012 at 17:29.
Powerlord is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-06-2012 , 17:59   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #7

Quote:
Originally Posted by xomp View Post
Anything involving SM's voting configuration is overly and unnecessarily complex (1.8 players? really?). It's just terrible.
Would you like to fix math? What do you propose 3 x 0.6 equals?
__________________
Dr. McKay is offline
xomp
BANNED
Join Date: Jul 2008
Old 06-06-2012 , 18:07   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #8

Quote:
Originally Posted by Dr. McKay View Post
Would you like to fix math? What do you propose 3 x 0.6 equals?
kay
xomp is offline
Send a message via Skype™ to xomp
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 06-06-2012 , 18:30   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #9

Quote:
Originally Posted by Dr. McKay View Post
Would you like to fix math? What do you propose 3 x 0.6 equals?

3 x 0.6 = 1.8
__________________
NameUser is offline
Send a message via Skype™ to NameUser
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 06-07-2012 , 03:49   Re: 3 players ingame 1 rtv only required ?
Reply With Quote #10

Quote:
Originally Posted by NameUser View Post
3 x 0.6 = 1.8
NameUser is leaving no survivors with his math!

Anyway, I suggest perhaps using a number like 0.67 instead of 0.6. Close enough numbers, but allows a minimum of 2/3 players to RTV.
__________________
11530 is offline
Reply


Thread Tools
Display Modes

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 04:40.


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