resized enemy casing
This commit is contained in:
41
assets/Enemy_casing.tscn
Normal file
41
assets/Enemy_casing.tscn
Normal file
@@ -0,0 +1,41 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://5jhwtkdggfle"]
|
||||
|
||||
[ext_resource type="Script" path="res://assets/casing_2.gd" id="1_dxvh8"]
|
||||
[ext_resource type="PackedScene" uid="uid://bv0sfqdgwa85p" path="res://assets/Models/casing.blend" id="2_ba08p"]
|
||||
[ext_resource type="AudioStream" uid="uid://c76b5enfeodn5" path="res://assets/Audio/coin-drop-SBA-300024590.wav" id="3_2vc1o"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ejwa0"]
|
||||
margin = 0.001
|
||||
height = 0.248374
|
||||
radius = 0.062995
|
||||
|
||||
[node name="enemycasing" type="RigidBody3D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 7
|
||||
mass = 0.1
|
||||
continuous_cd = true
|
||||
max_contacts_reported = 1
|
||||
contact_monitor = true
|
||||
linear_damp = 0.1
|
||||
angular_damp = 0.1
|
||||
script = ExtResource("1_dxvh8")
|
||||
|
||||
[node name="casing2" parent="." instance=ExtResource("2_ba08p")]
|
||||
transform = Transform3D(0.010472, 1.84078e-05, -2.99998, 2.99998, 0.00523586, 0.010472, 0.0052359, -3, -1.31133e-07, 0, 0, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(-0.00106233, -0.000701004, -0.999999, 0.999999, -0.000431764, -0.00106203, -0.000431026, -1, 0.000701458, -7.7486e-06, 0.000259597, -3.74019e-06)
|
||||
shape = SubResource("CylinderShape3D_ejwa0")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 30.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="DropSound" type="AudioStreamPlayer3D" parent="."]
|
||||
stream = ExtResource("3_2vc1o")
|
||||
unit_size = 1.0
|
||||
bus = &"SFX"
|
||||
|
||||
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
@@ -4,7 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dmyn4eq2r12ue" path="res://assets/Models/spider1.albedoRAW.png" id="1_di6b8"]
|
||||
[ext_resource type="PackedScene" uid="uid://h5ojldugfyyu" path="res://assets/bullet_enemy.tscn" id="2_aew5r"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqhke14ulten2" path="res://assets/Models/spider1.roughnessRAW.png" id="2_pntfg"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1gdehrsytlkk" path="res://assets/casing_2.tscn" id="3_6esjv"]
|
||||
[ext_resource type="PackedScene" uid="uid://5jhwtkdggfle" path="res://assets/Enemy_casing.tscn" id="3_e5ft5"]
|
||||
[ext_resource type="Texture2D" uid="uid://c54kwbix1mo58" path="res://assets/Models/spider1.turret.png" id="3_npupg"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvi0upsh0e1mu" path="res://assets/Models/spider1.turret.roughness1.png" id="4_hb265"]
|
||||
[ext_resource type="Texture2D" uid="uid://r7awur11yerj" path="res://assets/Models/spider1.gunbarrel.albedo.png" id="5_dtcjr"]
|
||||
@@ -588,7 +588,7 @@ radius = 0.25
|
||||
[node name="spider" type="CharacterBody3D"]
|
||||
script = ExtResource("1_7e7fe")
|
||||
bullet = ExtResource("2_aew5r")
|
||||
casing = ExtResource("3_6esjv")
|
||||
casing = ExtResource("3_e5ft5")
|
||||
bullet_speed = 75
|
||||
bullet_drop = 0.01
|
||||
|
||||
|
||||
@@ -1116,8 +1116,6 @@ gun_2 = ExtResource("3_sxsd3")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_f87c2")]
|
||||
transform = Transform3D(-0.866025, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866025, -16.0295, 1.4435, 12.1166)
|
||||
AUDIO = false
|
||||
MAX_STAMINA = 300
|
||||
weapon_sway_amount = 0.07
|
||||
weapon_rotation_amount = 0.07
|
||||
|
||||
@@ -1130,6 +1128,7 @@ environment = SubResource("Environment_q2cfn")
|
||||
camera_attributes = SubResource("CameraAttributesPractical_svyyv")
|
||||
|
||||
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0157394, 0.0097332, 0.00448036)
|
||||
navigation_mesh = SubResource("NavigationMesh_1kybg")
|
||||
|
||||
[node name="building7" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -77,8 +77,8 @@ func _process(delta):
|
||||
distance_to_player = abs(self.global_position - player.global_position)
|
||||
|
||||
|
||||
#if distance_to_player.x > 4 or distance_to_player.z > 4:
|
||||
move_and_slide()
|
||||
if distance_to_player.x > 4 or distance_to_player.z > 4:
|
||||
move_and_slide()
|
||||
|
||||
|
||||
func _on_area_3d_body_part_hit(dam,bullet_damage):
|
||||
|
||||
Reference in New Issue
Block a user