Skip to content

Commit

Permalink
Energy Crossbows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit0vras committed Oct 18, 2023
1 parent 0f9e765 commit d1ffb4a
Show file tree
Hide file tree
Showing 23 changed files with 232 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/Audio/SS220/Weapons/Guns/MagIn/attributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- files: ["draw_bow2.ogg"]
license: "CC-BY-SA-3.0"
copyright: "Is taken from tgstation at https://github.com/ss220-space/tgstation/blob/eee5e8ffb539d91a507316abf17839779326aa99/sound/weapons/draw_bow2.ogg"
source: "https://github.com/tgstation/tgstation"
Binary file not shown.
3 changes: 3 additions & 0 deletions Resources/Locale/ru-RU/ss220/store/uplink-catalog.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Weapons
uplink-ecrossbow-name = { ent-WeaponMiniEnergyCrossbow }
uplink-ecrossbow-desc = { ent-WeaponMiniEnergyCrossbow.desc }
5 changes: 5 additions & 0 deletions Resources/Locale/ru-RU/ss220/weapons/crossbow.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ent-WeaponMiniEnergyCrossbow = мини энерго-арбалет
.desc = Оружие, излюбленное специалистами синдиката, предпочитающими работать скрытно.
ent-WeaponEnergyCrossbow = энерго-арбалет
.desc = Оружие, спроектированное методом обратной инженерии с использованием технологий синдиката. Средних размеров и слабее "оригинала".
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
- WeaponLaserCannon
- WeaponXrayCannon
- WeaponTaser
- WeaponEnergyCrossbow #SS220 Energy Crossbow

- type: entity
id: CircuitImprinter
Expand Down Expand Up @@ -581,6 +582,7 @@
- WeaponLaserCarbinePractice
- WeaponTaser
- WeaponXrayCannon
- WeaponEnergyCrossbow #SS220 Energy Crossbow
- type: MaterialStorage
whitelist:
tags:
Expand Down
10 changes: 10 additions & 0 deletions Resources/Prototypes/Recipes/Lathes/devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,13 @@
Steel: 500
Glass: 400
Gold: 100

- type: latheRecipe #SS220 Energy crossbow
id: WeaponEnergyCrossbow
result: WeaponEnergyCrossbow
completetime: 5
materials:
Steel: 2000
Silver: 750
Plasma: 1500
Uranium: 600
2 changes: 2 additions & 0 deletions Resources/Prototypes/Research/arsenal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,5 @@
cost: 15000
recipeUnlocks:
- WeaponAdvancedLaser
- WeaponEnergyCrossbow #SS220 Energy crossbow

10 changes: 10 additions & 0 deletions Resources/Prototypes/SS220/Catalog/uplink_catalog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- type: listing
id: UplinkEcrossbow
name: uplink-ecrossbow-name
description: uplink-ecrossbow-desc
icon: { sprite: /Textures/SS220/Objects/Weapons/Guns/Crossbow/minicrossbow.rsi, state: icon }
productEntity: WeaponMiniEnergyCrossbow
cost:
Telecrystal: 10
categories:
- UplinkWeapons
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- type: entity
id: BulletImpactEffectGreenLaser
noSpawn: true
components:
- type: TimedDespawn
lifetime: 0.2
- type: Sprite
drawdepth: Effects
layers:
- shader: unshaded
map: ["enum.EffectLayers.Unshaded"]
sprite: Objects/Weapons/Guns/Projectiles/projectiles_tg.rsi
state: impact_laser_greyscale
color: "#00cb00"
- type: EffectVisuals
- type: Tag
tags:
- HideContextMenu
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
- type: entity
name: mini energy crossbow bolt
id: BulletMiniEnergyCrossbow
parent: BaseBullet
noSpawn: true
components:
- type: FlyBySound
sound:
collection: EnergyMiss
params:
volume: 5
- type: Sprite
noRot: false
sprite: SS220/Objects/Weapons/Guns/Projectiles/projectiles.rsi
color: "#00cb00"
layers:
- state: cbbolt
shader: unshaded
- type: Physics
- type: Fixtures
fixtures:
projectile:
shape:
!type:PhysShapeAabb
bounds: "-0.2,-0.2,0.2,0.2"
hard: false
mask:
- Opaque
- type: StaminaDamageOnCollide
damage: 25
- type: Ammo
- type: Projectile
impactEffect: BulletImpactEffectGreenLaser
damage:
types:
Poison: 15
soundHit:
path: "/Audio/Weapons/tap.ogg"
soundForce: true
- type: StunOnCollide
stunAmount: 1
knockdownAmount: 1

- type: entity
name: energy crossbow bolt
id: BulletEnergyCrossbow
parent: BulletMiniEnergyCrossbow
noSpawn: true
components:
- type: StaminaDamageOnCollide
damage: 20
- type: Projectile
damage:
types:
Poison: 10
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#© SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt
- type: entity
name: crossbow
parent: BaseItem
id: BaseWeaponCrossbow
abstract: true
description: Energy crossbow.
components:
- type: AmmoCounter
- type: UseDelayOnShoot
- type: UseDelay
delay: 4
- type: RechargeBasicEntityAmmo
rechargeCooldown: 4
rechargeSound:
path: /Audio/SS220/Weapons/Guns/MagIn/draw_bow2.ogg
- type: Gun
fireRate: 1
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/taser2.ogg
- type: Item
size: 10

- type: entity
name: mini energy crossbow
parent: BaseWeaponCrossbow
id: WeaponMiniEnergyCrossbow
description: A weapon favored by syndicate specialists who prefer to work covertly.
components:
- type: Sprite
sprite: SS220/Objects/Weapons/Guns/Crossbow/minicrossbow.rsi
state: icon
- type: BasicEntityAmmoProvider
proto: BulletMiniEnergyCrossbow
capacity: 1
count: 1

- type: entity
name: energy crossbow
parent: WeaponMiniEnergyCrossbow
id: WeaponEnergyCrossbow
description: A weapon designed by reverse engineering using syndicate technology. Medium-sized and weaker than the "original".
components:
- type: Sprite
sprite: SS220/Objects/Weapons/Guns/Crossbow/crossbow.rsi
state: icon
- type: Item
size: 30
- type: BasicEntityAmmoProvider
proto: BulletEnergyCrossbow
capacity: 1
count: 1
- type: Wieldable
wieldTime: 0.5
wieldSound:
path: /Audio/Items/bow_pull.ogg
- type: GunRequiresWield
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,30 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/blob/2532911353d63661b735004f2895103d45858b50/icons/obj/weapons/guns/energy.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-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
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,22 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/blob/2532911353d63661b735004f2895103d45858b50/icons/obj/weapons/guns/energy.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/blob/2532911353d63661b735004f2895103d45858b50/icons/obj/weapons/guns/projectiles.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "cbbolt"
}
]
}

0 comments on commit d1ffb4a

Please sign in to comment.