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

Replace the machete and laser in the borg weapons module with an e-dagger and recharging viper #26947

Merged
merged 12 commits into from
Jul 21, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@
- state: icon-syndicate
- type: ItemBorgModule
items:
- WeaponAdvancedLaser
- Machete
- WeaponPistolEchis
- EnergyDaggerLoud

- type: entity
id: BorgModuleOperative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,41 @@
gun_magazine: !type:ContainerSlot
gun_chamber: !type:ContainerSlot

- type: entity
name: echis
parent: BaseItem
id: WeaponPistolEchis
description: A viper for use by cyborgs. Creates .35 ammo on the fly from an internal ammo fabricator, which slowly self-charges.
components:
- type: Gun
fireRate: 5
selectedMode: SemiAuto
availableModes:
- SemiAuto
- FullAuto
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/pistol.ogg
- type: Sprite
sprite: Objects/Weapons/Guns/Pistols/viper.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-0
map: ["enum.GunVisualLayers.Mag"]
- type: ContainerContainer
containers:
ballistic-ammo: !type:Container
- type: ProjectileBatteryAmmoProvider
proto: BulletPistol
fireCost: 100
- type: Battery
maxCharge: 1000
startingCharge: 1000
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 25
- type: AmmoCounter

- type: entity
name: cobra
parent: BaseWeaponPistol
Expand Down
57 changes: 45 additions & 12 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/e_sword.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,26 +81,25 @@
temperature: 700

- type: entity
name: pen
name: energy dagger
parent: EnergySword
id: EnergyDagger
suffix: E-Dagger
description: 'A dark ink pen.'
id: EnergyDaggerLoud
description: A not as loud and dangerous dagger with a beam made of pure, concentrated plasma. This one is completely undisguised.
components:
- type: ItemToggle
soundActivate:
path: /Audio/Weapons/ebladeon.ogg
params:
volume: -6
volume: -3
soundDeactivate:
path: /Audio/Weapons/ebladeoff.ogg
params:
volume: -6
volume: -3
- type: ItemToggleMeleeWeapon
activatedSoundOnSwing:
path: /Audio/Weapons/eblademiss.ogg
params:
volume: -6
volume: -3
variation: 0.250
activatedDamage:
types:
Expand All @@ -111,14 +110,14 @@
activeSound:
path: /Audio/Weapons/ebladehum.ogg
params:
volume: -6
volume: -3
- type: ComponentToggler
components:
- type: Sharp
- type: DisarmMalus
malus: 0.4
- type: Sprite
sprite: Objects/Weapons/Melee/e_dagger.rsi
sprite: Objects/Weapons/Melee/e_dagger_loud.rsi
layers:
- state: e_sword
- state: e_sword_blade
Expand All @@ -135,7 +134,7 @@
Blunt: 1
- type: Item
size: Tiny
sprite: Objects/Weapons/Melee/e_dagger.rsi
sprite: Objects/Weapons/Melee/e_dagger_loud.rsi
- type: UseDelay
delay: 1.0
- type: PointLight
Expand All @@ -154,11 +153,45 @@
right:
- state: inhand-right-blade
shader: unshaded
- type: DisarmMalus
malus: 0

- type: entity
name: pen
parent: EnergyDaggerLoud
id: EnergyDagger
suffix: E-Dagger
description: 'A dark ink pen.'
components:
- type: ItemToggle
soundActivate:
path: /Audio/Weapons/ebladeon.ogg
params:
volume: -6
soundDeactivate:
path: /Audio/Weapons/ebladeoff.ogg
params:
volume: -6
- type: ItemToggleActiveSound
activeSound:
path: /Audio/Weapons/ebladehum.ogg
params:
volume: -6
- type: Sprite
sprite: Objects/Weapons/Melee/e_dagger.rsi
layers:
- state: e_sword
- state: e_sword_blade
color: "#FFFFFF"
visible: false
shader: unshaded
map: [ "blade" ]
- type: Item
size: Tiny
sprite: Objects/Weapons/Melee/e_dagger.rsi
- type: Tag
tags:
- Write
- type: DisarmMalus
malus: 0

- type: entity
parent: BaseItem
Expand Down
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,78 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation and modified by alzore_(Discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "e_sword"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "e_sword_blade",
"delays": [
[
0.1,
0.1
]
]
},
{
"name": "inhand-left-blade",
"directions": 4,
"delays": [
[
0.1,
0.1
],
[
0.1,
0.1
],
[
0.1,
0.1
],
[
0.1,
0.1
]
]
},
{
"name": "inhand-right-blade",
"directions": 4,
"delays": [
[
0.1,
0.1
],
[
0.1,
0.1
],
[
0.1,
0.1
],
[
0.1,
0.1
]
]
}
]
}
Loading