1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-25 06:30:22 -05:00

Borough: buildables can spawn at Church bench

This commit is contained in:
Jbleezy
2023-03-09 23:25:34 -08:00
parent 067a9a8cb1
commit 95c3cac6b9
3 changed files with 19 additions and 29 deletions

View File

@ -468,6 +468,7 @@
* Moved Quick Revive to Speed Cola's location on Borough
* Moved Speed Cola to its location on Buried
* Moved Stamin-Up to Vulture Aid's location on Buried
* Buildables can spawn at Church bench
* Added better randomization for buildables
### Origins

View File

@ -2774,6 +2774,7 @@ buildbuildables()
updatebuildables();
removebuildable( "turbine", "buried" );
removebuildable( "headchopper_zm", "buried" ); // TODO - remove line when headchopper anims work on Borough
}
}
}

View File

@ -4,7 +4,7 @@
#include maps\mp\zombies\_zm_equip_subwoofer;
#include maps\mp\zombies\_zm_equip_springpad;
#include maps\mp\zombies\_zm_equip_turbine;
//#include maps\mp\zombies\_zm_equip_headchopper;
#include maps\mp\zombies\_zm_equip_headchopper;
#include maps\mp\zm_buried_buildables;
#include maps\mp\zm_buried_gamemodes;
#include maps\mp\zombies\_zm_race_utility;
@ -14,27 +14,33 @@
precache()
{
// trig = getent("turbine_buildable_trigger", "targetname");
// if(isDefined(trig))
// {
// trig.targetname = "headchopper_buildable_trigger";
// }
precachemodel( "collision_wall_128x128x10_standard" );
precachemodel( "collision_wall_256x256x10_standard" );
precachemodel( "collision_wall_512x512x10_standard" );
precachemodel( "zm_collision_buried_street_grief" );
precachemodel( "p6_zm_bu_buildable_bench_tarp" );
trig = spawn( "script_model", (1288, 1485, 59) );
trig.angles = (0, 0, 0);
trig.script_angles = (0, 70, 0);
trig.targetname = "headchopper_buildable_trigger";
trig.target = "buildable_headchopper";
ent = spawn( "script_model", (1271.89, 1495.38, 77.78) );
ent.angles = (61.5365, 340.343, 0.216167);
ent.targetname = "buildable_headchopper";
ent.target = "headchopper_bench";
ent setmodel( "t6_wpn_zmb_chopper" );
level.chalk_buildable_pieces_hide = 1;
griefbuildables = array( "chalk", "turbine", "springpad_zm", "subwoofer_zm" );
//griefbuildables = array( "chalk", "headchopper_zm", "springpad_zm", "subwoofer_zm" );
griefbuildables = array( "chalk", "turbine", "springpad_zm", "subwoofer_zm", "headchopper_zm" );
maps\mp\zm_buried_buildables::include_buildables( griefbuildables );
maps\mp\zm_buried_buildables::init_buildables( griefbuildables );
maps\mp\zombies\_zm_equip_turbine::init();
maps\mp\zombies\_zm_equip_turbine::init_animtree();
maps\mp\zombies\_zm_equip_springpad::init( &"ZM_BURIED_EQ_SP_PHS", &"ZM_BURIED_EQ_SP_HTS" );
maps\mp\zombies\_zm_equip_subwoofer::init( &"ZM_BURIED_EQ_SW_PHS", &"ZM_BURIED_EQ_SW_HTS" );
//maps\mp\zombies\_zm_equip_headchopper::init( &"ZM_BURIED_EQ_HC_PHS", &"ZM_BURIED_EQ_HC_HTS" );
maps\mp\zombies\_zm_equip_headchopper::init( &"ZM_BURIED_EQ_HC_PHS", &"ZM_BURIED_EQ_HC_HTS" );
}
street_treasure_chest_init()
@ -62,10 +68,6 @@ main()
level thread maps\mp\zombies\_zm_buildables::think_buildables();
maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "street" );
street_treasure_chest_init();
generatebuildabletarps();
deletebuildabletarp( "courthouse" );
deletebuildabletarp( "bar" );
deletebuildabletarp( "generalstore" );
deleteslothbarricades();
disable_tunnels();
@ -166,21 +168,7 @@ builddynamicwallbuy( location, weaponname )
buildbuildables()
{
// hack for headchopper model
// foreach(stub in level.buildable_stubs)
// {
// if(stub.equipname == "headchopper_zm")
// {
// origin_offset = (anglesToRight(stub.angles) * 8.57037) + (anglesToUp(stub.angles) * 17.78);
// angles_offset = (61.5365, 90.343, 0.216167);
// stub.model setModel("t6_wpn_zmb_chopper");
// stub.model.origin += origin_offset;
// stub.model.angles = stub.angles + angles_offset;
// }
// }
//buildbuildable( "headchopper_zm" );
buildbuildable( "headchopper_zm" );
buildbuildable( "springpad_zm" );
buildbuildable( "subwoofer_zm" );
buildbuildable( "turbine" );