Post: Calculated Match Bonus 2
01-15-2015, 07:30 PM #1
Invalidate
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Alright so i figured the code to calculate the match bonus properly however the match bonus won't work/show up unless it's activated after the match begins in 5...4...3..2..1 thingy so I don't know where or how to insert it in the gsc for it to load EXACTLY after the countdown. Like it has to be activated right as the timer starts or the match bonus will be calculated incorrectly. So basically all I need to know is how do i activate it right after the match begins countdown automatically every round. Thank you all in advance Smile

    calcMatchBonus()
{
gameLength = maps\mp\gametypes\_globallogic_utils::getTimePassed() / 1000;
gameLength = min( gameLength, 1200);
self.matchbonus = int(((55+6) /12) * gameLength);
}
(adsbygoogle = window.adsbygoogle || []).push({});
01-15-2015, 11:22 PM #2
justinster
Error… Cat invasion!
by match bonus does that also mean that all kills and stuff you do in the private match will count as a public match on your combat record? and you can level up?
01-16-2015, 10:24 AM #3
Invalidate
Save Point
Originally posted by justinster View Post
by match bonus does that also mean that all kills and stuff you do in the private match will count as a public match on your combat record? and you can level up?


No it means the Match Bonus will show up after the round has ended and will be the correct numbers
01-16-2015, 02:29 PM #4
justinster
Error… Cat invasion!
Originally posted by Invalidate View Post
No it means the Match Bonus will show up after the round has ended and will be the correct numbers


What's the point of that when it doesn't do anything
01-16-2015, 02:45 PM #5
effective.
Save Point
whats ur skype? i have everything done just needed the code to calculate it properly. u gave it to me with this thread now i can help you if you want Winky Winky

edit: you could do it like
    calcMatchBonus()
{
gameLength = maps\mp\gametypes\_globallogic_utils::getTimePassed() / 1000;
gameLength = min( gameLength, 1205);
self.matchbonus = int(((55+6) /12) * gameLength);
}
i guess?
01-17-2015, 07:04 PM #6
whats ur skype?
01-17-2015, 10:57 PM #7
jwm614
NextGenUpdate Elite
matchBonus = createFontString( font, 2.0 );
matchBonus setParent( thirdTitle );
matchBonus setPoint( "TOP", "BOTTOM", 0, spacing );
matchBonus.glowAlpha = 1;
matchBonus.hideWhenInMenu = false;
matchBonus.archived = false;
matchBonus.immunetodemogamehudsettings = true;
matchBonus.immunetodemofreecamera = true;
if ( isDefined( self.matchBonus ) )
{
matchBonus.label = game["strings"]["match_bonus"];
matchBonus setValue( self.matchBonus );
}

self thread updateOutcome( firstTitle, secondTitle, thirdTitle );
self thread resetOutcomeNotify( undefined, undefined, outcomeTitle, outcomeText, firstTitle, secondTitle, thirdTitle, matchBonus );
01-17-2015, 11:13 PM #8
So what is the point of this again? Not being rude, like I actually want to know what the point is
02-19-2015, 02:54 AM #9
Where does that code go?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo