Ticket #1686: update-attack-prefix.patch
File update-attack-prefix.patch, 1.4 KB (added by , 12 years ago) |
---|
-
binaries/data/tools/atlas/lists.xml
35 35 <item>idle </item> 36 36 <item>walk </item> 37 37 <item>run </item> 38 <item>melee </item> 38 <item>attack_melee </item> 39 <item>attack_ranged </item> 40 <item>attack_charge </item> 41 <item>attack_slaughter</item> 39 42 <item>death </item> 40 43 <item>build </item> 41 44 <item>heal </item> -
binaries/data/mods/public/simulation/components/UnitAI.js
905 905 prepare = Math.max(prepare, repeatLeft); 906 906 } 907 907 908 this.SelectAnimation("melee", false, 1.0, "attack"); 908 // add prefix + no Capital First Letter for this.attackType 909 var attackName = "attack_" + this.attackType.toLowerCase(); 910 this.SelectAnimation(attackName, false, 1.0, "attack"); 909 911 this.SetAnimationSync(prepare, this.attackTimers.repeat); 910 912 this.StartTimer(prepare, this.attackTimers.repeat); 911 913 // TODO: we should probably only bother syncing projectile attacks, not melee