mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-05 12:15:52 +01:00
cf585ef505
Makes ship combat significantly more destructive (and a bit deadlier), especially with non-explosive projectiles. **Additions:** - A shell that penetrates a solid (dense) structure will cause spalling. This spall does 2-30 damage, depending on range and has a high embed chance. These embedded chunks are large enough to be ripped out by hand. (But you probably shouldn't). The pilot's suit has 30 ballistic armor, so a prepared bridge crew can survive a lot of spall. - Adds a gun that shoots any ship weapon that admins can spawn. Useful for testing, or for adminbus where they don't want to have to spawn a whole overmap ship. - Made several structures destructible, vending machines, computer frames, grilles (these were just bugged) and watertanks (and their children). These structures could just block infinite shots and were common enough to serve as effective armor for the horizon. These now spawn shrapnel (of their material if it's set), in addition to sheets of steel when destroyed. - Added support for negative maim chance. This allows chosen projectiles to be prevented from decapitating. No more accidentally gibbing the bridge crew's heads. (Unless they get hit with something really really big). **Balance:** - All non-explosive anti ship rounds got significant buffs. Typically 2-3x Anti-Material numbers. - Armour piercing anti-ship rounds got massively increased penetration stats. Typically 4-8 from 1-2. - Doors now get destroyed in less hits, if they are hit by anti-material projectiles. Hits to destroy -= Antimaterial / 2 - Francisca frag shells now shoot less fragments but deal more damage. 394 projectiles for every shot was a bit laggy, now it's only 280. **Shields:** Shields now take more power. 13-14 megawatts for a 10 strength shield. Just inside the ship's generation capacity with both the INDRA and Supermatter running. Instead of deleting any projectile they are hit by, shields now have different failure modes. - Firstly, a piercing projectile has it's penetration reduced by the shield strength. Eg A shot that would go through 10 walls, only penetrates 4 after going through a 6 strength shield. - Secondly, a projectile has it's damage multiplied by 1 - shield strength / 10, then has shield strength subtracted from it's damage. Eg. A damage 100 projectile, hitting a 5 strength shield, has it's damaged reduced to 50, (100 * 0.5), then to 45. (50-5) - Thirdly, an explosive projectile (that does not penetrate per the first step) does not explode, but instead deals it's full damage to the shield. Hits to the shield now also damage the field itself, not just the shield tile. As such, a very big hit on the shield can bring the whole thing down, requiring an engineer to reset it. Shields can now be upgraded with research components. Additionally, shield generators can now support more than one capacitor. The roundstart capacitor on the Horizon is only good enough to support a 6 strength shield. The upgrades increase efficiency, strength loss over time and charge speed. **Overmap Targetting** Previously, shells would spawn within 20 tiles of their target and aim directly forwards. This was bugged for shots with burst, which would instead all aim inwards and mostly miss. This is the reason the Grauwolf (in addition to the explosion bug below) and Fransisca felt so useless, only one of every shell in a burst would hit. Shots now spawn at the map edge, based on the orientation of the projectile and ship. Diagonals are now accounted for. Shots are then aimed directly at the target selected on the console, with 3 degrees of dispersion. **Bugfixes:** - Fixes lots of explosions that didn't pass a turf to the explosions subsystem. This caused the explosion not to happen if the thing hit got qdeled before the subsystem could get the turf to spawn the explosion on. - Embedded shrapnel no longer gets the initial projectile name, this prevents it getting named shrapnelshrapnel. - Fixes a bunch of projectile piercing bugs, mostly with grilles and windows. Shots now go past window frames without hitting them. - Fixes shields not having a click delay when attacked. --------- Signed-off-by: FenodyreeAv <fenodyree.av@gmail.com> Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
/* The overmap system allows adding new maps to the big 'galaxy' map. There's overmap zlevel, that looks like a map. On it, token objects (overmap objects) are moved, representing ship movement etc. No actual turfs are moved, you would need exploration shuttles or teleports to move atoms between different sectors/ships. Unless stated otherwise, you just need to place any of things below somewhere on the map and they'll handle the rest. ************************************************************* # How to make new sector ************************************************************* 0. Map whatever. 1. Make /obj/effect/overmap/visitable/sector/[whatever] If you want explorations shuttles be able to dock here, remember to set waypoints lists 2. Put /obj/effect/overmap/visitable/sector/[whatever] on the map. Even if it's multiz, only one is needed, on any z. 3. Done. ************************************************************* # How to make new ship ************************************************************* 0. Map whatever. 1. Make /obj/effect/overmap/visitable/ship/[whatever] If you want explorations shuttles be able to dock here, remember to set waypoints lists 2. Put /obj/effect/overmap/visitable/ship/[whatever] on the map. If it's multiz, only one is needed, on any z. 3. Put Helm Console anywhere on the map. 4. Put Engines Control Console anywhere on the map. 5. Put some engines hooked up to gas supply anywhere on the map. 6. Done. ************************************************************* # Overmap object ************************************************************* /obj/effect/overmap/visitable ### WHAT IT DOES Lets overmap know this place should be represented on the map as a sector/ship. If this zlevel (or any of connected ones for multiz) doesn't have this object, you won't be able to travel there by ovemap means. ### HOW TO USE 1. Create subtype for your ship/sector. Use /ship one for ships. 2. Put it anywhere on the ship/sector map. It will do the rest on its own during init. If your thing is multiz, only one is needed per multiz sector/ship. If it's player's main base (e.g Aurora), set 'base' var to 1, so it adds itself to station_levels list. If this place cannot be reached or left with EVA, set 'in_space' var to 0 If you want exploration shuttles (look below) to be able to dock here, set up waypoints lists. generic_waypoints is list of landmark_tags of waypoints any shttle should be able to visit. restricted_waypoints is list of 'shuttle name = list(landmark_tags)' pairs for waypoints only those shuttles can visit ************************************************************* # Helm console ************************************************************* /obj/structure/machinery/computer/ship/helm ### WHAT IT DOES Lets you steer ship around on overmap. Lets you use autopilot. ### HOW TO USE Just place it anywhere on the ship. ************************************************************* # Engines control console ************************************************************* /obj/structure/machinery/computer/ship/engines ### WHAT IT DOES Lets use set thrust limits for engines of your ship. Lets you shutdown/restart the engines. Lets you check status of engines. ### HOW TO USE Just place it anywhere on the ship. ************************************************************* # Thermal engines ************************************************************* /obj/structure/machinery/atmospherics/unary/engine ### WHAT IT DOES Lets your ship move on the map at all. ### HOW TO USE Put them on map, hook up to pipes with any gas. Heavier gas (CO2/plasma) + More pressure = more thrust. ************************************************************* # Exploration shuttle terminal ************************************************************* /obj/structure/machinery/computer/shuttle_control/explore ### WHAT IT DOES Lets you control shuttles that can change destinations and visit other sectors/ships. ### HOW TO USE 1. Define starting shuttle landmark. 2. Define a /datum/shuttle/autodock/overmap for your shuttle. Same as normal shuttle, aside from 'range' var - how many squares on overmap it can travel on its own. 3. Place console anywhere on the ship/sector. Set shuttle_tag to shuttle's name. 4. Use. You can select destinations if you're in range (on same tile by defualt) on the map and sector has waypoints lists defined */