Skip to content

Commit

Permalink
Added 'Armor Upgrade (+50)' Ability for Rusher and 'weapon_zclaws' Fi…
Browse files Browse the repository at this point in the history
…xes.
  • Loading branch information
GHmods committed Jan 17, 2023
1 parent 61632c1 commit 6b41e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/maps/hlze/classes/zombie_classes.as
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion scripts/maps/hlze/weapons/weapon_zombie.as
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6b41e7c

Please sign in to comment.