Raised This Month: $ Target: $400
 0% 

How to set P_model Sequences?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 11-29-2014 , 05:52   Re: How to set P_model Sequences?
Reply With Quote #1

Which part of "there's no proper way to find p_model's entity" didn't you understand? What you are doing is getting weapon entity, not p_model entity.
In HamF_Item_Deploy_Post do something like:
PHP Code:
        set_pev(idpev_weaponmodel2""// Hide your p_model
        
if (!pev_valid(g_ent_weaponmodel[id]))
    {
        
g_ent_weaponmodel[id] = engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target")) // Create your p_model entity
        
if (!pev_valid(g_ent_weaponmodel[id])) return;
        
        
set_pev(g_ent_weaponmodel[id], pev_classname"weapon_model")
        
set_pev(g_ent_weaponmodel[id], pev_movetypeMOVETYPE_FOLLOW)
        
set_pev(g_ent_weaponmodel[id], pev_aimentid)
        
set_pev(g_ent_weaponmodel[id], pev_ownerid)
    }
    
engfunc(EngFunc_SetModelg_ent_weaponmodel[id], ak47red_P_MODEL
Then you can set sequence, sub model or whatever you want.

Last edited by RateX; 11-29-2014 at 05:52.
RateX is offline
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 17:33.


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