Adds force-gun (#16561)

This commit is contained in:
metalgearsloth
2023-05-19 17:10:31 +10:00
committed by GitHub
parent eb94a785f9
commit 4efb41aa58
26 changed files with 373 additions and 76 deletions

View File

@@ -186,6 +186,49 @@
True: { visible: true }
False: { visible: false }
- type: entity
name: force gun
parent:
- BaseItem
- PowerCellSlotMediumItem
id: WeaponForceGun
description: Manipulates gravity around objects to fling them at high velocities.
components:
- type: ForceGun
frequency: 15
dampingRatio: 4
massLimit: 50
lineColor: "#18a2d5"
soundLaunch:
path: /Audio/Weapons/soup.ogg
params:
volume: 2
- type: PowerCellDraw
- type: Sprite
sprite: Objects/Weapons/Guns/Launchers/force_gun.rsi
layers:
- state: base
- state: base-unshaded
map: [ "unshaded" ]
shader: unshaded
visible: false
- type: ToggleableLightVisuals
spriteLayer: unshaded
inhandVisuals:
left:
- state: inhand-left-unshaded
shader: unshaded
right:
- state: inhand-right-unshaded
shader: unshaded
- type: Appearance
- type: GenericVisualizer
visuals:
enum.TetherVisualsStatus.Key:
unshaded:
True: { visible: true }
False: { visible: false }
# Admeme
- type: entity
name: tether gun
@@ -226,6 +269,48 @@
True: { visible: true }
False: { visible: false }
- type: entity
name: force gun
parent: BaseItem
id: WeaponForceGunAdmin
suffix: Admin
description: Manipulates gravity around objects to fling them at high velocities.
components:
- type: ForceGun
canTetherAlive: true
canUnanchor: true
maxForce: 10000
massLimit: 10000
frequency: 15
dampingRatio: 4
throwForce: 50
throwDistance: 100
lineColor: "#18a2d5"
- type: Sprite
sprite: Objects/Weapons/Guns/Launchers/force_gun.rsi
layers:
- state: base
- state: base-unshaded
map: [ "unshaded" ]
shader: unshaded
visible: false
- type: ToggleableLightVisuals
spriteLayer: unshaded
inhandVisuals:
left:
- state: inhand-left-unshaded
shader: unshaded
right:
- state: inhand-right-unshaded
shader: unshaded
- type: Appearance
- type: GenericVisualizer
visuals:
enum.TetherVisualsStatus.Key:
unshaded:
True: { visible: true }
False: { visible: false }
- type: entity
name: meteor launcher
parent: WeaponLauncherMultipleRocket

View File

@@ -239,6 +239,7 @@
- ClothingShoesBootsMag
- NodeScanner
- HolofanProjector
- WeaponForceGun
- WeaponTetherGun
- ClothingBackpackHolding
- ClothingBackpackSatchelHolding

View File

@@ -100,6 +100,15 @@
Plastic: 750
Plasma: 1000
- type: latheRecipe
id: WeaponForceGun
result: WeaponForceGun
completetime: 5
materials:
Steel: 500
Glass: 400
Silver: 200
- type: latheRecipe
id: WeaponTetherGun
result: WeaponTetherGun

View File

@@ -171,4 +171,5 @@
tier: 3
cost: 10000
recipeUnlocks:
- WeaponForceGun
- WeaponTetherGun