BatteryWeaponPowerCell tweaks (#33500)
* BatteryWeaponPowerCell tweaks * add update ammo ev & shuttle guns tweaks * MilonPL requested changes * revert changes in OnPowerCellChanged * Add events to get charge info & change current charge --------- Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
@@ -33,9 +33,6 @@
|
||||
- type: Appearance
|
||||
- type: PowerCellVisuals
|
||||
- type: Riggable
|
||||
- type: HitscanBatteryAmmoProvider
|
||||
proto: RedLightLaser
|
||||
fireCost: 50
|
||||
|
||||
- type: entity
|
||||
name: potato battery
|
||||
@@ -290,9 +287,6 @@
|
||||
- type: Tag
|
||||
tags:
|
||||
- PowerCage
|
||||
- type: HitscanBatteryAmmoProvider
|
||||
proto: RedShuttleLaser
|
||||
fireCost: 150
|
||||
- type: ClothingSpeedModifier
|
||||
walkModifier: 0.8
|
||||
sprintModifier: 0.8
|
||||
|
||||
@@ -42,10 +42,12 @@
|
||||
- SemiAuto
|
||||
soundGunshot:
|
||||
path: /Audio/Weapons/Guns/Gunshots/laser.ogg
|
||||
- type: MagazineAmmoProvider
|
||||
- type: HitscanBatteryAmmoProvider
|
||||
proto: RedLightLaser
|
||||
fireCost: 50
|
||||
- type: ItemSlots
|
||||
slots:
|
||||
gun_magazine:
|
||||
cell_slot:
|
||||
name: Magazine
|
||||
startingItem: PowerCellSmall
|
||||
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
|
||||
@@ -54,12 +56,14 @@
|
||||
tags:
|
||||
- PowerCell
|
||||
- PowerCellSmall
|
||||
- type: PowerCellSlot
|
||||
cellSlotId: cell_slot
|
||||
- type: Appearance
|
||||
- type: StaticPrice
|
||||
price: 500
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
gun_magazine: !type:ContainerSlot
|
||||
cell_slot: !type:ContainerSlot
|
||||
|
||||
- type: entity
|
||||
id: BaseWeaponBatterySmall
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
containers:
|
||||
machine_board: !type:Container
|
||||
machine_parts: !type:Container
|
||||
gun_magazine: !type:ContainerSlot
|
||||
cell_slot: !type:ContainerSlot
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -80,9 +80,11 @@
|
||||
zeroVisible: true
|
||||
- type: Machine
|
||||
board: ShuttleGunSvalinnMachineGunCircuitboard
|
||||
- type: PowerCellSlot
|
||||
cellSlotId: cell_slot
|
||||
- type: ItemSlots
|
||||
slots:
|
||||
gun_magazine:
|
||||
cell_slot:
|
||||
name: Magazine
|
||||
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
|
||||
ejectSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
|
||||
@@ -90,7 +92,9 @@
|
||||
tags:
|
||||
- PowerCell
|
||||
- PowerCellSmall
|
||||
- type: MagazineAmmoProvider
|
||||
- type: HitscanBatteryAmmoProvider
|
||||
proto: RedLightLaser
|
||||
fireCost: 50
|
||||
|
||||
- type: entity
|
||||
id: ShuttleGunPerforator
|
||||
@@ -110,7 +114,7 @@
|
||||
containers:
|
||||
machine_board: !type:Container
|
||||
machine_parts: !type:Container
|
||||
gun_magazine: !type:ContainerSlot
|
||||
cell_slot: !type:ContainerSlot
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -133,16 +137,20 @@
|
||||
zeroVisible: true
|
||||
- type: Machine
|
||||
board: ShuttleGunPerforatorCircuitboard
|
||||
- type: PowerCellSlot
|
||||
cellSlotId: cell_slot
|
||||
- type: ItemSlots
|
||||
slots:
|
||||
gun_magazine:
|
||||
cell_slot:
|
||||
name: Magazine
|
||||
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
|
||||
ejectSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
|
||||
whitelist:
|
||||
tags:
|
||||
- PowerCage
|
||||
- type: MagazineAmmoProvider
|
||||
- type: HitscanBatteryAmmoProvider
|
||||
proto: RedShuttleLaser
|
||||
fireCost: 150
|
||||
|
||||
# ---- Launchers ----
|
||||
# naming: EXP (Explosion) + conventional power + suffix (g for Grenade, c for RPG Cartridge) + Name
|
||||
|
||||
Reference in New Issue
Block a user