I added back the Ram attack to the Ultralisks, because it looked nifty when they rammed their heads into buildings.
I only added the attack, without modifying anything else. When I tested them, they would attack buildings with the Ram attack roughly 1/5 of the time, using their regular Kaiser Blades every other time. This was unintended, but I decided it looked great because it makes their attacks against buildings seem more varied.
The only problem is that when attacking a building, an Ultralisk would not do its ram animation for the first time it would use the Ram attack on that building. The second and subsequent times it used the Ram attack on that same building, it would animate as usual. And then when that Uktralisk attacks a new building, the same would happen - wouldn't animate for its first ram attack, but would for any subsequent ram attacks.
I don't like this. Is there a way I can fix this? I have no idea why this occurs. I may not even end up allowing Ultralisks to use both attacks on buildings, but it would just be nice if I knew how to fix it.
One more thing: would be there be a way to change how frequently an Ultralisk uses its Ram attack against buildings? I don't even know why it chooses to use the Ram attack as little as it does, but there must be something that's causing it to use Kaiser Blades more frequently.
For attack use check the Weapons. The "Shared Cooldown" flag often interferes with having multiple weapons, and I have no idea how having multiple eligible weapons works out if you don't allow a full multitarget: The blade/head swing is "channeled" via delays on the weapon or Persistent effects, and while one weapon is firing the other will either have to wait or misfires.
As for the animation bug, I assume the Ultralisk tries to use both weapons simultaneously, and while one of the attacks may fail (you have checked it's not actually firing both damage effects, right?) the standard animation trigger is Weapon.AttackStart, so it may be trying to play two animations at the same time even if the actual effect fails.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I added back the Ram attack to the Ultralisks, because it looked nifty when they rammed their heads into buildings. I only added the attack, without modifying anything else. When I tested them, they would attack buildings with the Ram attack roughly 1/5 of the time, using their regular Kaiser Blades every other time. This was unintended, but I decided it looked great because it makes their attacks against buildings seem more varied.
The only problem is that when attacking a building, an Ultralisk would not do its ram animation for the first time it would use the Ram attack on that building. The second and subsequent times it used the Ram attack on that same building, it would animate as usual. And then when that Uktralisk attacks a new building, the same would happen - wouldn't animate for its first ram attack, but would for any subsequent ram attacks. I don't like this. Is there a way I can fix this? I have no idea why this occurs. I may not even end up allowing Ultralisks to use both attacks on buildings, but it would just be nice if I knew how to fix it.
One more thing: would be there be a way to change how frequently an Ultralisk uses its Ram attack against buildings? I don't even know why it chooses to use the Ram attack as little as it does, but there must be something that's causing it to use Kaiser Blades more frequently.
Thanks in advance for any help.
check the unit actor. usually there is an even linked to a specific weapon to play an certain attack animation.
as for why, doesn't the regular attack not target structures? so it only has the option to use the ram? not looking at the editor atm.
For attack use check the Weapons. The "Shared Cooldown" flag often interferes with having multiple weapons, and I have no idea how having multiple eligible weapons works out if you don't allow a full multitarget: The blade/head swing is "channeled" via delays on the weapon or Persistent effects, and while one weapon is firing the other will either have to wait or misfires.
As for the animation bug, I assume the Ultralisk tries to use both weapons simultaneously, and while one of the attacks may fail (you have checked it's not actually firing both damage effects, right?) the standard animation trigger is Weapon.AttackStart, so it may be trying to play two animations at the same time even if the actual effect fails.