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

[TF2] Permanent Crit Vote


Post New Thread Reply   
 
Thread Tools Display Modes
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 07-14-2010 , 08:48   Re: [TF2] Permanent Crit Vote
Reply With Quote #11

Great, Thanks Sillium, I'll put go ahead and put this on the servers.
SuperShadow is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-14-2010 , 11:18   Re: [TF2] Permanent Crit Vote
Reply With Quote #12

This is the message for late joiners:


This is the message when the calculation has finished:



Also the new version was working in my test so I updated the one in the first post
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 07-14-2010 at 11:25.
Sillium is offline
mycologist
SourceMod Donor
Join Date: Sep 2008
Location: Sep 2008
Old 07-21-2010 , 14:50   Re: [TF2] Permanent Crit Vote
Reply With Quote #13

Installed the latest version on all 3 of our server, works perfectly.
__________________

mycologist is offline
Arthurp
Junior Member
Join Date: Mar 2010
Old 07-27-2010 , 19:23   Re: [TF2] Permanent Crit Vote
Reply With Quote #14

I wondered if you would conceder making a "[TF2] Permanent Alltalk Vote" ?

Last edited by Arthurp; 07-27-2010 at 19:41. Reason: spelling
Arthurp is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 07-28-2010 , 01:49   Re: [TF2] Permanent Crit Vote
Reply With Quote #15

There you go:
http://forums.alliedmods.net/showthread.php?t=133710

Kind of untested actually but I basically only had to change the cvar and some names :-)
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
Arthurp
Junior Member
Join Date: Mar 2010
Old 07-28-2010 , 16:15   Re: [TF2] Permanent Crit Vote
Reply With Quote #16

Legendary, cheers./
Arthurp is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-07-2010 , 14:51   Re: [TF2] Permanent Crit Vote
Reply With Quote #17

Could you change it so that crits "off" is the first option, since most people vote for option 1 standard anyways normally.. i tried to look to change it, but i know i would miss something..
snelvuur is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 10-08-2010 , 01:56   Re: [TF2] Permanent Crit Vote
Reply With Quote #18

Why would you want it to be off? ^^


Change Lines 9 and 10 to:
PHP Code:
#define CRITS_ON  2
#define CRITS_OFF 1 
Switch line 152 and 153 to look like this:
PHP Code:
AddMenuItem(menu"Crit pref""Prefer Crits off");
AddMenuItem(menu"Crit pref""Prefer Crits on"); 
And line 178 with 182:
PHP Code:
if(== choice)
        {
            
PrintToChat(param1"\x04[\x03TF2-Crit Pref\x04]\x01 You selected Crits disabled");
        }
        else if(
== choice)
        {
            
PrintToChat(param1"\x04[\x03TF2-Crit Pref\x04]\x01 You selected Crits enabled");
        } 
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-08-2010 , 03:54   Re: [TF2] Permanent Crit Vote
Reply With Quote #19

Damn, i was close i had the second part and the 3rth part right, but didn't had the first part.. thanks.

Also i noticed that if 10 peope vote on, and 10 people voted off, that would be 50% but it still enabled votes, where i would expect it to turn it off. Other then that it works just fine.
I've got my clientprefs in a mysql now so that we have the preference across multiple servers (saves them from pressing a lot) unless the expire time runs out (assuming a cookie has that)
snelvuur is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 10-08-2010 , 07:01   Re: [TF2] Permanent Crit Vote
Reply With Quote #20

Without really thinking about it I would say:

Change this:
PHP Code:
if ((float(prefYes) / float(numPlayers)) >= percentage
to
PHP Code:
if ((float(prefYes) / float(numPlayers)) <= percentage
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium 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 15:01.


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