Need advice for new weather event code.

How, what and why to code in BYOND.
Post Reply
vilereaver41
Joined: Fri Jul 23, 2021 3:50 pm
Byond Username: Vilereaver41

Need advice for new weather event code.

Post by vilereaver41 » #608884

Currently working on a map for tgmc in which a ship has been hit by a meteor and crashed on a xeno home world.

Looking to make a weather event in which meteors rain down doing knockback and damage but no cade damage.

Would anyone have advice on where to start with the code? I use Visual studio and can run debug/gitraken and can pr would just like some tips please.
User avatar
TheFinalPotato
Code Maintainer
Joined: Sun Oct 13, 2019 7:58 am
Byond Username: LemonInTheDark

Re: Need advice for new weather event code.

Post by TheFinalPotato » #609339

You'd want something that picks a random tile around the map and "drops" an effect on it, when enough time has passed for that effect to have visually "hit the ground" you can do the knockback/damage.
There's two parts to this, the first is doing the things in a loop while the event is happening, and the second is the effect visuals and behavior.

I don't know how tgmc supports weather, and what that subsystem looks like, so I can't help with the loop bit, but if you want a similar visual effect you should look at how droppods or ashdrakes work on tg main.

You may also be better off asking in their discord dev channels, since they have more familiarity with the issue
My ancestors are smiling at me, Imperials. Can you say the same?
Image
Image
Image
Image
User avatar
Whoneedspacee
Joined: Mon May 21, 2018 2:07 am
Byond Username: Whoneedspacee

Re: Need advice for new weather event code.

Post by Whoneedspacee » #623578

late af but if it's anything like normal ss13 weather which targets areas you'd most likely make some visual effect for the meteor that targets an area like ash drakes meteor and then have it target a random turf in the targeted area
retired ss13 coderman
Post Reply

Who is online

Users browsing this forum: No registered users