No jumping & attacking while freezed
Hello friends,
I need a plugin that block everything while freezed. Not jump, not duck, not attack. Not do anything. I tried to block 'em with " RegisterHookChain(RG_CBasePlayer_Jump, "Player_Jump"); " But I couldn't because of I don't know very well about reapi. I tried with hamsandwich. Again I couldn't. Thanks for helping |
Re: No jumping & attacking while freezed
set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)
set_entvar(id, var_flags, get_entvar(id, var_flags) | FL_FROZEN) |
Re: No jumping & attacking while freezed
I tried it.
PHP Code:
I am trying it with bots. It can not block them because of they are bot, it can be? |
Re: No jumping & attacking while freezed
If you're trying with podbots, it should work.
|
Re: No jumping & attacking while freezed
They are not podbots. They are more advanced than podbots.
|
Re: No jumping & attacking while freezed
set_entvar? Why just not use set_pev/entity_set_int?
|
Re: No jumping & attacking while freezed
Quote:
For attacking, just set m_flNextPrimaryAttack. For jumping, you can't properly block jump, it will still play a bit of the animation. |
Re: No jumping & attacking while freezed
I think setting player's velocity to 0 in prethink will solve the player's jump issue..
|
Re: No jumping & attacking while freezed
Quote:
|
| All times are GMT -4. The time now is 09:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.