[HL] Set Animation API

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

[HL] Set Animation API

Post by Archive-Poster »

[HL] Set Animation API
version 0.1

Supported mods:
Half-Life (valve) only

Needed modules:
Fakemeta

Information:
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: Select all

void CBasePlayer::SetAnimation( PLAYER_ANIM playerAnim )
hl_set_anim.inc:

Code: Select all

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); 
Attachments
HL_SetAnimationAPI.sma.zip
(5.43 KiB) Downloaded 7 times
hl_set_anim.inc.zip
(538 Bytes) Downloaded 5 times

Who is online

Users browsing this forum: No registered users and 1 guest