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

Alchemical Antithesis Perk Script

broken avatar :(
Created 6 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
1,984 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 1 year ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksarchdukesquidlyllljiggy22
Hello again to the forum, long time no see! I'm hard at work on an expansive 10-map mod for Black Ops Zombies, and one of the many features will be the inclusion of the Amm-O-Matic perk. I'm looking to have it function similarly to the Alchemical Antithesis gum from BO3, where every 50 points awards the player with one bullet in reserve. However, I don't want to make it so that the player doesn't earn any points, it'll just take a little more to earn the bullet. I've tried using an edited version of Lilrobot's script for the gum (which he said is okay to use, just as long as credit is given), which is written in the _zombiemode_score.gsc file, but it didn't work. Check out what I tried:

In this function:
Code Snippet
Plaintext
player_add_points( event, mod, hit_location ,is_dog)

I put this:
Code Snippet
Plaintext
	while(1)
{
if(self hasperk("specialty_bulletdamage"))
{
weapon = self GetCurrentWeapon();
if(weapon != "tesla_gun_zm" && weapon != "tesla_gun_upgraded_zm" )
if(weapon != "sniper_explosive_zm" && weapon != "sniper_explosive_upgraded_zm" )
if(weapon != "humangun_zm" && weapon != "humangun_upgraded_zm" )
{
current = self GetWeaponAmmoStock( weapon );
weaponstock = self GetWeaponAmmoStock( weapon );
addammo = int(player_points / 50);
self SetWeaponAmmoStock( weapon, weaponstock + addammo );
}
}
}

Under this:
Code Snippet
Plaintext
	if ( isdefined( self.point_split_receiver ) && (event == "death" || event == "ballistic_knife_death") )
{
split_player_points = player_points - round_up_score( (player_points * self.point_split_keep_percent), 10 );
self.point_split_receiver add_to_player_score( split_player_points );
player_points = player_points - split_player_points;
}

Anybody know how I can fix this? The new BO1 section seems a little barren at the moment, so hopefully someone will at least see this lol. Thanks!
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
First: You have no wait/break inside the while loop so it probably breaks at start of the game, meaning it never works
Second: This wont't work:
Code Snippet
Plaintext
			weapon = self GetCurrentWeapon();
if(weapon != "tesla_gun_zm" && weapon != "tesla_gun_upgraded_zm" )
if(weapon != "sniper_explosive_zm" && weapon != "sniper_explosive_upgraded_zm" )
if(weapon != "humangun_zm" && weapon != "humangun_upgraded_zm" )
Add the weapon checks in one line, but if you want to do multiple, you need to do extra brackets. But right now that won't work
Last Edit: January 14, 2018, 05:39:50 pm by HitmanVere

 
Loading ...