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.
[04:00 pm]
Pr0nogo -- more when i finish streaming
[04:00 pm]
Pr0nogo -- initial impressions for the fog of war are, it would be great to be able to toggle between add/remove, instead of the current method
[03:57 pm]
Suicidal Insanity -- Somebody suggested multiselect in the tree view which would be a great idea, except win32 treeviews do not allow multiselect :(
[03:56 pm]
Suicidal Insanity -- Pr0nogo
Pr0nogo shouted: forgot about loc copy/cut/paste, seems to work fine but would be nice to be able to select more than one
Internally it supports up to 255 locations, but I never figured out a good way of allowing multiselect in the UI and still supporting clicking multiple times for overlapping locations
[03:54 pm]
Pr0nogo -- in the paste i used map revealers because duplicating fog of war was such a pain, now i'll use that and let you know how it works out
[03:54 pm]
Pr0nogo -- forgot about loc copy/cut/paste, seems to work fine but would be nice to be able to select more than one
[03:46 pm]
Suicidal Insanity -- And speaking of which, anybody tried location copy / cut / paste, and fog of war copy / cut / paste? Those are included but I suspect barely have been used
[03:45 pm]
Suicidal Insanity -- In my case, there are incomplete features that are included in the normal alphas, but are not included in the branch that contains the RC
[03:13 pm]
NudeRaider -- *there
[03:04 pm]
NudeRaider -- In software developing, when your software reached release candidate status what has to happen for it to become an actual release? Is that just a fancy name for a beta which will only get fixes but no additional features, or are the subtle differences?
Please log in to shout.


Members Online: Roy, ugakav, jjf28, Pr0nogo, C(a)HeK, Suicidal Insanity, SkyTechRTS, Vrael, Voyager7456, UEDCommander