would like to give Ultralisk splash damage.
I set splash(enemy)+radius in weapon.dat. But its not working.
what else is need?
None.
Responsible for my own happiness? I can't even be responsible for my own breakfast
I believe the "attackmelee" opcode used in the Ultralisk's attack animation does damage without actually spawning the bullet, so it ignores secondary effects like the splash damage.
Instead, edit the Ultralisk's iscript so it works in the same way as the Firebat:
UltraliskGndAttkRpt:
wait 1
nobrkcodestart
playsndrand 3 891 892 893 # Zerg\Ultra\zulAtt00.WAV | Zerg\Ultra\zulAtt01.WAV | Zerg\Ultra\zulAtt02.WAV
wait 2
playfram 0xdd # Frame set 13
wait 2
playfram 0xcc # Frame set 12
playsndbtwn 894 895
attkshiftproj 20
wait 2
playfram 0xbb # Frame set 11
wait 2
playfram 0xcc # Frame set 12
wait 2
playfram 0xdd # Frame set 13
wait 2
playfram 0xee # Frame set 14
wait 2
nobrkcodeend
gotorepeatattk
goto UltraliskGndAttkToIdle
You may need to adjust the distance on attkshiftproj to your liking. Then, change the graphic specified for Kaiser Blades in weapons.dat from "Scourge" to "White Circle"
For anyone interested in why we made these changes:
Explanation
Why are we using attkshiftproj instead of the normal attack opcode? Because only weapons with the behavior "Appears on Attacker" will hit underneath Dark Swarm. But we want to center the splash radius around the Ultralisk's attack target (where the pointy bits are), not the Ultralisk itself, so we use attkshiftproj to shift the projectile further out. attackmelee doesn't actually spawn the bullet, so Kaiser Blades using the Scourge graphic was fine then, but now that we're actually spawning a bullet with attkshiftproj, we'll need to use a proper bullet graphic to avoid undesired behavior. White Circle (also used by the Flamethrower) is the logical choice because it is invisible.
thanks
it works.
I was trying to mess with the
attkshiftproj 20 to achive the long reach of Ultralisk, but even if I give him 2 range (weapon dat] and set the value to 40, he still need to touch the enemy to start eating.
None.