mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
Claymore: increase explosion radius Move certain vars to not exceed canonical string table limit
26 lines
684 B
Plaintext
26 lines
684 B
Plaintext
#include maps\mp\zombies\_zm_ffotd;
|
|
#include common_scripts\utility;
|
|
#include maps\mp\_utility;
|
|
#include maps\mp\zombies\_zm_utility;
|
|
#include maps\mp\zombies\_zm_stats;
|
|
|
|
ffotd_melee_miss_func()
|
|
{
|
|
if (isdefined(self.enemy))
|
|
{
|
|
if (isplayer(self.enemy) && is_placeable_mine(self.enemy getcurrentweapon()))
|
|
{
|
|
dist_sq = distancesquared(self.enemy.origin, self.origin);
|
|
melee_dist_sq = self.meleeattackdist * self.meleeattackdist;
|
|
|
|
if (dist_sq < melee_dist_sq)
|
|
{
|
|
self.enemy dodamage(self.meleedamage, self.origin, self, self, "none", "MOD_MELEE");
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (isdefined(level.original_melee_miss_func))
|
|
self [[level.original_melee_miss_func]]();
|
|
} |