View Single Post
1xAero
Member
Join Date: Feb 2018
Location: Sakha, Russia
Old 09-30-2022 , 05:25   Re: [HELP] Writing a module hooking CBasePlayer::SetAnimation
Reply With Quote #23

Quote:
Originally Posted by Arkshine View Post
Try that.

Unzip setanimation-files in /dlls (1.8.2) or /modules (1.8.3-dev)

In your plugin use the OnSetAnimation forward:

Code:
public OnSetAnimation(player, anim) {     // return PLUGIN_HANDLED to block the call }

EDIT: I guess I could add a native later.
BIG thanks, this is insane job. We can replace default CS animations now
The superiority of this - it can play any animation (fox example some broken animations with hand reference bound to GaitSequence)

Last edited by 1xAero; 09-30-2022 at 05:38.
1xAero is offline