How to catch that player jump into the water.
Hi, :)
I am working one project, HD and very real cs zombie server. What i need for now is that how to catch player jump into water. I want to make this when player jump into the water then server play water splash sound :) thanking in advance. |
Re: How to catch that player jump into the water.
It depends whether you want the splash sound to come only in deep water or also from a little puddle. Just notice that there is not a straight forward for this, you how probably have to check some flags in a think forward. If I remember right FL_INWATER is set even if you do not swim but just stand in water.
|
Re: How to catch that player jump into the water.
|
Re: How to catch that player jump into the water.
Quote:
I want one call if player go to the water. Now i understands there are no sucks forwad . I think i need to make this with bool, like when player jump water then water code if bool1 = true bool2 true if bool2 = true bool1 = false bool2 = false and my code here. how i reset bool, how i catch when player is not in the water :) ? Thanks anyway. :) |
Re: How to catch that player jump into the water.
That is exactly what you want, you just do not know how to use it. In a player getting water is two subsequent occasions, the first one is that player is not in water and the second is that he is in water.
|
Re: How to catch that player jump into the water.
Quote:
forgot. So i do it with client_prethink or what? :) |
Re: How to catch that player jump into the water.
Quote:
|
Re: How to catch that player jump into the water.
Quote:
|
Re: How to catch that player jump into the water.
You can probably avoid prethink, like hooking jump and touch.
|
Re: How to catch that player jump into the water.
Even though he used the expression jump to water, he does not mean that the player actually has to jump. I am sure the splash sound should come if you just fall from a roof to water.
|
| All times are GMT -4. The time now is 00:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.