Raised This Month: $7 Target: $400
 1% 

entity 'idle' animation not playing.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 11-09-2013 , 20:31   entity 'idle' animation not playing.
Reply With Quote #1

Hello, I am adding new entities into my game, and have seen that dmc models have rotation built into their models! This is absolutely amazing!! Unfortunately.. I havent been able to get the model to play its animation, can someone tell me what im doing wrong please?

PHP Code:
        iEnt = -1;
        while( (
iEnt find_ent_by_class(iEnt"weapon_supershotgun")) !=0)
        {
            
//
            
entity_set_model(iEnt"models/dmc/g_shot2.mdl");
            
entity_set_size(iEntFloat:{-32.0, -16.024.0}, Float:{32.016.040.0})
            
entity_set_int(iEntEV_INT_solidSOLID_TRIGGER);
            
//animation stuff
            
entity_set_int(iEntEV_INT_sequence1);
            
entity_set_float(iEntEV_FL_frame0.0);
            
entity_set_float(iEntEV_FL_animtimehalflife_time());
            
entity_set_float(iEntEV_FL_framerate1.0);
        } 
Please note: to play with these models you will need dmc/models/g_shot2.mdl AND dmc/models/g_shot2T.mdl, if you dont have the 2nd model you will recieve an error about the missing model when trying to join a team (on player spawn)
__________________
+|- KARMA Respectively

HLM 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 00:32.


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