mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 05:13:47 +00:00
Autopickup for player
This commit is contained in:
parent
acc61f9a0e
commit
8d52b49e57
6 changed files with 242 additions and 62 deletions
|
|
@ -28,6 +28,8 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cfgc6ik8vb08c" path="res://Scenes/Weapons/BaseWeapon_3D.tscn" id="17_olwak"]
|
||||
[ext_resource type="Script" uid="uid://cqyr8mko8oo5" path="res://Scripts/Components/FSM/3DPlayer/PlayerAcidDeathModule.cs" id="19_7selo"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwnyegefc8o6q" path="res://Scenes/HUD/WorldSelector3D.tscn" id="24_j6bpw"]
|
||||
[ext_resource type="Script" uid="uid://s4xt80pu6lgl" path="res://Scripts/Components/FSM/3DPlayer/AutoPickupModule3D.cs" id="25_j6bpw"]
|
||||
[ext_resource type="AudioStream" uid="uid://b3rm0vj6x54k4" path="res://SFX/th_knockoff_sfx/click_collect.wav" id="26_10kkd"]
|
||||
[ext_resource type="Script" uid="uid://hdw15b6fi7de" path="res://Scripts/Components/Actors/3D/PlayerDamageReceiver3D.cs" id="26_ok6gd"]
|
||||
[ext_resource type="Script" uid="uid://ddsqqfx1usc3j" path="res://Scripts/Resources/DamageResistance.cs" id="27_5v3dv"]
|
||||
[ext_resource type="Script" uid="uid://cqwvssstkrdmw" path="res://Scripts/Components/Actors/ActorResourceProvider.cs" id="28_b3jpo"]
|
||||
|
|
@ -51,6 +53,8 @@ height = 0.679688
|
|||
height = 1.18042
|
||||
radius = 1.20117
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_10kkd"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_ok250"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_c4ide"]
|
||||
|
|
@ -224,7 +228,7 @@ script = ExtResource("3_cc7e7")
|
|||
_inputProvider = NodePath("../../InputProvider")
|
||||
AnimationProvider = NodePath("../../AnimationProvider")
|
||||
DamageReceiver = NodePath("../../DamageReceiver")
|
||||
_moduleNodes = [NodePath("../../InputProvider"), NodePath("../../MovementModule"), null, NodePath("../../InteractionController"), NodePath("../../ActivationProvider"), NodePath("../../WeaponModule"), NodePath("../../CrosshairModule"), NodePath("../../GrazingModule")]
|
||||
_moduleNodes = [NodePath("../../InputProvider"), NodePath("../../MovementModule"), null, NodePath("../../InteractionController"), NodePath("../../ActivationProvider"), NodePath("../../WeaponModule"), NodePath("../../CrosshairModule"), NodePath("../../GrazingModule"), NodePath("../../AutoPickupModule")]
|
||||
|
||||
[node name="Dead" type="Node" parent="StateMachine" unique_id=316659315]
|
||||
script = ExtResource("5_ok250")
|
||||
|
|
@ -253,7 +257,7 @@ material_override = ExtResource("7_yarib")
|
|||
pixel_size = 0.05
|
||||
texture_filter = 0
|
||||
sprite_frames = ExtResource("12_j6bpw")
|
||||
animation = &"walk_up"
|
||||
animation = &"Drowning"
|
||||
script = ExtResource("9_yarib")
|
||||
|
||||
[node name="Legs" type="AnimatedSprite3D" parent="AnimationProvider" unique_id=995566769]
|
||||
|
|
@ -329,6 +333,17 @@ script = ExtResource("11_4cdxq")
|
|||
stream = ExtResource("13_2ffwi")
|
||||
bus = &"Effects"
|
||||
|
||||
[node name="AutoPickupModule" type="Area3D" parent="." unique_id=1006870778]
|
||||
collision_layer = 0
|
||||
collision_mask = 32
|
||||
script = ExtResource("25_j6bpw")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="AutoPickupModule" unique_id=543949155]
|
||||
shape = SubResource("SphereShape3D_10kkd")
|
||||
|
||||
[node name="PickupSound" type="AudioStreamPlayer3D" parent="AutoPickupModule" unique_id=1774707395]
|
||||
stream = ExtResource("26_10kkd")
|
||||
|
||||
[node name="AudioListener3D" type="AudioListener3D" parent="." unique_id=1967851684]
|
||||
current = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue