From 5b15ec6eb581f7a4b0d2e1d02a8b152779d38270 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sun, 2 Apr 2023 20:39:05 -0700 Subject: [PATCH] Maxis Drone: kills on any round --- README.md | 1 + scripts/zm/replaced/_zm.gsc | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 5638db45..79146946 100644 --- a/README.md +++ b/README.md @@ -424,6 +424,7 @@ * Buildable table trigger requires look at ### Maxis Drone +* Kills on any round in 1-4 shots (normally does 12000 damage max) * Added hint strings for purchased, can only be one, and cooling down * Buildable table model sits on top of the stand * Rotated buildable table model 90 degrees diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index 551116b1..96d3ca27 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -191,6 +191,20 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon, } } + if ( weapon == "quadrotorturret_zm" && meansofdeath == "MOD_PISTOL_BULLET" ) + { + if (!is_true(self.is_mechz)) + { + damage_scalar = damage / 6000; + min_damage = int( damage_scalar * level.zombie_health ) + 1; + + if ( damage < min_damage ) + { + damage = min_damage; + } + } + } + if ( isSubStr( weapon, "tower_trap" ) ) { if (!is_true(self.is_brutus))