Shambler spawn tweaks

This commit is contained in:
Rob Kelly 2025-09-07 00:31:15 -06:00
parent 2d91fd3082
commit 9c26eb24d0
2 changed files with 18 additions and 4 deletions

View File

@ -3,7 +3,7 @@ class_name Shambler extends BeastModel
const LOOK_TARGET_ACCELERATION := 12.0 const LOOK_TARGET_ACCELERATION := 12.0
const BLEND_ACCELERATION := 6.0 const BLEND_ACCELERATION := 6.0
const SPAWN_RUMBLE := 0.05 #const SPAWN_RUMBLE := 0.05
@export var time_scale_factor := 4.0 @export var time_scale_factor := 4.0
@export var idle_blend_curve: Curve @export var idle_blend_curve: Curve
@ -36,7 +36,20 @@ func _ready() -> void:
func _start_player_rumble() -> void: func _start_player_rumble() -> void:
# TODO this is awful. Integrate PhantomCamera or similar # TODO this is awful. Integrate PhantomCamera or similar
if Player.instance: if Player.instance:
create_tween().tween_property(Player.instance, "camera_rumble", SPAWN_RUMBLE, 1.2) var tween := create_tween()
Player.instance.camera_rumble = 0.08
(
tween
. tween_property(Player.instance, "camera_rumble", 0.004, 0.8)
. set_trans(Tween.TRANS_EXPO)
. set_ease(Tween.EASE_OUT)
)
(
tween
. tween_property(Player.instance, "camera_rumble", 0.05, 2.0)
. set_trans(Tween.TRANS_QUART)
. set_ease(Tween.EASE_IN)
)
func _end_player_rumble() -> void: func _end_player_rumble() -> void:

View File

@ -143,7 +143,7 @@ _data = [Vector2(0, 0), 0.0, 2.58321, 0, 0, Vector2(1, 1), -0.403345, 0.0, 0, 0]
point_count = 2 point_count = 2
[sub_resource type="Curve" id="Curve_xlxrx"] [sub_resource type="Curve" id="Curve_xlxrx"]
_data = [Vector2(0, 0), 0.0, 1.63477, 0, 0, Vector2(0.837947, 1), -1.37504, -1.37504, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] _data = [Vector2(0, 0), 0.0, 1.63477, 0, 0, Vector2(0.837947, 1), -0.720372, -0.720372, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 3 point_count = 3
[sub_resource type="Curve" id="Curve_6bdpa"] [sub_resource type="Curve" id="Curve_6bdpa"]
@ -203,6 +203,7 @@ size = Vector2(0.05, 0.05)
[sub_resource type="PlaneMesh" id="PlaneMesh_xlxrx"] [sub_resource type="PlaneMesh" id="PlaneMesh_xlxrx"]
material = ExtResource("8_6bdpa") material = ExtResource("8_6bdpa")
size = Vector2(4, 4)
[sub_resource type="Curve" id="Curve_c7m4v"] [sub_resource type="Curve" id="Curve_c7m4v"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] _data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
@ -434,7 +435,7 @@ process_material = SubResource("ParticleProcessMaterial_vru5p")
draw_pass_1 = SubResource("QuadMesh_10hsf") draw_pass_1 = SubResource("QuadMesh_10hsf")
[node name="SpawnRift" type="MeshInstance3D" parent="SpawnEffects" index="3"] [node name="SpawnRift" type="MeshInstance3D" parent="SpawnEffects" index="3"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.01, 0) transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.01, -0.385)
visible = false visible = false
mesh = SubResource("PlaneMesh_xlxrx") mesh = SubResource("PlaneMesh_xlxrx")
skeleton = NodePath("../..") skeleton = NodePath("../..")