Adds weapons (#48)
* Adds weapons - Adds melee weapons - Adds projectile weapons - Adds hitscan weapons (like lasers) * Adds a separate sprite for projectile weapons
This commit is contained in:
committed by
Pieter-Jan Briers
parent
63b5d83728
commit
128728bfcb
23
Resources/Prototypes/Entities/HitscanWeapons.yml
Normal file
23
Resources/Prototypes/Entities/HitscanWeapons.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
- type: entity
|
||||
name: "LASER"
|
||||
parent: BaseItem
|
||||
id: LaserItem
|
||||
components:
|
||||
- type: WearableAnimatedSprite
|
||||
notWornSprite: gun
|
||||
sprite: gun
|
||||
- type: Icon
|
||||
icon: gun
|
||||
- type: HitscanWeapon
|
||||
|
||||
- type: entity
|
||||
name: GUN
|
||||
parent: BaseItem
|
||||
id: GUNITEM
|
||||
components:
|
||||
- type: WearableAnimatedSprite
|
||||
notWornSprite: projectileweapon
|
||||
sprite: projectileweapon
|
||||
- type: Icon
|
||||
icon: gun
|
||||
- type: ProjectileWeapon
|
||||
17
Resources/Prototypes/Entities/Projectiles.yml
Normal file
17
Resources/Prototypes/Entities/Projectiles.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- type: entity
|
||||
id: ProjectileBullet
|
||||
name: ProjectileBullet
|
||||
components:
|
||||
- type: Transform
|
||||
- type: Sprite
|
||||
drawdepth: FloorPlaceable
|
||||
sprites:
|
||||
- projectilebullet
|
||||
- type: Icon
|
||||
icon: projectilebullet
|
||||
- type: BoundingBox
|
||||
- type: Physics
|
||||
edgeslide: false
|
||||
- type: Projectile
|
||||
- type: Collidable
|
||||
hard: false
|
||||
@@ -9,6 +9,7 @@
|
||||
sprite: wirecutter
|
||||
- type: Icon
|
||||
icon: wirecutter
|
||||
- type: MeleeWeapon
|
||||
|
||||
- type: entity
|
||||
name: Screwdriver
|
||||
@@ -21,6 +22,7 @@
|
||||
sprite: screwdriver
|
||||
- type: Icon
|
||||
icon: screwdriver
|
||||
- type: MeleeWeapon
|
||||
|
||||
- type: entity
|
||||
name: Welder
|
||||
@@ -33,6 +35,7 @@
|
||||
sprite: welder
|
||||
- type: Icon
|
||||
icon: welder
|
||||
- type: MeleeWeapon
|
||||
|
||||
- type: entity
|
||||
name: Wrench
|
||||
@@ -45,6 +48,7 @@
|
||||
sprite: wrench
|
||||
- type: Icon
|
||||
icon: wrench
|
||||
- type: MeleeWeapon
|
||||
|
||||
- type: entity
|
||||
name: Crowbar
|
||||
@@ -57,6 +61,7 @@
|
||||
sprite: crowbar
|
||||
- type: Icon
|
||||
icon: crowbar
|
||||
- type: MeleeWeapon
|
||||
|
||||
- type: entity
|
||||
name: Multitool
|
||||
|
||||
BIN
Resources/textures/Objects/gun.png
Normal file
BIN
Resources/textures/Objects/gun.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 282 B |
BIN
Resources/textures/Objects/laser.png
Normal file
BIN
Resources/textures/Objects/laser.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 153 B |
BIN
Resources/textures/Objects/projectilebullet.png
Normal file
BIN
Resources/textures/Objects/projectilebullet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 263 B |
BIN
Resources/textures/Objects/projectileweapon.png
Normal file
BIN
Resources/textures/Objects/projectileweapon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 308 B |
Reference in New Issue
Block a user