From f0ced77928827cde78782ce6c96ca7cac9e0cf10 Mon Sep 17 00:00:00 2001 From: cypress Date: Thu, 16 May 2024 20:37:01 -0700 Subject: [PATCH] SERVER: Fix Heads always gibbing without Insta-Kill --- source/server/weapons/weapon_core.qc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index d23cc37..819ed64 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -724,12 +724,23 @@ void Parse_Damage () = // DO NOT TOUCH body_ent.rarm.hitamount = 0; } - if (instakill_finished) { + if (instakill_finished > time) { if(body_ent.head.deadflag) { + makevectors(body_ent.head.owner.angles); + where = body_ent.origin + (body_ent.head.view_ofs_x * v_right) + (body_ent.head.view_ofs_y * v_forward) + (body_ent.head.view_ofs_z * v_up); + spawn_gibs(where); + body_ent.head.deadflag = false; body_ent.head.solid = SOLID_NOT; setmodel(body_ent.head,""); body_ent.head.frame = 0; + +#ifndef FTE + + updateLimb (body_ent.head.owner, 0, world); + +#endif // FTE + } }