Raised This Month: $12 Target: $400
 3% 

[HL] Set Animation API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 12-22-2011 , 01:32   [HL] Set Animation API
Reply With Quote #1

[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.
Attached Files
File Type: sma Get Plugin or Get Source (HL_SetAnimationAPI.sma - 1347 views - 18.8 KB)
File Type: inc hl_set_anim.inc (527 Bytes, 335 views)
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community

Last edited by KORD_12.7; 05-11-2012 at 00:31.
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 12-22-2011 , 01:46   Re: [HL] Set Animation API
Reply With Quote #2

Good Job
__________________
kiki33hun is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-22-2011 , 05:57   Re: [HL] Set Animation API
Reply With Quote #3

You should use orpheu and calling/hooking directly the needed functions, because what you do is extremely inefficient.
__________________

Last edited by Arkshine; 12-22-2011 at 08:01.
Arkshine is offline
allame61
Member
Join Date: Feb 2017
Location: Turkey
Old 12-20-2019 , 02:34   Re: [HL] Set Animation API
Reply With Quote #4

does it work on cs 1.6 ? , and also i using different model which is not gordon
allame61 is offline
thEsp
BANNED
Join Date: Aug 2017
Old 12-21-2019 , 15:01   Re: [HL] Set Animation API
Reply With Quote #5

As raw, no.

Last edited by thEsp; 12-21-2019 at 15:03.
thEsp is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode