added projectile class and tweaked weapon uberscript

This commit is contained in:
derek
2025-03-04 12:01:14 -06:00
parent 8fbd79eac3
commit cc1500e7fd
16 changed files with 922 additions and 166 deletions

View File

@@ -1,4 +1,4 @@
extends RigidBody3D
extends Projectile
@export var max_bounces : int = 10
@@ -6,11 +6,6 @@ extends RigidBody3D
@onready var mesh: MeshInstance3D = $MeshInstance3D
@onready var material = mesh.get_surface_override_material(0)
var bullet_speed
var player_velocity
var bullet_force_mod
var bullet_damage
var player_position
var bounces = 0
var start_time
var end_time