Raised This Month: $ Target: $400
 0% 

Help getting models frame


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 05-09-2009 , 19:00   Re: Help getting models frame
Reply With Quote #1

I'm not willing to give the whole code, only a small part of it, that would help you to help me.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION    "0.7.0"

#define ANIM_IDLE 1
#define ANIM_MOVE 3
#define ANIM_ATTACK 76

#define FRAME_ATTACK1 10
#define FRAME_ATTACK2 20

new g_tEnt

public plugin_init() {
    
register_plugin("123",VERSION,"shine")
    
    
register_clcmd("say /make","CmdMake")
    
register_clcmd("say /attack","CmdAtc")
    
    
RegisterHam(Ham_Think,"info_target","ZombieThink")
}

public 
CmdMake(id) {
    
    
//...
    
g_tEnt Ent
    
    set_pev
(Ent,pev_animtime,2.0)
    
    
SetAnim(Ent,ANIM_IDLE,-1)
    
//...
}

public 
CmdAtc(id) {
    
    
SetAnim(g_tEnt,ANIM_ATTACK,pev(g_tEnt,pev_sequence))
}

public 
ZombieThink(Zombie) {
    
    if(
Zombie == g_tEnt) {
        
        
//...
        
static Frame,Seq
        
        Frame 
pev(Zombie,pev_frame)
        
Seq pev(Zombie,pev_sequence)
        
        if(
Seq == ANIM_ATTACK && (Frame == FRAME_ATTACK1 || Frame == FRAME_ATTACK2)) {
            
            
log_amx("Frame")
        }
        
//...
    
}
}

SetAnim(Zombie,Anim,Seq) if(Seq != Animset_pev(Zombie,pev_sequence,Anim
shine771 is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 11:30   Re: Help getting models frame
Reply With Quote #2

I need this too.
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
Reply



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 01:27.


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