View Single Post
stupok
Veteran Member
Join Date: Feb 2006
Old 07-01-2009 , 15:49   Re: Detecting when shield is hit (not just aiming at it)
Reply With Quote #17

@joaquimandrade:

arkshine is pointing out an oddity in the code you posted in this thread.

I'll try to explain...

You're hooking TraceAttack, so it should be called when a player attacks with a weapon that makes tracelines. However, you said this:

Quote:
when you hit a shield a traceattack doesn't occur and the shield doesn't even exist as an entity
I think arkshine did not notice that you're creating an additional traceline, so he was confused, thinking that the function would never be called.

For me, two things are very odd:

1. Why does your additional traceline detect the shield?
2. Why isn't a traceattack triggered when the client shoots a shield?

It's just strange o_O
__________________
stupok is offline