First_Person_Slapper/Scenes/Enemy.tscn

120 lines
3.4 KiB
Plaintext
Raw Permalink Normal View History

2022-10-12 12:21:18 -04:00
[gd_scene load_steps=15 format=2]
2022-10-11 13:08:59 -04:00
[ext_resource path="res://Scripts/HitBox.gd" type="Script" id=1]
2022-10-11 19:11:46 -04:00
[ext_resource path="res://Scenes/Enemy.gd" type="Script" id=2]
[ext_resource path="res://Scripts/HurtBox.gd" type="Script" id=3]
2022-10-12 10:13:10 -04:00
[ext_resource path="res://Materials/Ball_Mat.tres" type="Material" id=4]
2022-10-11 21:24:46 -04:00
[ext_resource path="res://Audio/boom.wav" type="AudioStream" id=7]
2022-10-12 09:10:44 -04:00
[ext_resource path="res://Audio/80-s-clap.wav" type="AudioStream" id=8]
[ext_resource path="res://Audio/MegaSlap.wav" type="AudioStream" id=9]
2022-10-11 13:08:59 -04:00
2022-10-12 10:13:10 -04:00
[sub_resource type="SphereMesh" id=16]
2022-10-11 21:21:27 -04:00
[sub_resource type="SphereShape" id=7]
2022-10-11 19:11:46 -04:00
[sub_resource type="SphereShape" id=8]
2022-10-11 19:11:46 -04:00
[sub_resource type="SphereShape" id=9]
2022-10-11 13:08:59 -04:00
2022-10-11 21:52:01 -04:00
[sub_resource type="SpatialMaterial" id=13]
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_color = Color( 0.952941, 0.109804, 0.545098, 1 )
metallic = 0.25
metallic_specular = 0.98
emission_enabled = true
emission = Color( 0.501961, 0.152941, 0.462745, 1 )
emission_energy = 4.61
emission_operator = 0
emission_on_uv2 = false
refraction_enabled = true
refraction_scale = 0.05
refraction_texture_channel = 0
[sub_resource type="SphereMesh" id=14]
material = SubResource( 13 )
radius = 0.2
height = 0.4
[sub_resource type="Curve" id=15]
max_value = 2.0
_data = [ Vector2( 0.029703, 1.56592 ), 0.0, 0.0, 0, 0, Vector2( 0.995049, 0.656827 ), 0.472208, 0.0, 0, 0 ]
2022-10-11 21:21:27 -04:00
2022-10-11 13:08:59 -04:00
[node name="Enemy" type="KinematicBody"]
2022-10-11 19:11:46 -04:00
script = ExtResource( 2 )
2022-10-11 13:08:59 -04:00
[node name="MeshInstance" type="MeshInstance" parent="."]
2022-10-12 10:13:10 -04:00
mesh = SubResource( 16 )
material/0 = ExtResource( 4 )
2022-10-11 13:08:59 -04:00
2022-10-11 21:21:27 -04:00
[node name="Hurtbox" type="Area" parent="."]
transform = Transform( 2.03634, 0, 0, 0, 2.03634, 0, 0, 0, 2.03634, 0, 0, 0 )
2022-10-11 19:11:46 -04:00
script = ExtResource( 3 )
2022-10-11 21:21:27 -04:00
[node name="HeadCollision" type="CollisionShape" parent="Hurtbox"]
shape = SubResource( 7 )
2022-10-11 13:08:59 -04:00
2022-10-12 09:10:44 -04:00
[node name="AudioSlap" type="AudioStreamPlayer3D" parent="Hurtbox"]
transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 )
stream = ExtResource( 8 )
attenuation_model = 2
unit_db = 80.0
max_db = 6.0
bus = "SFX"
[node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="Hurtbox"]
transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 )
stream = ExtResource( 9 )
attenuation_model = 2
unit_db = 60.0
max_db = 4.0
pitch_scale = 2.0
bus = "SFX"
emission_angle_enabled = true
doppler_tracking = 2
2022-10-11 19:11:46 -04:00
[node name="EnemyCollision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.094023, 0 )
shape = SubResource( 8 )
2022-10-11 19:11:46 -04:00
[node name="HitBox" type="Area" parent="."]
2022-10-11 21:21:27 -04:00
transform = Transform( 1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0 )
script = ExtResource( 1 )
hitbox_type = 2
2022-10-11 19:11:46 -04:00
[node name="CollisionShape" type="CollisionShape" parent="HitBox"]
shape = SubResource( 9 )
2022-10-11 21:21:27 -04:00
disabled = true
2022-10-11 21:52:01 -04:00
[node name="CPUParticles" type="CPUParticles" parent="."]
emitting = false
amount = 25
lifetime = 2.5
one_shot = true
speed_scale = 2.76
explosiveness = 0.18
randomness = 0.19
mesh = SubResource( 14 )
emission_shape = 1
emission_sphere_radius = 1.5
spread = 80.0
gravity = Vector3( 0.1, 0, 0 )
initial_velocity = 1.0
scale_amount_curve = SubResource( 15 )
[node name="DeathTimer" type="Timer" parent="."]
wait_time = 3.0
2022-10-11 21:24:46 -04:00
[node name="Explosion" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 7 )
2022-10-11 22:15:52 -04:00
attenuation_model = 2
2022-10-11 21:57:37 -04:00
unit_db = 80.0
max_db = 6.0
2022-10-11 22:15:52 -04:00
pitch_scale = 1.5
2022-10-11 21:24:46 -04:00
bus = "SFX"
2022-10-11 22:15:52 -04:00
attenuation_filter_db = 0.0
2022-10-11 21:57:37 -04:00
[connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"]