mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-19 03:28:38 -05:00
MOTD: Zombie Shield shows as first craftable
This commit is contained in:
@ -2562,6 +2562,7 @@ buildcraftables()
|
|||||||
{
|
{
|
||||||
buildcraftable( "alcatraz_shield_zm" );
|
buildcraftable( "alcatraz_shield_zm" );
|
||||||
buildcraftable( "packasplat" );
|
buildcraftable( "packasplat" );
|
||||||
|
changecraftableoption( 0 );
|
||||||
}
|
}
|
||||||
else if(level.scr_zm_map_start_location == "tomb")
|
else if(level.scr_zm_map_start_location == "tomb")
|
||||||
{
|
{
|
||||||
@ -2572,6 +2573,38 @@ buildcraftables()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changecraftableoption( index )
|
||||||
|
{
|
||||||
|
foreach (craftable in level.a_uts_craftables)
|
||||||
|
{
|
||||||
|
if (craftable.equipname == "open_table")
|
||||||
|
{
|
||||||
|
craftable thread setcraftableoption( index );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setcraftableoption( index )
|
||||||
|
{
|
||||||
|
self endon("death");
|
||||||
|
|
||||||
|
while (self.a_uts_open_craftables_available.size <= 0)
|
||||||
|
{
|
||||||
|
wait 0.05;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (self.a_uts_open_craftables_available.size > 1)
|
||||||
|
{
|
||||||
|
self.n_open_craftable_choice = index;
|
||||||
|
self.equipname = self.a_uts_open_craftables_available[self.n_open_craftable_choice].equipname;
|
||||||
|
self.hint_string = self.a_uts_open_craftables_available[self.n_open_craftable_choice].hint_string;
|
||||||
|
foreach (trig in self.playertrigger)
|
||||||
|
{
|
||||||
|
trig sethintstring( self.hint_string );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
takecraftableparts( buildable )
|
takecraftableparts( buildable )
|
||||||
{
|
{
|
||||||
player = get_players()[ 0 ];
|
player = get_players()[ 0 ];
|
||||||
@ -5161,6 +5194,18 @@ test()
|
|||||||
{
|
{
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
i = 0;
|
||||||
|
foreach (craftable in level.a_uts_craftables)
|
||||||
|
{
|
||||||
|
if (isDefined(craftable.origin) && Distance(craftable.origin, self.origin) < 128)
|
||||||
|
{
|
||||||
|
i++;
|
||||||
|
//iprintln(craftable.equipname);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
iprintln(i);
|
||||||
|
|
||||||
wait 1;
|
wait 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user