mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
Encounter: fix alternate weapons not being counted as upgraded weapons
This commit is contained in:
@ -1696,6 +1696,8 @@ game_module_player_damage_callback(einflictor, eattacker, idamage, idflags, smea
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sweapon = get_real_nonalternate_weapon(sweapon);
|
||||||
|
|
||||||
if (!is_true(self._being_shellshocked))
|
if (!is_true(self._being_shellshocked))
|
||||||
{
|
{
|
||||||
self do_game_mode_stun_score_steal(eattacker);
|
self do_game_mode_stun_score_steal(eattacker);
|
||||||
@ -1923,6 +1925,25 @@ remove_player_damage_info()
|
|||||||
self.last_griefed_by = undefined;
|
self.last_griefed_by = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_real_nonalternate_weapon(sweapon)
|
||||||
|
{
|
||||||
|
sweapon = get_nonalternate_weapon(sweapon);
|
||||||
|
|
||||||
|
if (issubstr(sweapon, "metalstorm"))
|
||||||
|
{
|
||||||
|
if (issubstr(sweapon, "upgraded"))
|
||||||
|
{
|
||||||
|
sweapon = "metalstorm_mms_upgraded_zm";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sweapon = "metalstorm_mms_zm";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return sweapon;
|
||||||
|
}
|
||||||
|
|
||||||
grief_laststand_weapon_save(einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration)
|
grief_laststand_weapon_save(einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime, deathanimduration)
|
||||||
{
|
{
|
||||||
self.grief_savedweapon_weapons = self getweaponslist();
|
self.grief_savedweapon_weapons = self getweaponslist();
|
||||||
|
Reference in New Issue
Block a user