From 6b41e7c6c5baea7b52af8844f3be6fc7d149301c Mon Sep 17 00:00:00 2001 From: Game Hunter Date: Tue, 17 Jan 2023 21:30:03 +0100 Subject: [PATCH] Added 'Armor Upgrade (+50)' Ability for Rusher and 'weapon_zclaws' Fixes. --- scripts/maps/hlze/classes/zombie_classes.as | 1 + scripts/maps/hlze/weapons/weapon_zombie.as | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/maps/hlze/classes/zombie_classes.as b/scripts/maps/hlze/classes/zombie_classes.as index 122f3d6..f18425f 100644 --- a/scripts/maps/hlze/classes/zombie_classes.as +++ b/scripts/maps/hlze/classes/zombie_classes.as @@ -128,6 +128,7 @@ namespace ZClasses //Register abilities to this class rusher.Register_Ability("Frenzy Mode",30);//Toggleable Ability(Must be first!), Leave ("Nothing",0) to ignore this rusher.Register_Ability("Long Jump",15); + rusher.Register_Ability("Armor Upgrade (+50)",100); //+50 Armor //---------------------------------------- //Crasher Zombie_Class crasher(Zombie_Classes, //Array that is used to register this class diff --git a/scripts/maps/hlze/weapons/weapon_zombie.as b/scripts/maps/hlze/weapons/weapon_zombie.as index 787dc08..9a2d749 100644 --- a/scripts/maps/hlze/weapons/weapon_zombie.as +++ b/scripts/maps/hlze/weapons/weapon_zombie.as @@ -870,7 +870,8 @@ class weapon_zclaws : ScriptBasePlayerWeaponEntity if(hc !is null) { g_EntityFuncs.DispatchSpawn(hc.edict()); hc.SetPlayerAllyDirect(true); - hc.pev.origin = vecSrc + g_Engine.v_forward * hcTriangle[c].y + g_Engine.v_right * hcTriangle[c].x; + //hc.pev.origin = vecSrc + g_Engine.v_forward * hcTriangle[c].y + g_Engine.v_right * hcTriangle[c].x; + hc.pev.origin = Unstuck::GetUnstuckPosition(vecSrc,entBase,head_hull,1.0); hc.pev.angles.y = m_pPlayer.pev.v_angle.y; hc.pev.velocity = g_Engine.v_forward * throw_amount; }