feat: implemented rifle reload with placeholder anim

This commit is contained in:
Sara 2025-08-06 18:45:02 +02:00
parent 150231c67c
commit 68abfdd383
25 changed files with 26775 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=6 format=3 uid="uid://snjgu4yp5swd"]
[ext_resource type="PackedScene" uid="uid://cfgwif53qypko" path="res://objects/weapons/revolver.tscn" id="1_eqqp1"]
[ext_resource type="PackedScene" uid="uid://ce40pq785yoyi" path="res://objects/weapons/rifle.tscn" id="1_eqqp1"]
[sub_resource type="SphereShape3D" id="SphereShape3D_eqqp1"]
radius = 0.2

View file

@ -11,6 +11,8 @@ func trigger() -> void:
[node name="Revolver" type="Revolver" node_paths=PackedStringArray("anim")]
anim = NodePath("revolver/AnimationPlayer")
max_ammo = 6
loaded_ammo = 6
single_action_spread = 0.003
double_action_spread = 0.02

View file

@ -11,6 +11,8 @@ func trigger() -> void:
[node name="Rifle" type="Rifle" node_paths=PackedStringArray("anim")]
anim = NodePath("rifle/AnimationPlayer")
max_ammo = 10
loaded_ammo = 10
[node name="rifle" parent="." instance=ExtResource("1_afgyw")]