Raised This Month: $ Target: $400
 0% 

Changing/canceling JUMP event in NS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blackhawk
Member
Join Date: Apr 2005
Old 04-09-2005 , 16:28   Changing/canceling JUMP event in NS
Reply With Quote #1

I'm looking for a way to change the Jump behaviour in NS.
For the moment, i need to check if someones want to jump and 'disable' it if neccesary on a gived player. IE this jump he tryed should not be executed. But the next maybe has to work....

I try'd


Code:
public forward_playerprethink(id) {
    entity_set_int(id, EV_INT_button, entity_get_int(id, EV_INT_button) & ~(IN_JUMP))
}

public plugin_init() {
        register_forward(FM_PlayerPreThink, "forward_playerprethink")
}
give from an example seen here in the forums, but if didn't work. Any ideas how i can change the jump event?
Blackhawk 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 10:02.


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