Skip to content
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

Meteor Defense Turret #1811

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
83 changes: 83 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Weapons/Guns/turrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/_NF/ai_factions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,14 @@
- SiliconsExpeditionNF
- AberrantFleshExpeditionNF
- ContrabandClothing

# Space debris and meteors
- type: npcFaction
id: SpaceDebris

- type: npcFaction
id: DebrisDefenseWeapon
friendly:
- NanoTrasen
hostile:
- SpaceDebris
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading