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?