Not really. What you do is make a BOOL to tell if you are capturing at
point. Then when a player presses the key bound to +capture check to see if
the player can capture this point and is in fact at a point. If the player
can then check if the BOOL is TRUE. If it is true then check the timer. If
the timer is 0 set the BOOL to FALSE. Now for the case that the player
presses the key bound to +capture and the BOOL is FALSE. If the check for
the point is true and the BOOL is FALSE then set the BOOL to TRUE and start
the timer.

For the -capture command just set the BOOL to FALSE and reset the counter.

-Ms



From: mike <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] objective system
Date: Thu, 30 Oct 2003 22:07:22 -0500

But every frame he needs to check whether he is within distance to use
the object capping key.
Jeffrey "botman" Broome wrote:

Tony "omega" Sergi wrote:

Why can't he use the use function? All kinds of mods use the use
function, hell flf uses the use key.

He's just neglecting to set FCAP_CONTINUOUS_USE on his entity, which I
told him about in irc 4 hours ago. He apparently didn't understand :P


It's just more CPU efficient to only call a function when something has
changed, not during every frame.  :)

--
Jeffrey "botman" Broome


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





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


_________________________________________________________________ Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet Service. Try it FREE for one month! http://join.msn.com/?page=dept/dialup


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



Reply via email to