mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-08 12:58:13 -05:00
Bouncing Betty: replace Claymore on Origins
Claymore: increase explosion radius Move certain vars to not exceed canonical string table limit
This commit is contained in:
26
scripts/zm/replaced/_zm_ffotd.gsc
Normal file
26
scripts/zm/replaced/_zm_ffotd.gsc
Normal file
@ -0,0 +1,26 @@
|
||||
#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]]();
|
||||
}
|
Reference in New Issue
Block a user