weapon slots and loadout done

This commit is contained in:
bee
2026-07-07 23:04:20 +02:00
parent a40d0bfdd3
commit c4f2c0a202
21 changed files with 227 additions and 3 deletions
+15
View File
@@ -1,6 +1,9 @@
[gd_scene format=3 uid="uid://cieiwihia8t2w"]
[ext_resource type="Script" uid="uid://c0n1x050jvspr" path="res://scripts/boat.gd" id="1_7h74f"]
[ext_resource type="Script" uid="uid://vccbk7tbujhn" path="res://scripts/resource_definitions/weapon_def.gd" id="2_anwow"]
[ext_resource type="Resource" uid="uid://cie5thl0u84ly" path="res://resources/weapons/mark12.tres" id="3_henu8"]
[ext_resource type="Script" uid="uid://ba5ums3xj42h" path="res://scripts/weapon_slot.gd" id="4_1jsln"]
[sub_resource type="BoxMesh" id="BoxMesh_crate"]
size = Vector3(1, 1, 5)
@@ -16,6 +19,10 @@ size = Vector3(1, 1, 5)
collision_layer = 2
mass = 5.0
script = ExtResource("1_7h74f")
loadout = Dictionary[StringName, ExtResource("2_anwow")]({
&"BowMount": ExtResource("3_henu8"),
&"SternMount": ExtResource("3_henu8")
})
buoyancy = 4.0
full_force_depth = 0.8
probe_extents = Vector3(0.35, 0, 2.25)
@@ -27,3 +34,11 @@ surface_material_override/0 = SubResource("Material_crate")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=18200711]
shape = SubResource("BoxShape_crate")
[node name="BowMount" type="Node3D" parent="." unique_id=1196033377]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.56350744, -1.6800777)
script = ExtResource("4_1jsln")
[node name="SternMount" type="Node3D" parent="." unique_id=909881913]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0.5398402, 2.0672112)
script = ExtResource("4_1jsln")