[gd_scene load_steps=16 format=3 uid="uid://d4nj7piinyfug"] [ext_resource type="Script" path="res://assets/scripts/vehicles/scout/tank-base.gd" id="1_isgb6"] [ext_resource type="ArrayMesh" uid="uid://bmabm3fx72638" path="res://assets/meshes/scout/body.obj" id="1_v8pu3"] [ext_resource type="ArrayMesh" uid="uid://p0bp1swl0ytq" path="res://assets/meshes/scout/wheel.obj" id="2_4yh6h"] [ext_resource type="ArrayMesh" uid="uid://brkdedx6x0ral" path="res://assets/meshes/scout/turret.obj" id="4_qlrlb"] [ext_resource type="Script" path="res://assets/scripts/weapons/autocannon.gd" id="5_17fqp"] [ext_resource type="ArrayMesh" uid="uid://dg3d01n2gh18q" path="res://assets/meshes/scout/gun.obj" id="5_ymni4"] [ext_resource type="AudioStream" uid="uid://dphgof1shqpni" path="res://assets/sounds/autocannon.ogg" id="6_0iaip"] [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_5htdn"] points = PackedVector3Array(1, 0.249958, 2.49971, -1, 0.249958, 2.49971, 0.442639, 0.110577, 2.71994, 1, -0.250026, 2.49971, 1, 0.249958, -2.5, 0.877056, 0.520238, 1.42108, -1, -0.250026, 2.49971, -0.442835, 0.110577, 2.71994, -0.877251, 0.520238, 1.42108, -1, 0.249958, -2.5, 0.442639, -0.110759, 2.71994, 0.492561, -0.650746, 1.62393, 1, -0.250026, -2.5, 0.877056, 0.520238, -2.19291, -1, -0.250026, -2.5, -0.490211, -0.650746, 1.62393, -0.442835, -0.110759, 2.71994, -0.877251, 0.520238, -2.19291, 0.492561, -0.650746, -2.04167, -0.490211, -0.650746, -2.04167) [sub_resource type="Animation" id="Animation_0d1mk"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, -0.0747893, 0)] } [sub_resource type="Animation" id="Animation_rmni0"] resource_name = "recoil" length = 0.1 step = 0.01 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.0001, 0.0002, 0.01, 0.1), "transitions": PackedFloat32Array(1, 1, 1, 1, 1), "update": 0, "values": [Vector3(0, -0.0747893, 0), Vector3(0, -0.0747893, 0), Vector3(0, -0.0747893, 0), Vector3(0, -0.075, -0.05), Vector3(0, -0.0747893, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_2wk1f"] _data = { "RESET": SubResource("Animation_0d1mk"), "recoil": SubResource("Animation_rmni0") } [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_bn07k"] direction = Vector3(0, 0, 1) initial_velocity_min = 30.0 initial_velocity_max = 30.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_wct1a"] albedo_color = Color(0.870588, 0, 0.239216, 1) emission_enabled = true emission = Color(1, 0.8, 0.329412, 1) emission_energy_multiplier = 8.2 [sub_resource type="BoxMesh" id="BoxMesh_excgr"] material = SubResource("StandardMaterial3D_wct1a") size = Vector3(0.03, 0.03, 0.03) [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_3ot02"] points = PackedVector3Array(0.469761, -0.281246, 0.686087, -0.358221, -0.21159, -0.728951, -0.361235, 0.0354451, -0.734983, -0.677274, 0.114573, 0.672544, 0.718, 0.112891, -0.646666, 0.718, 0.112891, 0.666297, 0.69889, -0.285, -0.628923, -0.651606, -0.284749, 0.672477, -0.679969, 0.115272, -0.65551, -0.770648, -0.259232, -0.380802, 0.791654, -0.259008, 0.424488, 0.442311, 0.151923, 0.489267, -0.627885, -0.285, -0.653601, 0.613951, -0.0889078, 0.763567, -0.490543, 0.151146, -0.467911, -0.784174, 0.0852195, 0.432147, 0.803528, 0.0847422, -0.386435, -0.586513, -0.263038, 0.756839, 0.404805, -0.21159, -0.728951, 0.533303, 0.149884, -0.464967, -0.590062, 0.086426, 0.73612, -0.770648, -0.259232, 0.424962, -0.490543, 0.151146, 0.487541, -0.784174, 0.0852195, -0.387562, 0.69889, -0.285, 0.648554, 0.791654, -0.259008, -0.380499, 0.803528, 0.0847422, 0.430794, 0.608569, -0.263038, 0.756839, 0.40802, 0.0354451, -0.734983, 0.61508, 0.0871661, 0.739549, -0.566867, -0.0889078, 0.763567, 0.578004, -0.261088, -0.680369) [node name="VehicleBody3D" type="VehicleBody3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.91666, 0) mass = 5000.0 script = ExtResource("1_isgb6") _steer_speed = 0.5 _steer_limit = 0.5 _engine_force = 3500.0 [node name="body_mesh" type="MeshInstance3D" parent="."] mesh = ExtResource("1_v8pu3") [node name="body_collmesh" type="CollisionShape3D" parent="."] shape = SubResource("ConvexPolygonShape3D_5htdn") [node name="whl_fl" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.934518, 1.28716) use_as_traction = true use_as_steering = true wheel_rest_length = 0.3 wheel_friction_slip = 1.0 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 25000.0 [node name="mesh" type="MeshInstance3D" parent="whl_fl"] mesh = ExtResource("2_4yh6h") [node name="whl_bl" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.934518, -1.4) use_as_traction = true wheel_rest_length = 0.3 wheel_friction_slip = 5.0 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 20000.0 [node name="mesh" type="MeshInstance3D" parent="whl_bl"] mesh = ExtResource("2_4yh6h") [node name="whl_br" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.934518, -1.4) use_as_traction = true wheel_rest_length = 0.3 wheel_friction_slip = 5.0 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 20000.0 [node name="mesh" type="MeshInstance3D" parent="whl_br"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) mesh = ExtResource("2_4yh6h") [node name="whl_fr" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.934518, 1.28716) use_as_traction = true use_as_steering = true wheel_rest_length = 0.3 wheel_friction_slip = 1.0 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 25000.0 [node name="mesh" type="MeshInstance3D" parent="whl_fr"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) mesh = ExtResource("2_4yh6h") [node name="turret" type="MeshInstance3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.829618, 0) mesh = ExtResource("4_qlrlb") [node name="AudioListener3D" type="AudioListener3D" parent="turret"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.19, 0) current = true [node name="autocannon" type="Node3D" parent="turret"] script = ExtResource("5_17fqp") _shots_per_minute = 150 [node name="cannon" type="MeshInstance3D" parent="turret/autocannon"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0747893, 0) mesh = ExtResource("5_ymni4") skeleton = NodePath("../..") [node name="recoil_anim" type="AnimationPlayer" parent="turret/autocannon"] root_node = NodePath("../cannon") libraries = { "": SubResource("AnimationLibrary_2wk1f") } [node name="cam_ext" type="Camera3D" parent="turret/autocannon"] transform = Transform3D(-1, -4.76138e-08, 7.33189e-08, 0, 0.838671, 0.544639, -8.74228e-08, 0.544639, -0.838671, 0, 1.34621, -3.761) [node name="muzzle" type="Node3D" parent="turret/autocannon"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0747893, 2.59087) [node name="aimpoint" type="Node3D" parent="turret/autocannon"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0747893, 10) [node name="cam_int" type="Camera3D" parent="turret/autocannon"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0.24, -0.0747893, 0.805) [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="turret/autocannon"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0747893, 2.055) stream = ExtResource("6_0iaip") [node name="GPUParticles3D" type="GPUParticles3D" parent="turret/autocannon"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0747893, 2.05) emitting = false lifetime = 0.06 one_shot = true explosiveness = 1.0 process_material = SubResource("ParticleProcessMaterial_bn07k") draw_pass_1 = SubResource("BoxMesh_excgr") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.829618, 0) shape = SubResource("ConvexPolygonShape3D_3ot02")