Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Timed life units based on broodlings.
Timed life units based on broodlings.
Nov 24 2022, 7:07 pm
By: SPyro_Malin  

Nov 24 2022, 7:07 pm SPyro_Malin Post #1



I wonder if you could apply this broodling energy death timer thingy to other units with EUDs?

Result should be something like Stukov's marines with a limited life time, while player can have many of them, all with different timers and maybe even some of the base units without timed life at all.
Spawning group of x units and then killing them all with a trigger after y ammount of seconds will not really work for me, sorry.



None.

Nov 28 2022, 1:10 am DarkenedFantasies Post #2

Roy's Secret Service

You probably can't give units the energy bar and counter like on broodlings and hallucinations without modding (assuming that's off the table for you), but you can still give the same internal timer with EUDs. After creating the unit, read the "Player Last Unit" pointer (0x006283F8+4*playerID) to get the "CUnit" entry for your last created unit for that player, and at offset 272 of the CUnit entry (i.e. 0x0059CDB8) is the timer that kills broodlings/disruption webs/dark swarms/hallucinations. Add a value between 1 and 65535 to it and the unit will die after that many game frames (42ms per frame at fastest speed).




Nov 28 2022, 1:25 pm SPyro_Malin Post #3



Wooah this is exactly what I needed. Thank you so much man. While timer could be a nice addition I don't really need it.
You are the man <3.

Edit: And yes I want to stick to non-modded maps.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy, Filmstars, Revenant