add: base system + light module
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
- Back
|
||||
- suitStorage
|
||||
- type: AmmoCounter
|
||||
- type: WeaponModules
|
||||
- type: Gun
|
||||
fireRate: 5
|
||||
selectedMode: FullAuto
|
||||
@@ -32,7 +33,7 @@
|
||||
startingItem: MagazineLightRifle
|
||||
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
|
||||
ejectSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
|
||||
priority: 2
|
||||
priority: 3
|
||||
whitelist:
|
||||
tags:
|
||||
- MagazineLightRifle
|
||||
@@ -43,10 +44,17 @@
|
||||
whitelist:
|
||||
tags:
|
||||
- CartridgeLightRifle
|
||||
gun_modules:
|
||||
name: Modules
|
||||
priority: 2
|
||||
whitelist:
|
||||
tags:
|
||||
- BaseModule
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
gun_magazine: !type:ContainerSlot
|
||||
gun_chamber: !type:ContainerSlot
|
||||
gun_modules: !type:ContainerSlot
|
||||
- type: StaticPrice
|
||||
price: 500
|
||||
|
||||
@@ -88,10 +96,17 @@
|
||||
whitelist:
|
||||
tags:
|
||||
- CartridgeLightRifle
|
||||
gun_modules:
|
||||
name: Modules
|
||||
priority: 2
|
||||
whitelist:
|
||||
tags:
|
||||
- BaseModule
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
gun_magazine: !type:ContainerSlot
|
||||
gun_chamber: !type:ContainerSlot
|
||||
gun_modules: !type:ContainerSlot
|
||||
- type: MagazineVisuals
|
||||
magState: mag
|
||||
steps: 1
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
- type: entity
|
||||
id: BaseModule
|
||||
parent: BaseItem
|
||||
abstract: true
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: White/Objects/Weapons/modules.rsi
|
||||
- type: Tag
|
||||
tags:
|
||||
- BaseModule
|
||||
- type: Item
|
||||
sprite: White/Objects/Weapons/modules.rsi
|
||||
size: Small
|
||||
shape:
|
||||
- 0,0,1,1
|
||||
layers:
|
||||
- state: base
|
||||
map: ["enum.GunVisualLayers.Base"]
|
||||
- state: mag-1
|
||||
map: ["enum.GunVisualLayers.Mag"]
|
||||
- type: Appearance
|
||||
|
||||
# modules
|
||||
- type: entity
|
||||
id: LightModule
|
||||
name: "light module for rifle"
|
||||
parent: BaseModule
|
||||
components:
|
||||
- type: Item
|
||||
- type: Sprite
|
||||
state: light
|
||||
- type: Appearance
|
||||
@@ -54,3 +54,6 @@
|
||||
|
||||
- type: Tag
|
||||
id: MindSlave
|
||||
|
||||
- type: Tag
|
||||
id: BaseModule
|
||||
|
||||
BIN
Resources/Textures/White/Objects/Weapons/modules.rsi/light.png
Normal file
BIN
Resources/Textures/White/Objects/Weapons/modules.rsi/light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Maked by CaypenNow",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "light"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user