Staredit Network > Forums > Modding Assistance > Topic: (help) adding splash damage
(help) adding splash damage
Dec 3 2018, 11:52 am
By: Lagi  

Dec 3 2018, 11:52 am Lagi Post #1



would like to give Ultralisk splash damage.

I set splash(enemy)+radius in weapon.dat. But its not working.

what else is need?



None.

Dec 3 2018, 5:09 pm Voyager7456 Post #2

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:

Code
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




all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Dec 5 2018, 12:11 pm Lagi Post #3



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.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:57 am]
Suicidal Insanity -- Pretty sure if you look at the trigger struct definition in the EUD talk you will see the real count :P
[03:53 am]
jjf28 -- so at least 22 bytes are definitely owners**
[03:17 am]
jjf28 -- rest of trigger owners are essentially 3rd party inventions
[03:16 am]
jjf28 -- p1-8, force1-4, all players
[03:16 am]
jjf28 -- o u rite
[03:07 am]
O)FaRTy1billion[MM] -- triggers can be owned by more than just the first 8 though
[02:41 am]
jjf28 -- in the list of groups I just call it "Id27" https://puu.sh/DV0sl/9ffe6a8612.png
[02:39 am]
jjf28 -- Suicidal Insanity
Suicidal Insanity shouted: I think its 27 and padding
Wormer
Wormer shouted: or the guide (http://www.starcraftai.com/wiki/CHK_Format#.22UNIT.22_-_Placed_Units) is wrong there and it should be u8[27] ?
you may as well say it's 8bytes + padding
[02:38 am]
jjf28 -- these flags? https://puu.sh/DV0q6/2adbd2e63e.png
[2019-7-19. : 9:32 pm]
O)FaRTy1billion[MM] -- iirc the last byte in the TRIG is for more flags or something
Please log in to shout.


Members Online: Roy, Ahli, CecilSunkure, Dem0n, Suicidal Insanity