Hello folks!
For a workshop mode I’ve been working on for quite a while (and is almost finished - woohoo!) I want to give Torbjörn the ability to start rising lava when he uses his ultimate. The lava rises, stays for a few seconds, and then slowly sinks again.
The way the lava is currently coded works well for actual flat lava. But I’m thinking it’s not possible to create 100% horizontal lava?
The issue I have is that with the lava sphere, the burning damage begins the moment players go below the top point of the sphere (even though they’re outside of it).
Here is the code I have so far. Considering I can’t share links to the photos of the code, here is the Workshop Code: VD17M. It’s the bottom 3 / 4 rules.
Would love to hear:
- How to properly code the lava sphere, so that you only get damage while in the sphere.
- If it is possible to create actual flat lava?
- If the bottom part of the code in the “taking damage rule” is needed, or unnecessary?
Really like to understand how to fix this… xD
Thank you!
Kychahh
A: Yes entirely flat Lava is possible
Just a Visual Indicator for it is kinda …
Not Existing
B: The Taking Dmg Rules are needed
C: Here the Code: 4N011
D: Lava Takes 10Sec to reach peak stays for 5sec then decreases over 10sec again.
For Changes to Rising duration and staying duration change the number values in the “… Torbjörn | Ultimate Lava Rising” Rule (‘Wait’ and ‘Rate’ in Chase Global Variables)
The Torb that activated the Rule most recently doesnt take Dmg from his own Ultimate to change that remove the the second Condition in “Lava - Start damage”
1 Like
Oooh, that’s really great. Aside from the lava bit, you showed me a whole lot of other possibilities I didn’t even know were possible, haha. Thanks a bunch! Upping my understanding of coding possibilities.
The current flat lava though is indeed kind of missing it’s visual indicator, as the clouds are not too obvious in all areas where the lava is.
I know… I know… Should be happy with what you’ve given me… But how would this look with the sphere? Then I assume the rules at the taking dmg / not taking dmg should account for more than just the Y position related to the global variable ‘Lava_Current_Height’? (awesome and easy variable naming / using btw!)
If each map had a fixed starting point from where the lava sphere would begin to grow / go up?
And would that be different if there was a map where there were two lava spheres going up at the same time when Torbjörn ulti’s?
Kychahh
Well, it could be possible to make it a sphere just placing it lower than the current position that only the top sticks out of the ground.
The only problem would be that closer to the center of the sphere it would be higher than the actual lava.
Might be still better than the clouds tho since it would be always visible…
Each map could have the fixed position Vector 0 0 0.
The only problem would be the distance between the actual FFA Map and the Maps 0 0 0 would be different.
But it would be possible to make a custom fixed position like the how the Y part already is set currently.
Might take another look at it later
Kinda ended up doing something different than a Sphere.
(I am not going to make 10 or more different spheres with custom positions on each map just to cover every little spot on every map)
Made a HUD Text that Indicates Current Height and Lava Height.
(Not visible to the Torb that is currently using Ult)
Code: HW0YH
And if you take a look a the number of rules you might notice that it has gotten less
The Answer for that are rule number 2 and 3 from the Top
and the Orisa Nuke cooldown ( Which also has a propper sized number now )
Other things I’ve noticed if you wanna use infinite duration for effects set the ‘duration to match time’
And you might wanna start using Arrays instead of 3 Different variables for 1 effect on a certain hero
Aaaannnnd this is a HUD Text mess
Thank you so much for spending all that time! Haven’t been able to look at it yet, work took in all time. Same today. Will check it out tonight. Sorry
Edit: What a stupid rule from Blizzard that I can’t add another comment. Have to wait for others to join in on the post.
Well, thing is… I just found a solution to the sphere problem. If I’m not allowed to add that answer, everyone else that ever has this problem will never take the full benefit from reading this old thread in the future.
And maybe give that notification before I spend my time typing a complete response.
Anyway, had written an entire comment on your help, but that got lost.
This is the code to what I have now: XPSER