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

custom zombie attack animation deals no damage

broken avatar :(
Created 11 years ago
by whippytrout
0 Members and 1 Guest are viewing this topic.
1,870 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
Hey guys I ported a zombie attack animation from BO II and it works/looks fine but I just noticed today that the zombie doesn't deal any damage to the player. The zombie swings but no damage is dealt.
Here is how I went about adding the animation, maybe someone can tell me what I did wrong:

1. I converted my anim in asset manager unchecking looping, and checking use bones, then selected relative from the dropdown box. I even tried delta but neither made a difference.

2. I added some code in animscripts/melee.gsc.
Code Snippet
Plaintext
pick_zombie_melee_anim( zombie_guy )
{
melee_anim = undefined;
if ( zombie_guy.has_legs  && !zombie_guy.boss )  // boss is the zombie with the custom attack animation
{
switch(zombie_guy.zombie_move_speed)
{

case "walk":
anims = array_combine(level._zombie_melee[zombie_guy.animname],level._zombie_walk_melee[zombie_guy.animname]);
melee_anim = random(anims);
break;

case "run":
case "sprint":
anims = array_combine(level._zombie_melee[zombie_guy.animname],level._zombie_run_melee[zombie_guy.animname]);
melee_anim = random(anims);
break;
}
}
else if( isdefined(zombie_guy.boss) && zombie_guy.boss )
{
melee_anim = level._brutus_attack["brutus_attack"];       // my custom zombie attack animation
}
else if(zombie_guy.a.gib_ref == "no_legs")
{
// if zombie have no legs whatsoever.
melee_anim = random(level._zombie_stumpy_melee[zombie_guy.animname]);

}
else
{
  melee_anim = random(level._zombie_melee_crawl[zombie_guy.animname]);
}

return melee_anim;
}

4. I added the anim in my zombiemode.gsc
Code Snippet
Plaintext
level._brutus_attack["brutus_attack"] 				= %brutus_attack;

Like I said it looks fine he just doesn't deal any damage. Please help me out someone.  :)

Thanks, WhippyTrout
Marked as best answer by whippytrout 11 years ago
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
add a notetrack "fire" at the frame('s) he's hitting you.
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
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Mapper Has released one or more maps to the UGX-Mods community.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Thank you so much i downloaded Aidens tool for maya and added the notetracks in. Works like a charm. Your the best!  ;D ;D  :nyan:

 
Loading ...