Unfuck barricades, use new window code to make them much better
Created by: dylanstrategie
Long overdue. Barricades have not been touched ever since they were introduced and hotfixed during Meteors devleopment. While they were created as a straight upgrade to police tape with a pre-existing barricade item, they never really stood out and failed even at the job they were intended for (fortifying hallways and existing window bays, preferably along with keeping the station in about decent shape despite explody explosions)
But now, after having worked on windows and other things, I decided to revisit this, hopefully for the better :
- Barricade kits now have a new improved sprite which is no longer a copy-pasted plank sprite
- You can now create your very own wooden fort with the inclusion of directional barricades to go along full-tile barricades. They have much less health than full-tile barricades (100 for directional, 500 for full, 75 for window/airlock)
- All barricade-related code was moved from deployable (where it didn't belong, given that it's a structure and deployable is under machine) to a new barricade.dm file. A .dmi was also added for quick sprite reference
- Major code unfucking and refactor. All of the code for directional barricades was taken from windows. Note that directional barricades less air pass and aren't opaque (the first is a decision from the fact barricades would be extremely underwhelming and they look solid enough to retain air, the second is due to serious problem with opacity on border structures. Also it inherits windows pretty much fully on pass flags, air doesn't pass)
- Some problems with barricades have been fixed, notably being able to instantly destroy them by spamming attack, and hitting windows/opening airlocks when trying to barricade them (now uses preattack with a proper return)
- Barricades can be deconstructed with a crowbar. It takes ten seconds due to the fact that it instantly kills an otherwise sturdy item (100, or even 500 health is no joke)
- ex_act 1 is needed to kill barricades. Full-tile barricades are extremely beefy and can resist up to five hits
Full showcase with a bit of fluff :
Discussion goes below