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.
[07:15 am]
IlyaSnopchenko -- Or was it a switch :)
[06:59 am]
IlyaSnopchenko -- But I need to do more work on the system to make it look better (hard to explain without showing the map and explaining precisely what i added them for)
[06:57 am]
IlyaSnopchenko -- I've added set death hypertriggers
[2019-8-25. : 4:02 am]
Pr0nogo -- single frame hypers with a simple line of code without using EUDs imo
[2019-8-24. : 11:01 pm]
Suicidal Insanity -- They never go to bed on time
[2019-8-24. : 9:49 pm]
NudeRaider -- But why would you even want to do that? Hypers have almost no downsides.
[2019-8-24. : 9:49 pm]
NudeRaider -- IlyaSnopchenko
IlyaSnopchenko shouted: A stupid question: can I run hypertriggers for just one phase in the map, not all of it (I know I can... just wanting to know if there are any caveats)
you can, but you'd need to run switched hypers. Classic hypers can't be stopped afaik.
[2019-8-24. : 4:42 pm]
TF- -- It should be fine
[2019-8-24. : 3:41 pm]
IlyaSnopchenko -- Is that a yea or nay? :)))
[2019-8-24. : 3:36 pm]
TF- -- 🤙🏾
Please log in to shout.


Members Online: Roy, BeatMeistro