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

Change upgraded ammo cost?

broken avatar :(
Created 9 years ago
by Ruenad
0 Members and 1 Guest are viewing this topic.
1,721 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 15 September 2013
Last active: 3 years ago
Posts
22
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Ruenad's Groups
Ruenad's Contact & Social Links
I wanted to know if it is possible to change the cost of upgraded ammo.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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.
Community 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
Define the weapon costs in zombiemode.csv and then include your mod using stringtable,mp/zombiemode.csv

look below
Last Edit: September 08, 2015, 10:58:19 pm by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 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
In _zombiemode_weapons, search for ammo_cost = 4500; Change 4500 to what you want it to be set
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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.
Community 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
In _zombiemode_weapons, search for ammo_cost = 4500; Change 4500 to what you want it to be set
o
upgraded kek

then yeah follow that
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
If you want to change upgraded ammo globally, then sure, change the 4500. But ammo is actually tracked when you use the add_zombie_weapon function. You can define the cost for ammo there. Unfortunately, where the 4500 is, there is an if condition that overrides that for upgraded weapons. If you wanted each to be different, you could simply add an ammo cost to the ones you want, and modify the stuff around the 4500 area like this:

Code Snippet
Plaintext
			if ( player has_upgrade( self.zombie_weapon_upgrade ) )
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade + "_upgraded" );
if(ammo_cost == level.zombie_weapons[self.zombie_weapon_upgrade + "_upgraded"]/2 ) ammo_cost = 4500;
}
else
{
ammo_cost = get_ammo_cost( self.zombie_weapon_upgrade );
}

I would change it in the add_zombie_weapon function and here, myself, but this way prob easier to understand.
Last Edit: September 09, 2015, 01:13:33 am by MakeCents

 
Loading ...