View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 04-21-2015 , 23:47   Re: [HELP] Writing a module hooking CBasePlayer::SetAnimation
Reply With Quote #16

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.
Wow. Arkshine, I have a question about that code. Can be that code be modified for hooking another functions? I haven't got any example of how to hook an specific function of the engine providing his sig with a module..
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline