View Single Post
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-06-2011 , 08:43   Re: [TF2] RawketBawnce
Reply With Quote #8

Quote:
Originally Posted by Mecha the Slag View Post
why do you wait for the second touch trigger before you bounce the projectile?
You could just as well have done it in StartTouch yet you wait until the first Touch hook after that. Why is that?
Not a bloody clue .
Like I said, I wrote it in C++ way-back-when and I'm sure I had a reason for it then. I just ported my C++ version directly to Pawn.

EDIT: Oh, I think I remember.
When StartTouch is called, Touch is guaranteed to fire directly afterwards, even if you block the StartTouch call. If you just hook Touch, you get calls as it passes through triggers and the like.
This is only based on half-remembered memories though.
__________________

Last edited by asherkin; 03-06-2011 at 08:46.
asherkin is offline