Base Weapons

Place in world, pick up and drop working on multiplayer
This commit is contained in:
Twirpytherobot
2025-11-15 16:03:38 +00:00
parent 791b1557c7
commit 86db6865b7
144 changed files with 3582 additions and 2 deletions
+23
View File
@@ -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