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

More Pack-a-Punch Camos

broken avatar :(
Created 7 years ago
by NoScopeNinja25
0 Members and 1 Guest are viewing this topic.
1,420 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 April 2016
Last active: 5 years ago
Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Signature
BO3 Map(s): Die Kiste
Scripter
Mapper
×
I was wondering if there is a way to add more than just the pack-a-punch camos from one map?

Right now if I want to add the Revelations camos(id 121-125) I just put this in my main function.

Code Snippet
Plaintext
level.pack_a_punch_camo_index = 121;
level.pack_a_punch_camo_index_number_variants = 4;
But if I want to add the Der Eisendrache camos(id 75-80) and the Revelations camos(id 121-125) what do I do?
I can't just put in 75 for the index and 50 for the number of variants because I would get all the camos in between.

I would guess you have to change something in the get_pack_a_punch_camo_index function in _zm_weapons.gsc

Spoiler: click to open...
Code Snippet
Plaintext
function get_pack_a_punch_camo_index( prev_pap_index )
{
if( isdefined(level.pack_a_punch_camo_index_number_variants) )
{
if( isdefined( prev_pap_index ) )
{
camo_variant = prev_pap_index + 1;
if( camo_variant >= (level.pack_a_punch_camo_index+level.pack_a_punch_camo_index_number_variants) )
{
camo_variant = level.pack_a_punch_camo_index;
}
return camo_variant;
}
else
{
camo_variant = randomIntRange( 0, level.pack_a_punch_camo_index_number_variants );
return level.pack_a_punch_camo_index +  camo_variant;
}
}
else
{
return level.pack_a_punch_camo_index;
}
}
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 17 April 2016
Last active: 5 years ago
Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
After further investigation, it seems that Treyarch isn't allowing us to change the default game scripts yet.

Original post: http://ugx-mods.com/forum/index.php/topic,14354.0.html

 
Loading ...