Base Weapons
Place in world, pick up and drop working on multiplayer
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
extends Resource
|
||||
class_name WeaponData
|
||||
|
||||
## Resource that stores weapon statistics and properties
|
||||
## Can be reused for both equipped weapons and world pickups
|
||||
|
||||
@export_category("Weapon Info")
|
||||
@export var weapon_name: String = "Weapon"
|
||||
@export_multiline var description: String = ""
|
||||
|
||||
@export_category("Combat Stats")
|
||||
@export var damage: float = 10.0
|
||||
@export var attack_range: float = 3.0
|
||||
@export var attack_cooldown: float = 0.5
|
||||
@export var attack_animation: String = "Attack1" # Animation to play when attacking
|
||||
|
||||
@export_category("Visual")
|
||||
@export var mesh_scene: PackedScene # The 3D mesh for this weapon
|
||||
@export var icon: Texture2D # Optional icon for UI
|
||||
|
||||
@export_category("Physics (for world pickups)")
|
||||
@export var pickup_radius: float = 1.5 # How close player needs to be to pick up
|
||||
@export var weight: float = 1.0 # Mass when dropped in world
|
||||
Reference in New Issue
Block a user