Fancy guns. (#152)
This commit is contained in:
committed by
GitHub
parent
f0aec83be4
commit
0882435293
@@ -55,6 +55,8 @@
|
||||
- type: Eye
|
||||
zoom: 0.5, 0.5
|
||||
|
||||
- type: CameraRecoil
|
||||
|
||||
- type: entity
|
||||
id: MobObserver
|
||||
name: Observer
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
- type: entity
|
||||
id: ProjectileBullet
|
||||
name: ProjectileBullet
|
||||
description: If you can see this you're dead!
|
||||
components:
|
||||
- type: Sprite
|
||||
directional: false
|
||||
texture: Objects/projectilebullet.png
|
||||
#rotation: -180
|
||||
|
||||
- type: Icon
|
||||
texture: Objects/projectilebullet.png
|
||||
- type: BoundingBox
|
||||
aabb: -0.2,-0.2,0.2,0.2
|
||||
- type: Physics
|
||||
edgeslide: false
|
||||
- type: Projectile
|
||||
- type: Collidable
|
||||
hard: false
|
||||
|
||||
@@ -19,28 +19,6 @@
|
||||
sprite: Objects/laser_retro.rsi
|
||||
prefix: 100
|
||||
|
||||
|
||||
- type: entity
|
||||
name: C-20r Sub Machine Gun
|
||||
parent: BaseItem
|
||||
id: GUNITEM
|
||||
description: A rooty tooty point and shooty
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/c20r.rsi
|
||||
state: c20r-20
|
||||
- type: Icon
|
||||
sprite: Objects/c20r.rsi
|
||||
state: c20r-20
|
||||
- type: RangedWeapon
|
||||
automatic: true
|
||||
firerate: 8
|
||||
- type: ProjectileWeapon
|
||||
- type: Item
|
||||
Size: 24
|
||||
sprite: Objects/c20r.rsi
|
||||
|
||||
|
||||
- type: entity
|
||||
name: Spear
|
||||
parent: BaseItem
|
||||
|
||||
50
Resources/Prototypes/Entities/weapons/ammunition.yml
Normal file
50
Resources/Prototypes/Entities/weapons/ammunition.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
- type: entity
|
||||
id: magazine_12mm
|
||||
name: "12mm magazine"
|
||||
parent: BaseItem
|
||||
components:
|
||||
- type: BallisticMagazine
|
||||
caliber: A12mm
|
||||
magazine: A12mm
|
||||
capacity: 20
|
||||
- type: Icon
|
||||
sprite: Objects/items/magazine_12mm.rsi
|
||||
state: 12mm-0
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Objects/items/magazine_12mm.rsi
|
||||
state: 12mm-0
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: BallisticMagazineVisualizer2D
|
||||
base_state: 12mm
|
||||
steps: 11
|
||||
|
||||
- type: entity
|
||||
id: magazine_12mm_filled
|
||||
name: "12mm magazine"
|
||||
parent: magazine_12mm
|
||||
components:
|
||||
- type: BallisticMagazine
|
||||
fill: ammo_casing_12mm
|
||||
- type: Icon
|
||||
state: 12mm-10
|
||||
- type: Sprite
|
||||
state: 12mm-10
|
||||
|
||||
- type: entity
|
||||
id: ammo_casing_12mm
|
||||
name: "12mm bullet"
|
||||
parent: BaseItem
|
||||
components:
|
||||
- type: BallisticBullet
|
||||
caliber: A12mm
|
||||
projectile: ProjectileBullet
|
||||
- type: Sprite
|
||||
sprite: Objects/items/ammo_casing.rsi
|
||||
state: s-casing
|
||||
drawdepth: FloorObjects
|
||||
- type: Icon
|
||||
sprite: Objects/items/ammo_casing.rsi
|
||||
state: s-casing
|
||||
|
||||
35
Resources/Prototypes/Entities/weapons/guns.yml
Normal file
35
Resources/Prototypes/Entities/weapons/guns.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
- type: entity
|
||||
name: C-20r Sub Machine Gun
|
||||
parent: BaseItem
|
||||
id: smg_c20r
|
||||
description: A rooty tooty point and shooty.
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Objects/c20r.rsi
|
||||
state: c20r-5
|
||||
- type: Icon
|
||||
sprite: Objects/c20r.rsi
|
||||
state: c20r-5
|
||||
- type: RangedWeapon
|
||||
automatic: true
|
||||
firerate: 8
|
||||
- type: BallisticMagazineWeapon
|
||||
caliber: A12mm
|
||||
magazine: A12mm
|
||||
default_magazine: magazine_12mm_filled
|
||||
auto_eject_magazine: true
|
||||
sound_auto_eject: /Audio/items/weapons/smg_empty_alarm.ogg
|
||||
sound_magazine_in: /Audio/items/weapons/smg_magin.ogg
|
||||
sound_magazine_out: /Audio/items/weapons/smg_magout.ogg
|
||||
sound_empty: /Audio/items/weapons/gun_empty.ogg
|
||||
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: BallisticMagazineWeaponVisualizer2D
|
||||
base_state: c20r
|
||||
steps: 6
|
||||
|
||||
- type: Item
|
||||
Size: 24
|
||||
sprite: Objects/c20r.rsi
|
||||
19
Resources/Prototypes/Entities/weapons/projectiles.yml
Normal file
19
Resources/Prototypes/Entities/weapons/projectiles.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
- type: entity
|
||||
id: ProjectileBullet
|
||||
name: ProjectileBullet
|
||||
description: If you can see this you're dead!
|
||||
components:
|
||||
- type: Sprite
|
||||
directional: false
|
||||
texture: Objects/projectilebullet.png
|
||||
#rotation: -180
|
||||
|
||||
- type: Icon
|
||||
texture: Objects/projectilebullet.png
|
||||
- type: BoundingBox
|
||||
aabb: -0.2,-0.2,0.2,0.2
|
||||
- type: Physics
|
||||
edgeslide: false
|
||||
- type: Projectile
|
||||
- type: Collidable
|
||||
hard: false
|
||||
Reference in New Issue
Block a user