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.
[11:00 am]
Suicidal Insanity -- In other news: I uploaded a new build last night with the tileset scroll fix, and a bunch of internal changes to data loading, including more strict file size checking. Let me know if it breaks any mods
[08:55 am]
Suicidal Insanity -- NudeRaider
NudeRaider shouted: Suicidal Insanity it comes with ai functions. If you say "CSI enhance" it zooms onto the eye and you can see yourself shooting the photo.
I'm got a cheetah portrait somewhere where you can see that already :D
[08:55 am]
Suicidal Insanity -- Corbo
Corbo shouted: but damn that's a good lense lmao
Supposedly it matches the 400mm 2.8 @ f4 in terms of sharpness etc. I was planning on saving up a couple of years for the 400mm, now I'm not sure
[08:54 am]
Suicidal Insanity -- Corbo
Corbo shouted: Suicidal Insanity i refuse to spend any dime on nikkon products smh
Canon has a similar one if that's your preference.
[08:54 am]
Suicidal Insanity -- FaRTy1billion
FaRTy1billion shouted: is there a particular reason the fonts are encrypted in the first place?
Probably somebody thinking he was being clever :D
[06:38 am]
NudeRaider -- Suicidal Insanity it comes with ai functions. If you say "CSI enhance" it zooms onto the eye and you can see yourself shooting the photo.
[02:20 am]
Corbo -- but damn that's a good lense lmao
[02:19 am]
Corbo -- Suicidal Insanity i refuse to spend any dime on nikkon products smh
[02:10 am]
O)FaRTy1billion[MM] -- which is why they are not encrypted on the CD
[01:34 am]
jjf28 -- font files are highly confidential
Please log in to shout.


Members Online: Roy, jjf28, Suicidal Insanity