Yes, tracelines are probably the way to go.  Simply loop through the player
slots and for each valid player, do a traceline from the grenade to the
player's eye position (or whatever other position) and if it doesn't hit
anything, you can do whatever the grenade is supposed to do.

--- "Yacketta, Ronald" <[EMAIL PROTECTED]> wrote:
> Have a quick question, just coded a new grenade type. I would like only
> the players
> In the FOV of the grenade to be affected by it, that is players behind a
> wall or obscured by
> Something are not affected.
> 
> I have looked through items.cpp and have not found a decent example (or
> one at all)
> Would I need to add some traceline code to the MyTouch? Would actually
> like
> To trace from the grenade out to find players and affect then, instead
> of from
> The player to the grenade.
> 
> Regards,
> Ron
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> 


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to