player tank model
This commit is contained in:
parent
d63b6a5663
commit
dc88120ff8
13 changed files with 215 additions and 21 deletions
|
|
@ -9,16 +9,12 @@
|
|||
[ext_resource type="Script" uid="uid://urxp3pg8g2mh" path="res://player/health_bar.gd" id="7_boad6"]
|
||||
[ext_resource type="Shader" uid="uid://cf3h3knluytmm" path="res://player/hp_outline.gdshader" id="8_rgyib"]
|
||||
[ext_resource type="Script" uid="uid://ban0rphntn10r" path="res://player/stamina_bar.gd" id="9_hg6s5"]
|
||||
[ext_resource type="PackedScene" uid="uid://54f44t3gniw2" path="res://models/tank.glb" id="10_8t03j"]
|
||||
|
||||
[sub_resource type="FastNoiseLite" id="FastNoiseLite_onrkg"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_onrkg"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_i3pqv"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_hqtel"]
|
||||
size = Vector3(2, 0.1, 0.1)
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_4flbx"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_g6k8r"]
|
||||
|
|
@ -44,17 +40,14 @@ height = 256
|
|||
fill = 1
|
||||
fill_from = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="Player" type="CharacterBody3D" unique_id=1904432250 node_paths=PackedStringArray("guns")]
|
||||
[node name="Player" type="CharacterBody3D" unique_id=1904432250 node_paths=PackedStringArray("cannon", "guns")]
|
||||
collision_layer = 2
|
||||
collision_mask = 13
|
||||
script = ExtResource("1_4flbx")
|
||||
shake_noise = SubResource("FastNoiseLite_onrkg")
|
||||
cannon = NodePath("Tank/Turret")
|
||||
guns = [NodePath("Guns/Sharpshooter"), NodePath("Guns/MiniGun"), NodePath("Guns/Mortar")]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=204505475]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
mesh = SubResource("BoxMesh_onrkg")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=918462062]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("BoxShape3D_i3pqv")
|
||||
|
|
@ -63,13 +56,6 @@ shape = SubResource("BoxShape3D_i3pqv")
|
|||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 0.53349644, 0.84580237, 0, -0.84580237, 0.53349644, 0, 20.150661, 11.874705)
|
||||
|
||||
[node name="Cannon" type="Node3D" parent="." unique_id=985210791]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Cannon" unique_id=1149215568]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0.75, 0)
|
||||
mesh = SubResource("BoxMesh_hqtel")
|
||||
|
||||
[node name="Reticle" type="MeshInstance3D" parent="." unique_id=242722222]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
|
@ -270,3 +256,9 @@ size = Vector3(6.55249, 50.942444, 6.388672)
|
|||
texture_albedo = SubResource("GradientTexture2D_8t03j")
|
||||
modulate = Color(0.89, 0.40049997, 0.40049997, 1)
|
||||
cull_mask = 1
|
||||
|
||||
[node name="Tank" parent="." unique_id=1376341535 instance=ExtResource("10_8t03j")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-0.6377325, 0, -5.5752345e-08, 0, 0.6377325, 0, 5.5752345e-08, 0, -0.6377325, 0, 0.75759906, 0)
|
||||
|
||||
[editable path="Tank"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue