Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Advanced EUD - Regen rate?
Advanced EUD - Regen rate?
Feb 5 2019, 10:53 pm
By: MTiger156  

Feb 5 2019, 10:53 pm MTiger156 Post #1



For several months, I've been watching Korean maps being played on youtube in order to learn and replicate their EUD techniques (Koreans are WAY ahead on EUD knowledge, if you didn't know).

One thing I haven't solved is how they push regen/recharge rates as high as 40/sec. Maybe I'm just not looking hard enough at the available memory addresses?
(All of this is being done on Remastered multiplayer, so very unlikely it was modded)




Feb 5 2019, 10:57 pm Lanthanide Post #2



There's no memory address for it, beyond turning the standard protoss shield or zerg HP regen on or off.

They'll simply be running a loop that adds shields / HP every execution to each unit via the cUnit struct. Simple. I did it in the last version of my DS Night Remastered map 3.21 for the Roach , Immortal and Void Ray units.



None.

Feb 6 2019, 12:44 am MTiger156 Post #3



Ohhh ok.
I'd like to employ this is a current project, but the necessary unit indexes would not be known ahead of time. Considering that you did regen EUDs in a DS map (involving tons of units killing eachother constantly), there's a way to "get" unit indexes by unit type and player ownership, right?
In my case, each player would own 1 of a unique unit type, so that already narrows it down. The problem then lies in how to handle respawning it and getting the new index.




Feb 6 2019, 11:35 pm Lanthanide Post #4



I just loop over all 1700 units and check if the unit type == Roach, if it does, add some HP.

You can loop over units owned by only particular players, to reduce the CPU load of the loop operation.

In the EUD Channel in SEN Discord, Armo gave an explanation a week or two ago for how you can use variables to track specific units. If a player only has a fixed number of units at a time and you only have to deal with respawning of them occasionally, then using variables to track specific units is a tenable approach.



None.

Feb 10 2019, 8:11 pm Ultraviolet Post #5



Quote from Lanthanide
I just loop over all 1700 units and check if the unit type == Roach, if it does, add some HP.

You can loop over units owned by only particular players, to reduce the CPU load of the loop operation.

In the EUD Channel in SEN Discord, Armo gave an explanation a week or two ago for how you can use variables to track specific units. If a player only has a fixed number of units at a time and you only have to deal with respawning of them occasionally, then using variables to track specific units is a tenable approach.




Like this?




Feb 10 2019, 11:11 pm Lanthanide Post #6



Yes.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:26 am]
lil-Inferno -- :wob:
[08:25 am]
Black_Overseer -- razorback9423
razorback9423 shouted: WARNING: Unit Unplaceable! (Aldaris) (1656,2996)
You have no power here, Gandalf the Grey.
[05:43 am]
razorback9423 -- WARNING: Unit Unplaceable! (Aldaris) (1656,2996)
[05:27 am]
razorback9423 -- stop
[05:27 am]
NudeRaider -- :wob: you can't :wob: us
[05:08 am]
razorback9423 -- Are you kidding me? I thought wobbing ended yesterday
[05:07 am]
jjf28 -- ................................................... :wob:
[05:07 am]
razorback9423 -- ...................................................
[05:06 am]
jjf28 -- ..... :wob:
[05:05 am]
razorback9423 -- .....
Please log in to shout.


Members Online: Oh_Man, oleczka331731, Roy, Moose, galicjan185069, Jordahlaq3, lil-Inferno, Nekron, Arta(M), Lanthanide, psyhotechnica