58 lines
2.2 KiB
Text
58 lines
2.2 KiB
Text
[gd_scene load_steps=11 format=2]
|
|
|
|
[ext_resource path="res://Objects/Ai-tank/tank00.gd" type="Script" id=1]
|
|
[ext_resource path="res://Objects/Ai-tank/model/Bottom_tank_blender_enemy.glb" type="PackedScene" id=2]
|
|
[ext_resource path="res://Objects/Ai-tank/model/tank_top_blender_enemy.glb" type="PackedScene" id=3]
|
|
[ext_resource path="res://Audio/TANK_Shoot_07_mono.wav" type="AudioStream" id=4]
|
|
|
|
[sub_resource type="BoxShape" id=1]
|
|
extents = Vector3( 1.29, 1, 2.428 )
|
|
|
|
[sub_resource type="BoxShape" id=2]
|
|
|
|
[sub_resource type="CubeMesh" id=3]
|
|
|
|
[sub_resource type="SpatialMaterial" id=4]
|
|
flags_transparent = true
|
|
albedo_color = Color( 1, 1, 1, 0.117647 )
|
|
|
|
[sub_resource type="CubeMesh" id=5]
|
|
|
|
[sub_resource type="SpatialMaterial" id=6]
|
|
flags_transparent = true
|
|
albedo_color = Color( 1, 0, 0, 0.529412 )
|
|
|
|
[node name="AITank00" type="KinematicBody"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="CollisionShapeBottom" type="CollisionShape" parent="." groups=["player", "tank"]]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Bottom_tank" parent="CollisionShapeBottom" instance=ExtResource( 2 )]
|
|
transform = Transform( -2.18557e-08, 0, 0.5, 0, 0.5, 0, -0.5, 0, -2.18557e-08, 0, -0.366518, 0.2957 )
|
|
|
|
[node name="CollisionShapeTop" type="CollisionShape" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.572825, 0 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Top_tank" parent="CollisionShapeTop" instance=ExtResource( 3 )]
|
|
transform = Transform( -3.0598e-08, 0, 0.7, 0, 0.7, 0, -0.7, 0, -3.0598e-08, 0, 0.00615245, -0.303923 )
|
|
|
|
[node name="BulletGenerator" type="Position3D" parent="CollisionShapeTop/Top_tank"]
|
|
transform = Transform( -6.24448e-08, 0, -1.42857, 0, 1.42857, 0, 1.42857, 0, -6.24448e-08, 5.41918, -0.236235, -0.00470019 )
|
|
|
|
[node name="TankAI" type="Node" parent="."]
|
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource( 4 )
|
|
unit_size = 20.0
|
|
|
|
[node name="HealthBarBack" type="CSGMesh" parent="."]
|
|
transform = Transform( 2.1, 0, 0, 0, 0.069, 0, 0, 0, 0.343, 0, 2.6666, -2.69651 )
|
|
mesh = SubResource( 3 )
|
|
material = SubResource( 4 )
|
|
|
|
[node name="HealthBar" type="CSGMesh" parent="."]
|
|
transform = Transform( 2, 0, 0, 0, 0.039, 0, 0, 0, 0.276, 0.000887275, 2.78065, -2.70032 )
|
|
mesh = SubResource( 5 )
|
|
material = SubResource( 6 )
|