weapon system rework

This commit is contained in:
Rendo 2025-11-26 16:32:09 +05:00
commit 30b01100f0
27 changed files with 352 additions and 190 deletions

View file

@ -1,10 +1,48 @@
[gd_scene load_steps=5 format=3 uid="uid://cqrh2cc7m2i7f"]
[gd_scene load_steps=8 format=3 uid="uid://cqrh2cc7m2i7f"]
[ext_resource type="Environment" uid="uid://d0cfgtx2yxw13" path="res://environments/prototype_environment.tres" id="1_i6jab"]
[ext_resource type="Script" uid="uid://ypgm3aplt78m" path="res://scripts/multiplayer/player_spawner.gd" id="4_pi0y7"]
[ext_resource type="Material" uid="uid://bx3f5vx71ynh5" path="res://materials/OrangeMat.tres" id="4_y6i55"]
[ext_resource type="Material" uid="uid://mlha6r17v2en" path="res://materials/Bluemat.tres" id="5_bno23"]
[sub_resource type="Animation" id="Animation_y6i55"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CSGCombiner3D/CSGBox3D7:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(-10.610777, 3.2577968, -10.344306)]
}
[sub_resource type="Animation" id="Animation_pi0y7"]
resource_name = "main"
length = 5.0
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CSGCombiner3D/CSGBox3D7:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 5),
"transitions": PackedFloat32Array(-2, -2),
"update": 0,
"values": [Vector3(-10.610777, 3.2577968, -10.344306), Vector3(-13.402859, 6.188627, 10.213315)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_bno23"]
_data = {
&"RESET": SubResource("Animation_y6i55"),
&"main": SubResource("Animation_pi0y7")
}
[node name="PrototypeScene" type="Node3D"]
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
@ -18,22 +56,46 @@ environment = ExtResource("1_i6jab")
use_collision = true
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.577414, 2.6, 1.8908081)
use_collision = true
size = Vector3(6.901001, 1, 4.520691)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.774414, 2.211084, -2.7798462)
size = Vector3(1, 3.9007568, 10.341309)
material = ExtResource("5_bno23")
[node name="CSGBox3D3" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(0.6651913, 0, -0.746673, 0, 1, 0, 0.746673, 0, 0.6651913, -3.2896764, 2.2110848, -14.45882)
size = Vector3(10.241699, 3.9007568, 10.341309)
material = ExtResource("5_bno23")
[node name="CSGBox3D7" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(0.6651913, 0, -0.746673, 0, 1, 0, 0.746673, 0, 0.6651913, -10.610777, 3.2577968, -10.344306)
size = Vector3(4.6240234, 1.4752808, 4.2929688)
material = ExtResource("5_bno23")
[node name="CSGBox3D4" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(0.2536462, 0.36299103, -0.8966053, -0.098810926, 0.9317926, 0.3492834, 0.962237, 0, 0.27221313, 17.497704, 2.2110848, -14.45882)
size = Vector3(10.241699, 3.9007568, 10.341309)
material = ExtResource("5_bno23")
[node name="CSGBox3D5" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(0.2536462, 0.36299103, -0.8966053, -0.098810926, 0.9317926, 0.3492834, 0.962237, 0, 0.27221313, 14.175301, -0.97636676, 16.262775)
size = Vector3(10.241699, 8.579285, 15.858276)
material = ExtResource("5_bno23")
[node name="CSGBox3D6" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(0.2464775, -0.4244365, -0.87126493, 0.11553718, 0.90545774, -0.40840852, 0.9622371, -1.5334081e-09, 0.27221313, -19.380054, -0.97636676, 16.262775)
size = Vector3(10.241699, 8.579285, 15.858276)
material = ExtResource("5_bno23")
[node name="CSGBox3D" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.774414, 0, 1.8908081)
material_override = ExtResource("5_bno23")
use_collision = true
size = Vector3(22.206055, 1, 21.818726)
size = Vector3(70.1814, 1, 50.408203)
material = ExtResource("4_y6i55")
[node name="CSGPolygon3D" type="CSGPolygon3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.49652505, 4.840562)
polygon = PackedVector2Array(0, 0, -0.061755046, 1.5814729, 2, 0)
depth = 2.45
transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -3.3137877, 0.02481842, -3.7979093)
polygon = PackedVector2Array(1.1265539, -0.16863012, -3.9689837, 4.1396155, -6.226393, 4.152759, -7.117619, 0.24168777)
depth = 2.64
material = ExtResource("5_bno23")
[node name="Spawner" type="Node3D" parent="."]
@ -43,3 +105,9 @@ script = ExtResource("4_pi0y7")
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("uid://dpsr6ug3pkb40", "uid://cheu6vds21er7")
spawn_path = NodePath("..")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_bno23")
}
autoplay = "main"