Mapping hazards and types
About The Pull Request
Baseline functionality finished! yay
(still plenty of room for actual hazards, mostly need sprites & ideas)
Pitch
This PR implements a base obj/structure/hazard, with the goal of making subtypes of this base hazard easily customizable using variables. The goal is to make it as easy as possible for mappers to make and customize hazards based on the subtypes listed below.
Hazard Basics
Most hazards are activated randomly or on contact. Random hazard effects will constantly repeat with a delay set between random_min and random_max. Contact hazard effects either happen when walked over (not dense) or bumped (dense), with a short cooldown. As of now, only radiation barrels use the attacked hazard trigger, which happens when the hazard is, of course, attacked.
Hazard Subtypes
base hazard all hazards can choose to add slowdown hazard/atmospheric a simple hazard that emits a chosen gas, with set mols and temp hazard/electrical hazards that emit sparks, stuns, or tesla arcs. The bread and butter of this system hazard/floor floor hazards, such as spikes, slips, and launchers hazard/radioactive the old radioactive barrels, with their activation procs moved to the base hazard. otherwise nearly the same! hazard/slowdown require climbing over, under, or have a stick chance hazard/spray sprays foam, smoke, or water.
implemented electrical hazard example: https://youtu.be/4P-67V_US6Q
hazard example suite as of july 22. more are likely to come as I get more recommendations. https://youtu.be/gLLdpiM-Ofg
Why It's Good For The Game
Makes it (hopefully) easy for mappers to customize simple hazards to their needs, and adds new kinds of hazards that don't rely on sim mechanics nearly as heavily. This allows for hazards to be easily used in ruins without much consideration, compared to something like emitters.
Changelog
:cl: add: adds ruin hazards /:cl:
Still being worked on? Let me know when you want a review
still being worked on, been busy this week, mostly drafted because I want more implemented hazards before its sent
This pull request has conflicts, please resolve those before we can evaluate the pull request.
if the electric hazards are wanted let me know, I'm not finishing the rest of this however.
Let us know when you want a review on this
This pull request has conflicts, please resolve those before we can evaluate the pull request.
My goal of having several hazards finished for this before review has made me stall on it for a while, if I could get a review now that'd be great. If anything seems wonky I'll cut it for a future PR.
ehh this has been open for 2 long.. just remeber in future that sleeps are evil..