UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: NoScopeNinja25 on December 29, 2016, 08:52:44 am

Title: More Pack-a-Punch Camos
Post by: NoScopeNinja25 on December 29, 2016, 08:52:44 am
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;
}
}
Title: Re: More Pack-a-Punch Camos
Post by: NoScopeNinja25 on January 07, 2017, 07:17:06 am
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 (http://ugx-mods.com/forum/index.php/topic,14354.0.html)