mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Titus-6: add on Nuketown
This commit is contained in:
@ -43,6 +43,7 @@ main()
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::create_zombie_point_of_interest, scripts\zm\replaced\_zm_utility::create_zombie_point_of_interest);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::create_zombie_point_of_interest_attractor_positions, scripts\zm\replaced\_zm_utility::create_zombie_point_of_interest_attractor_positions);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::get_current_zone, scripts\zm\replaced\_zm_utility::get_current_zone);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::is_alt_weapon, scripts\zm\replaced\_zm_utility::is_alt_weapon);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::is_temporary_zombie_weapon, scripts\zm\replaced\_zm_utility::is_temporary_zombie_weapon);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::wait_network_frame, scripts\zm\replaced\_zm_utility::wait_network_frame);
|
||||
replaceFunc(maps\mp\zombies\_zm_utility::track_players_intersection_tracker, scripts\zm\replaced\_zm_utility::track_players_intersection_tracker);
|
||||
@ -1683,6 +1684,16 @@ weapon_changes()
|
||||
add_zombie_weapon("metalstorm_mms_zm", "metalstorm_mms_upgraded_zm", &"WEAPON_METALSTORM", 1000, "", "", undefined, 1);
|
||||
}
|
||||
|
||||
if (level.script == "zm_nuked")
|
||||
{
|
||||
include_weapon("titus6_zm");
|
||||
include_weapon("titus6_upgraded_zm", 0);
|
||||
add_limited_weapon("titus6_zm", 1);
|
||||
add_zombie_weapon("titus6_zm", "titus6_upgraded_zm", &"WEAPON_TITUS6_EXPLOSIVE", 1000, "", "", undefined, 1);
|
||||
precacheitem("titus6_explosive_dart_zm");
|
||||
precacheitem("titus6_explosive_dart_upgraded_zm");
|
||||
}
|
||||
|
||||
if (level.script == "zm_prison")
|
||||
{
|
||||
include_weapon("held_knife_zm_alcatraz", 0);
|
||||
|
@ -1584,6 +1584,26 @@ actor_damage_override(inflictor, attacker, damage, flags, meansofdeath, weapon,
|
||||
}
|
||||
}
|
||||
|
||||
if (weapon == "titus6_explosive_dart_zm")
|
||||
{
|
||||
final_damage = scale_damage(final_damage, 3000);
|
||||
}
|
||||
|
||||
if (weapon == "titus6_explosive_dart_upgraded_zm")
|
||||
{
|
||||
final_damage = scale_damage(final_damage, 6000);
|
||||
}
|
||||
|
||||
if (weapon == "mk_titus6_zm")
|
||||
{
|
||||
final_damage = scale_damage(final_damage, 500);
|
||||
}
|
||||
|
||||
if (weapon == "mk_titus6_upgraded_zm")
|
||||
{
|
||||
final_damage = scale_damage(final_damage, 1000);
|
||||
}
|
||||
|
||||
if (weapon == "staff_revive_zm")
|
||||
{
|
||||
if (!is_true(self.is_mechz))
|
||||
@ -2259,9 +2279,16 @@ player_damage_override(einflictor, eattacker, idamage, idflags, smeansofdeath, s
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (self.health > 75 && !is_true(self.is_zombie))
|
||||
exp_damage = 75;
|
||||
|
||||
if (sweapon == "titus6_explosive_dart_zm" || sweapon == "titus6_explosive_dart_upgraded_zm")
|
||||
{
|
||||
return 75;
|
||||
exp_damage = 15;
|
||||
}
|
||||
|
||||
if (self.health > exp_damage && !is_true(self.is_zombie))
|
||||
{
|
||||
return exp_damage;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -338,6 +338,23 @@ is_temporary_zombie_weapon(str_weapon)
|
||||
return is_zombie_perk_bottle(str_weapon) || str_weapon == level.revive_tool || str_weapon == "zombie_builder_zm" || str_weapon == "chalk_draw_zm" || str_weapon == "no_hands_zm" || issubstr(str_weapon, "_flourish");
|
||||
}
|
||||
|
||||
is_alt_weapon(weapname)
|
||||
{
|
||||
if (getsubstr(weapname, 0, 3) == "gl_")
|
||||
return true;
|
||||
|
||||
if (getsubstr(weapname, 0, 3) == "mk_")
|
||||
return true;
|
||||
|
||||
if (getsubstr(weapname, 0, 3) == "sf_")
|
||||
return true;
|
||||
|
||||
if (getsubstr(weapname, 0, 10) == "dualoptic_")
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
wait_network_frame()
|
||||
{
|
||||
wait 0.1;
|
||||
|
Reference in New Issue
Block a user