UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to fix points problem?

HOT
broken avatar :(
Created 11 years ago
by Erthrock
0 Members and 1 Guest are viewing this topic.
6,891 views
broken avatar :(
×
broken avatar :(
Location: usGarrett, IN
Date Registered: 4 May 2014
Last active: 7 years ago
Posts
164
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
The world will always underestimate me...until i show them what my creativity is capable of.
×
Erthrock's Groups
so what would i do?  :P
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
lol, thatll take us a little longer, we need to look a few things up ;)
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I'd just change the amount the player receives in dlc3_code to 30 or 20.

So in this function in dlc3_code:

Code Snippet
Plaintext
check_for_change()

and change the add to player score to:

Code Snippet
Plaintext
player maps\_zombiemode_score::add_to_player_score( 30 );

Its a cheap fix but it should (hopefully) fix it.
Last Edit: April 27, 2015, 09:49:26 pm by daedra descent
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Note:
Code Snippet
Plaintext
//chris_p - added dogs to the scoring
player_add_points( event, mod, hit_location ,is_dog)
{
if( level.intermission )
{
return;
}

if( !is_player_valid( self ) )
{
return;
}

points = 0;

switch( event )
{
case "death":
points = level.zombie_vars["zombie_score_kill"];
points += player_add_points_kill_bonus( mod, hit_location );
if(IsDefined(self.kill_tracker))
{
self.kill_tracker++;
}
else
{
self.kill_tracker = 1;
}
//stats tracking
self.stats["kills"] = self.kill_tracker;

if( mod == "MOD_MELEE" && self hasperk( "specialty_altmelee" ) )
{
self achievement_notify( "DLC3_ZOMBIE_BOWIE_KILLS" );
}

if( level.zombie_vars["zombie_powerup_insta_kill_on"] == 1 && mod == "MOD_UNKNOWN" )
{
points = points * 2;
}

break;

case "damage":
points = level.zombie_vars["zombie_score_damage"];
break;

case "damage_ads":
points = Int( level.zombie_vars["zombie_score_damage"] * 1.25 );
break;

default:
assertex( 0, "Unknown point event" );
break;
}

points = round_up_to_ten( points ) * level.zombie_vars["zombie_point_scalar"];


self.score += points;
self.score_total += points;
//stat tracking
self.stats["score"] = self.score_total;

self set_player_score_hud();
// self thread play_killstreak_vo();
}

Edit: So it looks like my theory was correct that the HUD ownerdraw is rounded up automatically.
Last Edit: April 27, 2015, 09:55:22 pm by DidUknowiPwn
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Note:
Code Snippet
Plaintext
//chris_p - added dogs to the scoring
player_add_points( event, mod, hit_location ,is_dog)
{
if( level.intermission )
{
return;
}

if( !is_player_valid( self ) )
{
return;
}

points = 0;

switch( event )
{
case "death":
points = level.zombie_vars["zombie_score_kill"];
points += player_add_points_kill_bonus( mod, hit_location );
if(IsDefined(self.kill_tracker))
{
self.kill_tracker++;
}
else
{
self.kill_tracker = 1;
}
//stats tracking
self.stats["kills"] = self.kill_tracker;

if( mod == "MOD_MELEE" && self hasperk( "specialty_altmelee" ) )
{
self achievement_notify( "DLC3_ZOMBIE_BOWIE_KILLS" );
}

if( level.zombie_vars["zombie_powerup_insta_kill_on"] == 1 && mod == "MOD_UNKNOWN" )
{
points = points * 2;
}

break;

case "damage":
points = level.zombie_vars["zombie_score_damage"];
break;

case "damage_ads":
points = Int( level.zombie_vars["zombie_score_damage"] * 1.25 );
break;

default:
assertex( 0, "Unknown point event" );
break;
}

points = round_up_to_ten( points ) * level.zombie_vars["zombie_point_scalar"];


self.score += points;
self.score_total += points;
//stat tracking
self.stats["score"] = self.score_total;

self set_player_score_hud();
// self thread play_killstreak_vo();
}

Edit: So it looks like my theory was correct that the HUD ownerdraw is rounded up automatically.
(Image removed from quote.)

Modulus... How i despise thee.  :P


broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
yea, so the hud would "say" 950, but your actual score would be 945, right?
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
yea, so the hud would "say" 950, but your actual score would be 945, right?
Looks that way yup.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Quote
Looks that way yup.

Ive been waiting 6 years for someone to say that lol

you literally just made my day lol
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
So then, player.score>= zombie_cost-5 in the if conditions for the box, weapons, perks... So on... Or we change it to round down so it looks like we don't have enough points, since we don't.
Last Edit: April 28, 2015, 01:16:40 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: usGarrett, IN
Date Registered: 4 May 2014
Last active: 7 years ago
Posts
164
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Erthrock's Groups
i feel like i started a spark of smartness  :P  :nyan: :nyan: :nyan: :nyan:
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Shouldnt we do "-5" rather than "-10"?

Otherwise 940, will allow you to hit the box?
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
or just do round_up_to_ten(player.score) >= score then make sure points don't go below 0?

 
Loading ...