mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-26 09:23:36 +00:00
Yay >> Yea
This commit is contained in:
parent
83588b4148
commit
ed6bbdb415
2 changed files with 13 additions and 13 deletions
|
|
@ -87,24 +87,24 @@ function voteLog(%client, %typeName, %arg1, %arg2, %arg3, %arg4)
|
|||
|
||||
// votePercentLog(%client, %typeName, %key, %game.votesFor[%game.kickTeam], %game.votesAgainst[%game.kickTeam], %totalVotes, %game.totalVotesNone)
|
||||
// Info: Logs voting percent events
|
||||
function votePercentLog(%display, %typeName, %key, %voteYay, %voteNay, %voteTotal, %voteNone) //%voteNone = Did Not Vote (DNV) (Abstain)
|
||||
function votePercentLog(%display, %typeName, %key, %voteYea, %voteNay, %voteTotal, %voteNone) //%voteNone = Did Not Vote (DNV) (Abstain)
|
||||
{
|
||||
if($Host::ClassicVoteLog)
|
||||
{
|
||||
// Dif calc for "VoteKickPlayer"
|
||||
if(%typeName $= "VoteKickPlayer")
|
||||
{
|
||||
%percent = mFloor((%voteYay/ClientGroup.getCount()) * 100);
|
||||
%percent = mFloor((%voteYea/ClientGroup.getCount()) * 100);
|
||||
%voteNone = "N/A";
|
||||
%display = %typeName SPC "[" @ %display.nameBase @ "]";
|
||||
}
|
||||
else
|
||||
{
|
||||
%percent = mFloor((%voteYay/(ClientGroup.getCount() - %voteNone)) * 100);
|
||||
%percent = mFloor((%voteYea/(ClientGroup.getCount() - %voteNone)) * 100);
|
||||
%display = %typeName SPC "[" @ %display @ "]";
|
||||
}
|
||||
|
||||
$VoteLog = "[" @ %key @ "]" SPC %display SPC "Yay[" @ %voteYay @ "] Nay[" @ %voteNay @ "] Abstain[" @ %voteNone @ "] Total[" @ %voteTotal @ "] Vote%[" @ %percent @ "]";
|
||||
$VoteLog = "[" @ %key @ "]" SPC %display SPC "Yea[" @ %voteYea @ "] Nay[" @ %voteNay @ "] Abstain[" @ %voteNone @ "] Total[" @ %voteTotal @ "] Vote%[" @ %percent @ "]";
|
||||
|
||||
// this is the info that will be logged
|
||||
%logpath = $Host::ClassicVoteLogPath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue