built single-resource based script for weapons, most are broken right now

This commit is contained in:
derek
2025-03-03 15:33:59 -06:00
parent 3e6ad2a56d
commit 15f32eff61
16 changed files with 1566 additions and 191 deletions

View File

@@ -1,15 +1,12 @@
extends RigidBody3D
var bullet_speed
var bullet_drop
var random_spread_amt
var bullet_damage
var instance_bullethole
var bullet_force_mod = 1.0
var distance_from_player
var player_position
var player_velocity
var bullet_active = true
var bullet_damage
var instance_bullethole
var bullet_force_mod
var bullet_speed
@onready var mesh = $Cylinder
@onready var particles = $GPUParticles3D
@@ -29,7 +26,7 @@ func _physics_process(delta):
angular_velocity = Vector3(0,0,0)
distance_from_player = abs(self.global_position - player_position)
var distance_from_player = abs(self.global_position - player_position)
if distance_from_player.length() > 2:
visible = true