UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How do I fix AI idle animation?

broken avatar :(
Created 11 years ago
by whippytrout
0 Members and 1 Guest are viewing this topic.
1,376 views
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 3 years ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Mapper
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
I followed Yaph1l's tutorial here: http://www.zombiemodding.com/index.php?topic=14080.0
but it doesnt seem to work for my AI.  :( Please help, I'm out of ideas.

Here is a video of what my AI are doing. It seems like they work then they stop mid round change. I dont know why the video is not showing up right.
https://youtu.be/G0N41CPgcVI

I added this in my mapname.gsc

Code Snippet
Plaintext
maps\_zombiemode::main();
level thread phil_ally_guys_idle_fix();

and this at the bottom of my mapname.gsc

Code Snippet
Plaintext
#using_animtree("generic_human");
phil_ally_guys_idle_fix()
{
    anim.idleAnimArray      ["stand_hmg"] = [];
   anim.idleAnimWeights   ["stand_hmg"] = [];
   anim.idleAnimArray      ["stand_hmg"][0][0]    = %casual_stand_idle;
   anim.idleAnimWeights   ["stand_hmg"][0][0]    = 10;




   anim.idleAnimArray      ["crouch_hmg"] = [];
   anim.idleAnimWeights   ["crouch_hmg"] = [];   
   anim.idleAnimArray      ["crouch_hmg"][0][0]    = %casual_crouch_idle;
   anim.idleAnimWeights   ["crouch_hmg"][0][0]    = 10;
   
    anim.idleAnimTransition["stand_hmg"]["in"] = anim.idleAnimTransition["stand"]["in"];
    anim.idleAnimTransition["crouch_hmg"]["in"] = anim.idleAnimTransition["crouch"]["in"];
   
    allies = GetEntArray("fix_my_idle", "script_noteworthy");
    for(i = 0; i < allies.size; i++)
    {
        allies.heavy_machine_gunner = true;
    }
}

and my for my AI I rightclicked in radiant and selected my actor and gave hime this KVP,
Code Snippet
Plaintext
script_noteworthy: fix_my_idle
count: 1
script_forcespawn: 1
spawnflags: 0
Last Edit: August 14, 2015, 08:30:29 pm by whippytrout

 
Loading ...