weapon slots and loadout done
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class_name AmmoDef
|
||||
extends Resource
|
||||
|
||||
## Data-only description of a weapon type. Never mutated at runtime.
|
||||
|
||||
@export var display_name := "Ammo Shell"
|
||||
@export var projectile_scene: PackedScene
|
||||
@export var damage := 10.0
|
||||
@export var muzzle_speed := 30.0 # m/s, imparted at spawn
|
||||
@export var gravity_scale := 1.0 # 1.0 = arcs like a real cannonball
|
||||
@export var lifetime := 8.0 # seconds before self-despawn
|
||||
@@ -0,0 +1 @@
|
||||
uid://k4add7rmdxw3
|
||||
@@ -0,0 +1,15 @@
|
||||
class_name WeaponDef
|
||||
extends Resource
|
||||
|
||||
## Data-only description of a weapon type. Never mutated at runtime.
|
||||
|
||||
enum Size {ANCILLIARY, SMALL, MEDIUM, LARGE, HUGE}
|
||||
enum Type {BALLISTIC, ENERGY, MISSILE, TORPEDO}
|
||||
|
||||
@export var display_name := "Weapon Cannon"
|
||||
@export var weapon_scene: PackedScene # the mounted body — consumed by slots in Part 3
|
||||
@export var ammo: AmmoDef # what it fires
|
||||
@export var fire_interval := 1.5 # seconds between shots
|
||||
@export var muzzle_speed_scale := 1.0 # multiplier over ammo.muzzle_speed (barrel length)
|
||||
@export var size := Size.MEDIUM
|
||||
@export var type := Type.BALLISTIC
|
||||
@@ -0,0 +1 @@
|
||||
uid://vccbk7tbujhn
|
||||
Reference in New Issue
Block a user