Sorry for starting a new thread.  Ye olde e-mail client is behaving
erratically tonight.  Reply follows.

> > I have come across a very strange bug in my mod.  If a Player is
> > ducking, and you try to shoot him in the head or neck, the
> > bullet/trace simply goes right through, with no hit registered.
> > Anywhere else in the body the trace works correctly, but
> not the head
> > or neck.  I checked the hitboxes using r_drawentities 4,
> and there is
> > a head/neck hitbox, so that is not the problem.  Any ideas
> as to what
> > could be causing this?

The head of the model extends beyond the bounding box when ducked.  You
can see this if you uncomment the call to PM_ShowClipbox in PM_PlayerMove.
If my understanding of the engine's collision detection is correct, the
hitboxes on the model will never get checked if they are outside the
bounding box.  I *think* using SetObjectCollisionBox to increase the size
of the box when ducked might solve the problem.

>
> Did you apply the hitbox patch from Robin Walker's post (from
> back in December of last year)?...
>

I don't think that will help.

> BTW, did this fix get merged into SDK 2.3?  I never downloaded 2.3 so I
couldn't check myself.

No, it didn't.


Jim



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to