mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-18 11:08:26 -05:00
90 lines
2.3 KiB
Plaintext
90 lines
2.3 KiB
Plaintext
#include common_scripts\utility;
|
|
#include maps\mp\_utility;
|
|
#include maps\mp\zombies\_zm_craftables;
|
|
#include maps\mp\zombies\_zm_utility;
|
|
#include maps\mp\zombies\_zm_weapons;
|
|
#include maps\mp\zm_tomb_utility;
|
|
#include maps\mp\zm_tomb_main_quest;
|
|
#include maps\mp\zm_tomb_vo;
|
|
#include maps\mp\zombies\_zm_unitrigger;
|
|
#include maps\mp\zombies\_zm_audio;
|
|
#include maps\mp\zombies\_zm_zonemgr;
|
|
#include maps\mp\zombies\_zm_ai_quadrotor;
|
|
#include maps\mp\zombies\_zm_equipment;
|
|
#include maps\mp\zm_tomb_craftables;
|
|
|
|
is_unclaimed_staff_weapon( str_weapon )
|
|
{
|
|
if ( !maps\mp\zombies\_zm_equipment::is_limited_equipment( str_weapon ) )
|
|
{
|
|
return true;
|
|
}
|
|
|
|
s_elemental_staff = get_staff_info_from_weapon_name( str_weapon, 0 );
|
|
players = get_players();
|
|
|
|
foreach ( player in players )
|
|
{
|
|
if ( isdefined( player ) && player has_weapon_or_upgrade( s_elemental_staff.weapname ) )
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
e_upgraded_staff = maps\mp\zm_tomb_craftables::get_staff_info_from_weapon_name( str_weapon );
|
|
|
|
if (is_true(e_upgraded_staff.ee_in_use))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
quadrotor_control_thread()
|
|
{
|
|
self endon( "bled_out" );
|
|
self endon( "disconnect" );
|
|
|
|
while ( 1 )
|
|
{
|
|
if ( self actionslottwobuttonpressed() && self hasweapon( "equip_dieseldrone_zm" ) )
|
|
{
|
|
prev_wep = self getCurrentWeapon();
|
|
|
|
self waittill( "weapon_change_complete" );
|
|
|
|
self playsound( "veh_qrdrone_takeoff" );
|
|
|
|
if(self hasweapon(prev_wep) && prev_wep != "equip_dieseldrone_zm")
|
|
{
|
|
self switchtoweapon( prev_wep );
|
|
}
|
|
else
|
|
{
|
|
self switchtoweapon( self getweaponslistprimaries()[0] );
|
|
}
|
|
|
|
self waittill( "weapon_change_complete" );
|
|
|
|
if ( self hasweapon( "equip_dieseldrone_zm" ) )
|
|
{
|
|
self takeweapon( "equip_dieseldrone_zm" );
|
|
self setactionslot( 2, "" );
|
|
}
|
|
|
|
str_vehicle = "heli_quadrotor_zm";
|
|
if ( flag( "ee_maxis_drone_retrieved" ) )
|
|
{
|
|
str_vehicle = "heli_quadrotor_upgraded_zm";
|
|
}
|
|
|
|
qr = spawnvehicle( "veh_t6_dlc_zm_quadrotor", "quadrotor_ai", str_vehicle, self.origin + vectorScale( ( 0, 0, 1 ), 96 ), self.angles );
|
|
level thread maps\mp\zm_tomb_craftables::quadrotor_death_watcher( qr );
|
|
qr thread maps\mp\zm_tomb_craftables::quadrotor_instance_watcher( self );
|
|
return;
|
|
}
|
|
|
|
wait 0.05;
|
|
}
|
|
} |