[DataField, ViewVariables(VVAccess.ReadWrite)]
public float NeedEnergyToSpawn = 100f;
+ /// <summary>
+ /// The amount of energy to which the tesla must reach in order to be destroyed.
+ /// </summary>
+ [DataField, ViewVariables(VVAccess.ReadWrite)]
+ public float EnergyToDespawn = -100f;
+
+ /// <summary>
+ /// Played when energy reaches the lower limit (and entity destroyed)
+ /// </summary>
+ [DataField]
+ public SoundSpecifier? SoundCollapse;
+
/// <summary>
/// Entities that spawn when the energy limit is reached
/// </summary>
component.Energy -= component.NeedEnergyToSpawn;
Spawn(component.SpawnProto, Transform(uid).Coordinates);
}
+ if (component.Energy < component.EnergyToDespawn)
+ {
+ _audio.PlayPvs(component.SoundCollapse, uid);
+ QueueDel(uid);
+ }
}
}
ent-CrateRCD = RCD crate
.desc = A crate containing a single Rapid Construction Device.
+
+ent-CrateParticleDecelerators = Particle Decelerators crate
+ .desc = A crate containing 3 Particle Decelerators.
\ No newline at end of file
research-technology-advanced-anomaly-research = Advanced Anomaly Research
research-technology-rped = Rapid Part Exchange
research-technology-super-parts = Super Parts
+research-technology-deterrence = Deterrence Technologies
research-technology-janitorial-equipment = Janitorial Equipment
research-technology-laundry-tech = Laundry Tech
cost: 800
category: Engineering
group: market
+
+- type: cargoProduct
+ id: EngineeringParticleDecelerators
+ icon:
+ sprite: Objects/Weapons/Guns/Battery/particle_decelerator.rsi
+ state: base
+ product: CrateParticleDecelerators
+ cost: 15000
+ category: Engineering
+ group: market
+
\ No newline at end of file
- type: StorageFill
contents:
- id: RCD
+
+- type: entity
+ id: CrateParticleDecelerators
+ parent: CrateEngineeringSecure
+ components:
+ - type: StorageFill
+ contents:
+ - id: WeaponParticleDecelerator
+ amount: 3
- type: StaticPrice
price: 80
+- type: entity
+ parent: Holoprojector
+ id: HoloprojectorField
+ name: force field projector
+ description: Creates an impassable forcefield that won't let anything through. Close proximity may or may not cause cancer.
+ components:
+ - type: HolosignProjector
+ signProto: HolosignForcefield
+ chargeUse: 120
+ - type: Sprite
+ sprite: Objects/Devices/Holoprojectors/field.rsi
+ state: icon
+ - type: Tag
+ tags:
+ - HolofanProjector
+ - type: StaticPrice
+ price: 250
- type: entity
parent: Holoprojector
proto: RedHeavyLaser
fireCost: 100
+- type: entity
+ name: portable particle decelerator
+ parent: BaseWeaponBattery
+ id: WeaponParticleDecelerator
+ description: A portable particle decelerator capable of decomposing a tesla or singularity.
+ components:
+ - type: Item
+ size: Ginormous
+ - type: MultiHandedItem
+ - type: ClothingSpeedModifier
+ walkModifier: 0.6
+ sprintModifier: 0.6
+ - type: HeldSpeedModifier
+ - type: Sprite
+ sprite: Objects/Weapons/Guns/Battery/particle_decelerator.rsi
+ layers:
+ - state: base
+ map: ["enum.GunVisualLayers.Base"]
+ - type: Gun
+ fireRate: 0.5
+ soundGunshot:
+ path: /Audio/Weapons/emitter.ogg
+ params:
+ pitch: 2
+ - type: ProjectileBatteryAmmoProvider
+ proto: AntiParticlesProjectile
+ fireCost: 500
+ - type: Battery
+ maxCharge: 10000
+ startingCharge: 10000
+
- type: entity
name: x-ray cannon
parent: BaseWeaponBattery
color: red\r
- type: Climbable\r
- type: Clickable\r
+\r
+- type: entity\r
+ id: HolosignForcefield\r
+ parent: HolosignWetFloor\r
+ name: holographic force field\r
+ description: A powerful temporal containment field that doesn't let anything through, not even a tesla or singularity.\r
+ components:\r
+ - type: Physics\r
+ bodyType: Static\r
+ canCollide: true\r
+ - type: Sprite\r
+ sprite: Structures/Holo/field.rsi\r
+ state: icon\r
+ - type: Fixtures\r
+ fixtures:\r
+ fix1:\r
+ shape:\r
+ !type:PhysShapeAabb\r
+ bounds: "-0.5,-0.5,0.5,0.5"\r
+ mask:\r
+ - FullTileMask\r
+ layer:\r
+ - GlassLayer\r
+ - type: TimedDespawn\r
+ lifetime: 180\r
+ - type: PointLight\r
+ enabled: true\r
+ radius: 3\r
+ color: blue\r
+ - type: Clickable\r
+ - type: ContainmentField\r
+ throwForce: 0\r
+ - type: Destructible\r
+ thresholds:\r
+ - trigger:\r
+ !type:DamageTrigger\r
+ damage: 60\r
+ behaviors:\r
+ - !type:DoActsBehavior\r
+ acts: [ "Destruction" ]
\ No newline at end of file
- Retractor
- Cautery
- Drill
+ - WeaponParticleDecelerator
+ - HoloprojectorField
- Saw
- Hemostat
- Beaker
Level3: {state: particle3}
- type: GuideHelp
guides: [ Singularity, Power ]
+
+- type: entity
+ name: anti particles
+ description: Accelerated negative particles.
+ id: AntiParticlesProjectile
+ parent: ParticlesProjectile
+ noSpawn: true
+ components:
+ - type: Sprite
+ layers:
+ - sprite: Structures/Power/Generation/PA/particle.rsi
+ color: red
+ state: particle0
+ shader: unshaded
+ map: [ "unshaded" ]
+ - type: SinguloFood
+ energy: -10
consumeEntities: false
- type: TeslaEnergyBall
spawnProto: TeslaMiniEnergyBall
+ soundCollapse:
+ path: /Audio/Effects/tesla_collapse.ogg
+ params:
+ variation: 0.3
- type: LightningArcShooter
arcDepth: 3
maxLightningArc: 4
Glass: 500
Plasma: 300
Gold: 50
+
+- type: latheRecipe
+ id: HoloprojectorField
+ result: HoloprojectorField
+ completetime: 3
+ materials:
+ Steel: 500
+ Plasma: 300
+ Glass: 100
+
+- type: latheRecipe
+ id: WeaponParticleDecelerator
+ result: WeaponParticleDecelerator
+ completetime: 6
+ materials:
+ Steel: 750
+ Plasma: 150
+ Uranium: 150
\ No newline at end of file
recipeUnlocks:
- RPED
+- type: technology
+ id: DeterrenceTechnologies
+ name: research-technology-deterrence
+ icon:
+ sprite: Objects/Weapons/Guns/Battery/particle_decelerator.rsi
+ state: base
+ discipline: Experimental
+ tier: 2
+ cost: 7500
+ recipeUnlocks:
+ - WeaponParticleDecelerator
+ - HoloprojectorField
+
# Tier 3
- type: technology
--- /dev/null
+{
+ "version": 1,
+ "size": {
+ "x": 32,
+ "y": 32
+ },
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/f4017da82ae4de7bfaf8ebdbba33d0de81c15587, and resprited by TheShuEd (github)",
+ "states": [
+ {
+ "name": "icon",
+ "delays": [
+ [
+ 0.3,
+ 0.3,
+ 0.3,
+ 0.3
+ ]
+ ]
+ }
+ ]
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": 1,
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Created by TheShuEd (github) for Space Station 14",
+ "size": {
+ "x": 32,
+ "y": 32
+ },
+ "states": [
+ {
+ "name": "base"
+ },
+ {
+ "name": "inhand-left",
+ "directions": 4
+ },
+ {
+ "name": "inhand-right",
+ "directions": 4
+ }
+ ]
+}
--- /dev/null
+{
+ "version": 1,
+ "size": {
+ "x": 32,
+ "y": 32
+ },
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Made by TheShuEd (github) for SS14",
+ "states": [
+ {
+ "name": "icon",
+ "delays": [
+ [
+ 0.2,
+ 0.2,
+ 0.2,
+ 0.2,
+ 0.2,
+ 0.2,
+ 0.2,
+ 0.2
+ ]
+ ]
+ }
+ ]
+}
\ No newline at end of file