mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 22:51:36 +00:00
SERVER Add fix for crosshairs to detect limbs
This commit is contained in:
parent
a7ff74e411
commit
ff355b6439
3 changed files with 19 additions and 4 deletions
|
@ -250,21 +250,21 @@ void(entity who) makeCrawler =
|
|||
setmodel(who.head,"models/ai/zhc^.mdl");
|
||||
#ifndef PC
|
||||
updateLimb (who, 0, world);
|
||||
#endif
|
||||
#endif // PC
|
||||
}
|
||||
if(who.larm.deadflag)
|
||||
{
|
||||
setmodel(who.larm,"models/ai/zalc(.mdl");
|
||||
#ifndef PC
|
||||
updateLimb (who, 1, world);
|
||||
#endif
|
||||
#endif // PC
|
||||
}
|
||||
if(who.rarm.deadflag)
|
||||
{
|
||||
setmodel(who.rarm,"models/ai/zarc(.mdl");
|
||||
#ifndef PC
|
||||
updateLimb (who, 2, world);
|
||||
#endif
|
||||
#endif // PC
|
||||
}
|
||||
who.crawling = 1;
|
||||
|
||||
|
|
|
@ -435,7 +435,15 @@ void() PlayerPostThink =
|
|||
makevectors (self.v_angle);
|
||||
source = self.origin + self.view_ofs;
|
||||
|
||||
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_LIMBS | HITBOX_DIM_ZOMBIES;
|
||||
#endif // PC
|
||||
traceline (source, source + v_forward*800*1.2, 0, self);
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_ZOMBIES;
|
||||
#endif // PC
|
||||
|
||||
|
||||
// use .head here to avoid expanding ent struct
|
||||
self.head = trace_ent;
|
||||
|
|
|
@ -1168,7 +1168,14 @@ void() W_FireTesla =
|
|||
makevectors (self.v_angle);
|
||||
source = self.origin + self.view_ofs;
|
||||
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_LIMBS | HITBOX_DIM_ZOMBIES;
|
||||
#endif // PC
|
||||
FireTrace(1, 0, 0, 0);
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_ZOMBIES;
|
||||
#endif // PC
|
||||
|
||||
|
||||
#ifdef PC
|
||||
te_lightning2(self, source, trace_endpos);
|
||||
|
@ -1452,7 +1459,7 @@ void(float side) W_Fire =
|
|||
if (Util_WeaponFiresTraceshot(self.weapon)) {
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_LIMBS | HITBOX_DIM_ZOMBIES;
|
||||
#endif // PC
|
||||
#endif
|
||||
FireTrace(shotcount, spread, damage, side);
|
||||
#ifdef PC
|
||||
self.dimension_hit = HITBOX_DIM_ZOMBIES;
|
||||
|
|
Loading…
Reference in a new issue