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

Block Jump | Duck [Ham]


Post New Thread Reply   
 
Thread Tools Display Modes
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-31-2011 , 18:37   Re: Block Jump | Duck [Ham]
Reply With Quote #11

Quote:
Originally Posted by Xalus View Post
Bibu:
I made some tests & recherche
and I think

PHP Code:
drop_to_floor(id)
entity_set_float(idEV_FL_fuser20.0); 
Is good enough
That would seriously fail if you press jump while in air due to falling, you can block jump or duck by actually setting player's IN_JUMP and IN_DUCK, if the game thinks you're already pressing them, it won't jump or duck the player... and it would be better if you do that in FM_CmdStart instead of prethink, but orpheu would be MUCH better than that.
__________________
Hunter-Digital is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 01-23-2015 , 11:25   Re: Block Jump | Duck [Ham]
Reply With Quote #12

PHP Code:
public PM_Jump( )
{
    new 
iPlayer OrpheuGetStructMemberg_ppmove"player_index" ) + 1;
    
    if( 
is_user_aliveiPlayer ) )
    {
        
OrpheuSetStructMemberg_ppmove"oldbuttons"OrpheuGetStructMemberg_ppmove"oldbuttons" ) | IN_JUMP );
    }

Strange, but with this code player can do "little fake jumps":

How I can fix it and block jump correctly and fully?
Phant is offline
Send a message via ICQ to Phant
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 01-28-2015 , 07:58   Re: Block Jump | Duck [Ham]
Reply With Quote #13

Quote:
Originally Posted by Phant View Post
block jump correctly and fully?
That is even possible?
Phant is offline
Send a message via ICQ to Phant
Reply



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 20:47.


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