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.
[04:37 am]
Dem0n -- Topic names are always truncated in the box and there's no reason for the portal news boxes to be so large.
[04:36 am]
Dem0n -- ayy Roy or someone, expand the latest post/productions box width to be 350px
[02:23 am]
Pr0nogo -- even with that, doesn't work
[02:22 am]
Pr0nogo -- trigedit won't compile or throw errors, i'll try with the custom aiscript files imported to the scmd mpq
[02:17 am]
Pr0nogo -- Suicidal Insanity
Suicidal Insanity shouted: Pr0nogo Ahh - I knew you asked then you never talked about it again, so I assumed it worked., But the code looks like it would throw an error.
I'll try this now and see what happens
[02:16 am]
Pr0nogo -- extinguished
[02:00 am]
Lanthanide -- Suicidal Insanity
Suicidal Insanity shouted: Why do I always quote when I want to whisper? :X
why are you whispering all the time? talking smack behind people's back? perhaps if you can't say what you want to say in public, you shouldn't say it at all
[01:15 am]
O)FaRTy1billion[MM] -- tbf they are tiny tiny icons
[06:16 pm]
Suicidal Insanity -- :P
[05:59 pm]
Dem0n -- Well it seems like you're pressing the wrong button.
Please log in to shout.


Members Online: Corbo, Roy, KrayZee, Dem0n, hassanswalter, Lost_Angel