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.
[2025-7-14. : 5:10 pm]
Ultraviolet -- No kidding, that thing is incredibly slick. If I didn't know SC that well, I'd assume it was a standard graphic that came with the game
[2025-7-14. : 10:14 am]
Oh_Man -- zomg that waterfall is the best thing i've ever seen
[2025-7-14. : 5:13 am]
Moose -- dumbducky
dumbducky shouted: Huge breakthrough: I fixed the RAID failure to automount and my stupid router applied the correct IP
put ddwrt or openwrt on router. Or maybe don't I have no idea if it will make your use case easier
[2025-7-14. : 4:58 am]
Moose -- O cool, someone else fixed it while I was dead or w/e
[2025-7-13. : 4:32 am]
dumbducky -- Huge breakthrough: I fixed the RAID failure to automount and my stupid router applied the correct IP
[2025-7-12. : 5:13 pm]
Ultraviolet -- :wob:
[2025-7-10. : 7:43 pm]
dumbducky -- >is retarded
[2025-7-10. : 7:43 pm]
dumbducky -- >is called Linksys Smart Wifi
[2025-7-10. : 12:15 am]
O)FaRTy1billion[MM] -- every time i want mosfets i can never find any, just boring bjts smh
[2025-7-10. : 12:15 am]
O)FaRTy1billion[MM] -- i want free mosfets
Please log in to shout.


Members Online: lil-Inferno