Recoil system

This commit is contained in:
Rendo 2025-11-26 18:53:39 +05:00
commit cdfce4c7db
11 changed files with 144 additions and 8 deletions

View file

@ -130,10 +130,12 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_u8vuu")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 2, 0)
cull_mask = 1048573
fov = 90.0
script = ExtResource("3_qhqgy")
compensation_time = 0.1
compensation_delay = 0.1
[node name="molikman_hands" parent="Camera3D" instance=ExtResource("4_dqkch")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, -1, 0)
@ -248,10 +250,11 @@ crosses_offset = 3.0
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_qhqgy")
[node name="WeaponSystem" type="Node" parent="." node_paths=PackedStringArray("default_pistol", "animation_player")]
[node name="WeaponSystem" type="Node" parent="." node_paths=PackedStringArray("default_pistol", "animation_player", "camera")]
script = ExtResource("4_qlg0r")
default_pistol = NodePath("StartingPistol")
animation_player = NodePath("../Camera3D/molikman_hands/AnimationPlayer")
camera = NodePath("../Camera3D")
[node name="StartingPistol" parent="WeaponSystem" instance=ExtResource("7_fjrip")]