weapon base exports
This commit is contained in:
parent
708f11c0f4
commit
39fb87f62d
3 changed files with 30 additions and 0 deletions
14
base/scripts/weapons/weapon_base.gd
Normal file
14
base/scripts/weapons/weapon_base.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends Node3D
|
||||
|
||||
class_name Weapon
|
||||
|
||||
@export var barrel: Barrel
|
||||
@export var uses_hands: Array[CommandQueue.Side]
|
||||
|
||||
@export var max_ammo: int = 7
|
||||
var ammo: int = max_ammo
|
||||
@export var ammo_consumption: int = 1
|
||||
|
||||
@export var fire_mode: BaseFireMode
|
||||
## Weapon animation library. Should contain "static", "fire", "reload" animations
|
||||
@export var animation_library: AnimationLibrary
|
Loading…
Add table
Add a link
Reference in a new issue