mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 22:31:36 -05:00
Origins: gramophone and records picked up
This commit is contained in:
parent
271c6d5941
commit
d0f8eb4032
@ -104,4 +104,5 @@
|
|||||||
|
|
||||||
### Origins
|
### Origins
|
||||||
* Shovels automatically picked up
|
* Shovels automatically picked up
|
||||||
|
* Gramophone and records automatically picked up
|
||||||
* Der Wunderfizz: all perks have an equal chance of being obtained
|
* Der Wunderfizz: all perks have an equal chance of being obtained
|
@ -304,6 +304,9 @@ buildbuildable( buildable )
|
|||||||
// MOTD/Origins style buildables
|
// MOTD/Origins style buildables
|
||||||
buildcraftables()
|
buildcraftables()
|
||||||
{
|
{
|
||||||
|
// need a wait or else some buildables dont build
|
||||||
|
wait 1;
|
||||||
|
|
||||||
if(is_classic())
|
if(is_classic())
|
||||||
{
|
{
|
||||||
if(level.scr_zm_map_start_location == "prison")
|
if(level.scr_zm_map_start_location == "prison")
|
||||||
@ -315,10 +318,42 @@ buildcraftables()
|
|||||||
{
|
{
|
||||||
buildcraftable( "tomb_shield_zm" );
|
buildcraftable( "tomb_shield_zm" );
|
||||||
buildcraftable( "equip_dieseldrone_zm" );
|
buildcraftable( "equip_dieseldrone_zm" );
|
||||||
|
takecraftableparts( "gramophone" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
takecraftableparts( buildable )
|
||||||
|
{
|
||||||
|
player = get_players()[ 0 ];
|
||||||
|
_a197 = level.zombie_include_craftables;
|
||||||
|
_k197 = getFirstArrayKey( _a197 );
|
||||||
|
while ( isDefined( _k197 ) )
|
||||||
|
{
|
||||||
|
stub = _a197[ _k197 ];
|
||||||
|
if ( stub.name == buildable )
|
||||||
|
{
|
||||||
|
_a206 = stub.a_piecestubs;
|
||||||
|
_k206 = getFirstArrayKey( _a206 );
|
||||||
|
while ( isDefined( _k206 ) )
|
||||||
|
{
|
||||||
|
piece = _a206[ _k206 ];
|
||||||
|
|
||||||
|
piecespawn = piece.piecespawn;
|
||||||
|
if ( isDefined( piecespawn ) )
|
||||||
|
{
|
||||||
|
player player_take_piece( piecespawn );
|
||||||
|
}
|
||||||
|
|
||||||
|
_k206 = getNextArrayKey( _a206, _k206 );
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_k197 = getNextArrayKey( _a197, _k197 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buildcraftable( buildable )
|
buildcraftable( buildable )
|
||||||
{
|
{
|
||||||
player = get_players()[ 0 ];
|
player = get_players()[ 0 ];
|
||||||
@ -342,8 +377,6 @@ buildcraftable( buildable )
|
|||||||
_k206 = getNextArrayKey( _a206, _k206 );
|
_k206 = getNextArrayKey( _a206, _k206 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - auto build at crafting table
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_k197 = getNextArrayKey( _a197, _k197 );
|
_k197 = getNextArrayKey( _a197, _k197 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user