Raised This Month: $ Target: $400
 0% 

Someone swimming in water?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 04-15-2007 , 12:42   Re: Someone swimming in water?
Reply With Quote #4

Quote:
i need to check if client even touches water
So not only swimming?

This will detect the cases when a player is also just stay in water (not only swimming).

With engine module: if (entity_get_int(player, EV_INT_waterlevel))
With fakemeta module: if (pev(player, pev_waterlevel))

If you want to know whether he is exactly swimming you have to perform exactly the same check but for flSwimTime pev value.

Last edited by VEN; 04-15-2007 at 12:55.
VEN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode