Raised This Month: $12 Target: $400
 3% 

Block jump in water


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mashinata619
Member
Join Date: Aug 2010
Old 06-30-2019 , 14:10   Block jump in water
Reply With Quote #1

I have a problem and I can not find a solution.
I want to block the action of jumping when a player is in the water. I've tried with Ham_Player_Jump and Ham_Player_Duck and there's no way.

To know if the player is in the water I use pev (id, pev_waterlevel)
mashinata619 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-30-2019 , 15:16   Re: Block jump in water
Reply With Quote #2

Add
PHP Code:
if( pevidpev_waterlevel ) ) 
to this
https://forums.alliedmods.net/showpo...9&postcount=16
__________________

Last edited by edon1337; 06-30-2019 at 15:17.
edon1337 is offline
mashinata619
Member
Join Date: Aug 2010
Old 07-01-2019 , 06:45   Re: Block jump in water
Reply With Quote #3

Not work...
I need that the players do not gain speed in the water doing bunny hop
mashinata619 is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-02-2019 , 01:26   Re: Block jump in water
Reply With Quote #4

It is only possible using orpheu

Check: https://forums.alliedmods.net/showpo...7&postcount=10
wilianmaique is offline
Send a message via Skype™ to wilianmaique
thEsp
BANNED
Join Date: Aug 2017
Old 07-02-2019 , 03:51   Re: Block jump in water
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
PHP Code:
if( pevidpev_waterlevel ) ) 

Quote:
/**
* 0 - Not in water
* 1 - Waiding
* 2 - Mostly submerged
* 3 - Completely submerged
*
* Type: integer
*/
pev_waterlevel
Code:
#define WATER_CHECK 1 if(pev(id,pev_waterlevel) == WATER_CHECK)

Last edited by thEsp; 07-02-2019 at 04:19. Reason: mistake
thEsp is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-02-2019 , 04:16   Re: Block jump in water
Reply With Quote #6

Quote:
Originally Posted by thEsp View Post


Code:
if(pev(id,pev_waterlevel) != 0)
What is your point?

if(pev(id,pev_waterlevel) != 0) and if(pev(id,pev_waterlevel)) would do the same thing.
__________________
edon1337 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 07-02-2019 , 04:18   Re: Block jump in water
Reply With Quote #7

I did a mistake but that checks when can't players jump (Waiding, submerged etc).
thEsp is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 07-02-2019 , 07:09   Re: Block jump in water
Reply With Quote #8

Quote:
Originally Posted by mashinata619 View Post
Not work...
I need that the players do not gain speed in the water doing bunny hop
Which bunny hop version do you use?
Post link here.
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-02-2019 , 07:18   Re: Block jump in water
Reply With Quote #9

Quote:
Originally Posted by Krtola View Post
Which bunny hop version do you use?
Post link here.
You don't need a bhop plugin inorder to do water bhop jumps

OP "Also just do what edon suggested"
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-02-2019 at 07:19.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
wilianmaique
BANNED
Join Date: Nov 2016
Old 07-02-2019 , 21:28   Re: Block jump in water
Reply With Quote #10

he wants to block the bunny hop in the water.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
Reply


Thread Tools
Display Modes

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 18:38.


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