[HL] Set Animation API
version 0.1
by KORD_12.7
Supported mods:
Half-Life (valve) only
Needed modules:
Fakemeta
Information:
[RU]: Информация на русском здесь
This plugin provides a native with function ported from HLSDK:
(NOTE: This is just a little experiment with player animations, method used here is extremely inefficient)
Code:
void CBasePlayer::SetAnimation( PLAYER_ANIM playerAnim )
hl_set_anim.inc:
PHP Code:
enum PLAYER_ANIM
{
PLAYER_IDLE,
PLAYER_WALK,
PLAYER_JUMP,
PLAYER_SUPERJUMP,
PLAYER_DIE,
PLAYER_ATTACK1
};
/* Set the activity based on an event or current state */
native hl_user_set_animation(const iPlayer, const iPlayerAnim);
Credits:
HLSDK,
PomanoB
Changelog:
v0.1 - Initial release.