diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/meteors.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/meteors.yml index 3468cade76b..34ce3f778c2 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/meteors.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/meteors.yml @@ -41,6 +41,10 @@ explosionType: Default intensitySlope: 4 maxIntensity: 100 + - type: MobState # Frontier (otherwise NPCs won't attack the entity) + - type: NpcFactionMember # Frontier + factions: # Frontier + - SpaceDebris # Frontier - type: entity parent: BaseMeteor diff --git a/Resources/Prototypes/_NF/Entities/Objects/Weapons/Guns/turrets.yml b/Resources/Prototypes/_NF/Entities/Objects/Weapons/Guns/turrets.yml index 2125ea1e1b4..b993a6f34c4 100644 --- a/Resources/Prototypes/_NF/Entities/Objects/Weapons/Guns/turrets.yml +++ b/Resources/Prototypes/_NF/Entities/Objects/Weapons/Guns/turrets.yml @@ -177,6 +177,89 @@ factions: - HostileUniversally +# Meteor defense turret +- type: entity + parent: + - BaseWeaponTurretEnergyNF + id: WeaponTurretLaserDebrisDefenseDeployed + name: PDALT + description: |- + A Point Defence Automated Laser Turret (PDALT). A laser turret designed for protection of vessels from space debris. Use screwdriver to disassemble. + suffix: Frontier, Debris Defense + components: + - type: HTN + rootTask: + task: TurretCompound + blackboard: + RotateSpeed: !type:Single + 9.423 + SoundTargetInLOS: !type:SoundPathSpecifier + path: /Audio/Effects/double_beep.ogg + - type: Sprite + sprite: _NF/Objects/Weapons/Guns/Turrets/pdw.rsi + - type: Gun + fireRate: 12 + minAngle: 1 + maxAngle: 5 + projectileSpeed: 70 + soundGunshot: + path: /Audio/DeltaV/Weapons/Guns/Gunshots/laser.ogg + params: + variation: 0.125 + soundEmpty: + path: /Audio/DeltaV/Weapons/Guns/Empty/dry_fire.ogg + - type: ProjectileBatteryAmmoProvider + proto: BulletEnergyGunLaser + fireCost: 10 + - type: NpcFactionMember + factions: + - DebrisDefenseWeapon + - type: Construction + deconstructionTarget: null + graph: WeaponTurretLaserDebrisDefensePackingGraph + node: WeaponTurretLaserDebrisDefensePacked + +- type: entity # folded turret + parent: BaseItem + id: WeaponTurretLaserDebrisDefensePacked + name: packed PDALT + description: |- + A disassembled and packed Point Defence Automated Laser Turret (PDALT). + suffix: NT, Packed + components: + - type: WeaponCaseInsertable + - type: MultiHandedItem + - type: SpawnAfterInteract + prototype: WeaponTurretLaserDebrisDefenseDeployed + doAfter: 5 + removeOnInteract: true + - type: Sprite + sprite: _NF/Objects/Weapons/Guns/Turrets/pdw.rsi + state: packed + - type: Item + size: Ginormous + shape: + - 0,0,3,3 + sprite: _NF/Objects/Weapons/Guns/Turrets/pdw.rsi + +- type: constructionGraph # deconstruction graph + id: WeaponTurretLaserDebrisDefensePackingGraph + start: WeaponTurretLaserDebrisDefensePacked + graph: + - node: WeaponTurretLaserDebrisDefensePacked + entity: WeaponTurretLaserDebrisDefenseDeployed + edges: + - to: WeaponTurretLaserDebrisDefensePacked + completed: + - !type:SpawnPrototype + prototype: WeaponTurretLaserDebrisDefensePacked + amount: 1 + - !type:EmptyAllContainers + - !type:DeleteEntity {} + steps: + - tool: Screwing + doAfter: 14 + ## Magazine fed, deployable NanoTrasen turret - type: entity # deployed turret parent: diff --git a/Resources/Prototypes/_NF/ai_factions.yml b/Resources/Prototypes/_NF/ai_factions.yml index 5c8dea137bf..6bfa69a46a0 100644 --- a/Resources/Prototypes/_NF/ai_factions.yml +++ b/Resources/Prototypes/_NF/ai_factions.yml @@ -465,3 +465,14 @@ - SiliconsExpeditionNF - AberrantFleshExpeditionNF - ContrabandClothing + +# Space debris and meteors +- type: npcFaction + id: SpaceDebris + +- type: npcFaction + id: DebrisDefenseWeapon + friendly: + - NanoTrasen + hostile: + - SpaceDebris diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/base.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/base.png new file mode 100644 index 00000000000..4c212958673 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/base.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/icon.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/icon.png new file mode 100644 index 00000000000..7e06d52b64e Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/icon.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-left.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-left.png new file mode 100644 index 00000000000..65c61ccebc0 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-left.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-right.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-right.png new file mode 100644 index 00000000000..65c61ccebc0 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/inhand-right.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-0.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-0.png new file mode 100644 index 00000000000..41417fff1ee Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-0.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-1.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-1.png new file mode 100644 index 00000000000..c5bf0bcad20 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-1.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-2.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-2.png new file mode 100644 index 00000000000..8c6b7d45035 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-2.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-3.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-3.png new file mode 100644 index 00000000000..093ce0cf91e Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-3.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-4.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-4.png new file mode 100644 index 00000000000..59fd6a9d582 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-4.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-5.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-5.png new file mode 100644 index 00000000000..76a9506c5c0 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-5.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-6.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-6.png new file mode 100644 index 00000000000..ba6211c7102 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-6.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-7.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-7.png new file mode 100644 index 00000000000..a80b3372352 Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/mag-7.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/meta.json b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/meta.json new file mode 100644 index 00000000000..f4a9fbef54c --- /dev/null +++ b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/meta.json @@ -0,0 +1,59 @@ +{ + "version": 1, + "license": "CC-BY-NC-SA-4.0", + "copyright": "Sprites made by Stagnation (discord) for SS14 New Frontier", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "base" + }, + { + "name": "mag-0", + "delays": + [ + [ 0.2, 0.2 ] + ] + }, + { + "name": "mag-1" + }, + { + "name": "mag-2" + }, + { + "name": "mag-3" + }, + { + "name": "mag-4" + }, + { + "name": "mag-5" + }, + { + "name": "mag-6" + }, + { + "name": "mag-7" + }, + { + "name": "packed" + }, + { + "name": "icon" + }, + { + "name": "unshaded" + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + } + ] +} \ No newline at end of file diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/packed.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/packed.png new file mode 100644 index 00000000000..7e06d52b64e Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/packed.png differ diff --git a/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/unshaded.png b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/unshaded.png new file mode 100644 index 00000000000..36fe8be2f7f Binary files /dev/null and b/Resources/Textures/_NF/Objects/Weapons/Guns/Turrets/pdw.rsi/unshaded.png differ