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

[CS:GO] Animating a player model entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 10-04-2016 , 12:33   Re: [CS:GO] Animating a player model entity
Reply With Quote #1

Quote:
Originally Posted by Bakuryu View Post
Here is the code that worked for me. Mind you like I said it will only do one animation and not a combination of them.

Code:
    int EntIndex = CreateEntityByName("prop_dynamic_override");
    DispatchKeyValue(EntIndex, "model", "models/player/custom_player/legacy/ctm_idf.mdl");
    ActivateEntity(EntIndex);
    DispatchSpawn(EntIndex);
    SetVariantString("move_knife_r");
    AcceptEntityInput(EntIndex, "SetAnimation");
    AcceptEntityInput(EntIndex, "Enable");
Anyone know if its possible do add more than one sequence?
isn't that the solution i gave you which you said didn't work?

https://forums.alliedmods.net/showpo...56&postcount=3

back to the topic.... you can use different animation ongameframe i guess or a timer to change its animation?
__________________

Last edited by 8guawong; 10-04-2016 at 12:34.
8guawong is offline
Bakuryu
Member
Join Date: Dec 2011
Old 10-21-2016 , 15:39   Re: [CS:GO] Animating a player model entity
Reply With Quote #2

Quote:
Originally Posted by 8guawong View Post
isn't that the solution i gave you which you said didn't work?

https://forums.alliedmods.net/showpo...56&postcount=3

back to the topic.... you can use different animation ongameframe i guess or a timer to change its animation?
My code activates the entity before its dispatched. Not sure why that made a difference but it did.

Second how do I use more than one animation on the prop? They have to be simultaneous because that is how the animations for the models work apparently. So I need a combination of "move_knife_r" and move_knife_aim_run which creates a running knife animation, why there isn't just a running knife animation I am not sure.
Bakuryu 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 14:32.


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