- attached 2018-12-30_17h18_54.jpg
Creatures now have combat animations too
Issue #136
closed
Creatures dont use standard anims from the combat_data database they have special cases as shown in the link
Comments (9)
-
reporter -
reporter - marked as major
-
reporter string getCreatureAnimationName(string playbackName) { obj_id self = getSelf(); string animName = ""; int niche = ai_lib.aiGetNiche(self); //if (niche == NICHE_DROID || niche == NICHE_VEHICLE) if (niche == NICHE_VEHICLE) { animName ="droid_attack"; } else { if(playbackName.endsWith("ranged")) { animName = "creature_attack_ranged"; } else if(playbackName.endsWith("melee")) { // Default Melee attacks have a chance to trigger one of the following attacks: // creature_attack_heavy // creature_attack_light // creature_attack_special_1_heavy // creature_attack_special_1_light if(rand(1,2) == 1) animName = "creature_attack"; else animName = "creature_attack_special_1"; if(rand(1,2) == 1) animName += "_light"; else animName += "_heavy"; return animName; } else animName = "creature_attack_special_"+rand(1,2); } animName += "_medium"; return animName; }
-
They now have melee attacks but not ranged ones.
-
- changed status to resolved
A fix for melee animations was implemented.
-
reporter - changed milestone to 2019 - AUG
-
assigned issue to
-
reporter - changed status to closed
-
reporter - removed milestone
Removing milestone: 2019 - AUG (automated comment)
-
reporter - changed milestone to AI (basic)
- changed version to 0.4.0
- Log in to comment