visibility rework

This commit is contained in:
Rendo 2025-11-27 15:52:30 +05:00
commit 9d0e09220d
37 changed files with 212 additions and 75 deletions

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://dtbpyfdawb02b"]
[ext_resource type="PackedScene" uid="uid://dftij0fdq3lbr" path="res://models/weapons/Bomb.glb" id="1_yh58y"]
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_yh58y"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 2
[node name="ActiveBomb" type="Node3D"]
[node name="Bomb" parent="." instance=ExtResource("1_yh58y")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1307683, 0)
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_yh58y")

View file

@ -1,11 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://bxdatd1ilfgmc"]
[gd_scene load_steps=4 format=3 uid="uid://bxdatd1ilfgmc"]
[ext_resource type="Script" uid="uid://e6lqknfl4ngt" path="res://scripts/weapon_system/weapon_substate_machine.gd" id="1_krsgt"]
[ext_resource type="PackedScene" uid="uid://dftij0fdq3lbr" path="res://models/weapons/Bomb.glb" id="2_1x0so"]
[ext_resource type="Script" uid="uid://rx78vdadldm7" path="res://scripts/weapon_system/bomb/bomb_state.gd" id="2_870cc"]
[node name="Bomb" type="Node" node_paths=PackedStringArray("enter_state")]
script = ExtResource("1_krsgt")
animation_prefix = &"baked_bomb_"
model = ExtResource("2_1x0so")
visibility_target = &"bomb"
max_ammo = 1
can_be_previous = false
enter_state = NodePath("Main")

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://djwjl8xll53vn"]
[gd_scene load_steps=9 format=3 uid="uid://djwjl8xll53vn"]
[ext_resource type="Script" uid="uid://e6lqknfl4ngt" path="res://scripts/weapon_system/weapon_substate_machine.gd" id="1_g7s1i"]
[ext_resource type="PackedScene" uid="uid://d3sjs6efbshpk" path="res://models/weapons/starting_pistol.glb" id="2_016ti"]
[ext_resource type="Script" uid="uid://ofv4e3dsfe8" path="res://scripts/weapon_system/gun/idle_state.gd" id="2_cmn6f"]
[ext_resource type="Script" uid="uid://vj13r83l3xyq" path="res://scripts/weapon_system/gun/semi_auto_shoot_state.gd" id="3_016ti"]
[ext_resource type="Script" uid="uid://hmekwp8444ao" path="res://scripts/weapon_system/gun/reload_state.gd" id="4_hoqxt"]
@ -21,6 +22,8 @@ point_count = 5
[node name="StartingPistol" type="Node" node_paths=PackedStringArray("enter_state")]
script = ExtResource("1_g7s1i")
animation_prefix = &"baked_sp_"
model = ExtResource("2_016ti")
visibility_target = &"sp"
max_ammo = 20
enter_state = NodePath("Intro")
metadata/_custom_type_script = "uid://e6lqknfl4ngt"