-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Aftershock] Add small Enforcer Station #74471
[Aftershock] Add small Enforcer Station #74471
Conversation
…ids changed to avoid migration issues. Building rotated the correct way. Introduced Security Gates and Security panels to control them.
…tation, Adjust EMP gun spawn rarity
Why are you renaming a bunch of ids (and without migration)? |
data/mods/Aftershock/maps/furniture_and_terrain/furniture_habitat.json
Outdated
Show resolved
Hide resolved
data/mods/Aftershock/mobs/monster_groups/robot_monster_groups.json
Outdated
Show resolved
Hide resolved
Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details. Click to expand
This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to Hints for adding a new word to the dictionary
|
I ran into a problem where the robot items kept getting replaced by other items. Upon digging into the problem what I found was that the Eyebot, Copbot, and Riotbot are removed from the base game and being moved to Aftershock. And while this is happening there is active migration on the base game that is turning any and all of those items into broken lab defense bots. As to why I didn't apply my own migration: Truthfully I did not think to do that and will go in do that now! |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Oh right I literally agreed that was the only real solution earlier, goldfish memory ;D |
Pretty cool work here. |
Summary
Mods "Adds a police station to the Aftershock Exoplanet. As well as content supporting that."
Purpose of change
Continuing to work on adding new locations to the Aftershock Excoplanet.
Describe the solution
Add the Enforcer Station. A two story prefab that serves as a base of operations for Mercurial Corporate Security or Enforcers. Of note the station has a garage which can sometimes spawn vehicles as well as police bots(broken or inactive). An armory that may or may not be looted. An evidence lockup. And cyber security department that might spawn hacking equipment.
This PR makes a number of other supporting changes and additions listed below:
Lore:
Enforcers: Mercurial Corporate Security force.
Net Breacher: Basically Netrunners from cyberpunk. Currently refers to cyber security specialists in the employ of the Enforcers.
Item groups:
afs_police_armor: For use in armor specifically meant to be layered over police winter gear. Currently just refers to civilian ballistic gear and spaceship crew armor.
afs_wintersuit_police_advanced: For use if the police ever get their own winter exosuit. Currently just refers to the Magellan suit.
afs_police_evidence_locker: Currently just differs to the existing evidence locker group. Added in case we want to add to or complete redo that group for AFS themed items.
afs_police_bot_storage: Inactive and broken police robots that can spawn in police robot charging docks.
afs_police_hacker_gear: Currently just refers to the programming item group with the addition of VR headsets. If better or police specific hacking tools get created this group is ready to receive them.
afs_police_armory: Currently just a civilian armory with Tazers throw in.
afs_police_anti_robot_armory: Spawns an EMP rifle or ammo for said rifle. I imagine robots and cyborgs are enough of a common place threat the police would regularly stock the means to deal with them.
afs_swat_emp: Used by police anti robot armory. EMP rifles for police use should be added here.
afs_anti_robot_grenades: Contains any grenades I found specifically for dealing with robots.
Terrain and Furniture
New Keycard and Reader:
Enforcer Master card added as well as a new card reader for use in enforcer locations.
New Net Breacher Recliner:
Just a fancy arm chair inspired by the chairs you often see Netrunners using in Cyberpunk. Breaks into some basic electronic and neural io scrap.
Security Gate:
Closed Security Gate and Security gate frames added. Basically just a really tough metal door and a frame just for it. (For use in ter_fur_transforms to open and close it.)
Security Panel:
Security access point that when hacked opens a nearby security gate.
EOC Changes
General Hacking EOC updated to take a radius in which to perform it's ter_fur_transform. For use in opening larger security gates.
Monster and Item Renaming
Eyebot, Riotbot, and Policebot have all had "afs" pre-pended to their names to evade the migration happening on the base game that automagically replaces them and their items with other things.
Vehicles
Enforcer patrol car added which is just an atomic version of the existing police car. However it does also have one trunk replaced with a robot cargo. Since Enforcers probably deploy with robots often enough to have a spot for them in their car.
Light Cycle: Super bike converted to use an electric engine and given a police light. Does not have a mini-reactor, instead more intended for limited use in town then recharge back the station.
The structure itself:
The first floor has an airlock that opens to a small reception lobby. Beyond that are several dedicated office spaces. The patrol room which borders the armory and garage. A server room next to Cyber Security department. Which houses Net Breacher recliners and several consoles. And finally the garage itself which can house police vehicles and robots.
The armory can spawn either broken into with the door removed all loot taken, or unlooted and secured.
The garage can spawn open with no vehicles or closed. If closed it can spawn either up to 2 Light cycles or a patrol car. No vehicles are guaranteed to spawn so it can also just be closed and empty.
Like my other structures the lights can be on or off which applies to the whole structure.
This structure can either spawn with moxies on both floors or rampant police robots.
The second floor opens to life support systems near the stairs. On one side of the floor you have the holding cells and an interview room. A little bit down past that is the Evidence lock up and small gym. Next to the gym is robot repair workshop for servicing police bots. Though it could probably also double for forensics on recovered robots and hardware. On the far side of the holding cells is the breakroom, lockers, bathrooms, and one final office. The lockers can spawn the advanced winter suites that enforcers might use. The roof area has some random bits of decoration/life support.
Describe alternatives you've considered
I considered not adding the evidence lockup group and just directly referring to the original.
I greatly considered adding a variant of the Magellan suit for police use but left that up to someone else.
Same for the addition of a police electrohack.
I attempted to use a special garage keycard reader for the garage door. Instead of adding the security gate and security panel. But I found that while swiping your card always used the settings set in the JSON. Hacking the read always produced the same result, a 3 radius change of metal door locked to metal door unlocked. Which was not ideal for these circumstances. I also considered using a computer to do the job but found none of the hardcoded actions fit my needs properly.
I also considered using some kind of winch. Or creating a new furniture that executed a specific eoc for opening the door. I also considered having no door at all. But I wanted players to have to work to get the car out because I'm mean.
In the end expanding the EOC is what I settled on. Since security gates were planned anyway. I don't know if I would consider this the optimal way in which they should be implemented. But for now it at least serves as a way to get the dang garage door open.
When editing the EOC I considering also allowing the ability to specify a ter_fur_transform to use. I opted not to since in this case it was not needed.
I considered allowing the hardware lab and Net breacher department to be swapped out for other rooms using nested map gen. However I had no other ideas for rooms so I opted against of doing so.
I wanted to change out more of the floors but I couldn't think of much else that would fit so metal it is.
Testing
Loaded into the world and verified the structure was spawning.
Verified items spawning and roughly balanced item spawns to something that felt okay.
Verified all variations of nested map gen spawning.
Verified vehicles spawning in the garage.
Tested the vehicles a bit to ensure they work.
Tested unlocking intermodal crates to ensure they had not broken.
Tested unlocking reinforced display cases to ensure they had not broken.
Tested the security gate to verify it works with the new hacking changes.
Additional context
The original design for this structure is almost two weeks old now.