mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 11:13:47 +00:00
Lore locker
This commit is contained in:
parent
74dcd6d90c
commit
52999bbc8b
8 changed files with 658 additions and 563 deletions
Binary file not shown.
|
|
@ -3431,6 +3431,12 @@
|
||||||
}
|
}
|
||||||
// entity 200
|
// entity 200
|
||||||
{
|
{
|
||||||
|
"classname" "actor_dialogue"
|
||||||
|
"origin" "-48 16 28"
|
||||||
|
"custom_dialogue" "This locker contains protective equipment for use by workers, it's all tattered and full of holes and chemical stains"
|
||||||
|
}
|
||||||
|
// entity 201
|
||||||
|
{
|
||||||
"classname" "func_group"
|
"classname" "func_group"
|
||||||
"_tb_type" "_tb_layer"
|
"_tb_type" "_tb_layer"
|
||||||
"_tb_name" "Shroud"
|
"_tb_name" "Shroud"
|
||||||
|
|
@ -3438,7 +3444,7 @@
|
||||||
"_tb_layer_sort_index" "0"
|
"_tb_layer_sort_index" "0"
|
||||||
"_tb_layer_hidden" "1"
|
"_tb_layer_hidden" "1"
|
||||||
}
|
}
|
||||||
// entity 201
|
// entity 202
|
||||||
{
|
{
|
||||||
"classname" "func_shroud"
|
"classname" "func_shroud"
|
||||||
"targetname" "secret_1"
|
"targetname" "secret_1"
|
||||||
|
|
|
||||||
13
3D/Scenes/Props/Interactables/Dialogue_Interactable_3D.tscn
Normal file
13
3D/Scenes/Props/Interactables/Dialogue_Interactable_3D.tscn
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[gd_scene load_steps=3 format=3 uid="uid://bt8fwb313qf8n"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://duy020jwtwver" path="res://Scripts/Activables/DialogueActor3D.cs" id="1_v2q44"]
|
||||||
|
|
||||||
|
[sub_resource type="SphereShape3D" id="SphereShape3D_2cx3w"]
|
||||||
|
|
||||||
|
[node name="Dialogue" type="Area3D" groups=["Interactable"]]
|
||||||
|
collision_layer = 32
|
||||||
|
collision_mask = 0
|
||||||
|
script = ExtResource("1_v2q44")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||||
|
shape = SubResource("SphereShape3D_2cx3w")
|
||||||
|
|
@ -7,8 +7,10 @@ script = ExtResource("1_h5gnk")
|
||||||
classname = "Dialogue"
|
classname = "Dialogue"
|
||||||
description = "Starts the dialogue associated to the named timeline"
|
description = "Starts the dialogue associated to the named timeline"
|
||||||
class_properties = {
|
class_properties = {
|
||||||
|
"custom_dialogue": "",
|
||||||
"timeline": ""
|
"timeline": ""
|
||||||
}
|
}
|
||||||
class_property_descriptions = {
|
class_property_descriptions = {
|
||||||
"timeline": "Name of the timeline to trigger"
|
"custom_dialogue": "Custom dialogue script, plays if no timeline is specified",
|
||||||
|
"timeline": "Name of the timeline to trigger, overrides custom dialogue"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=5 format=3 uid="uid://dlcokohev247j"]
|
||||||
|
|
||||||
|
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_oao2t"]
|
||||||
|
[ext_resource type="Resource" uid="uid://di5wnbv5icxtq" path="res://3D/TrenchBroom/EntityDefinitions/base/dialogue_base.tres" id="2_gfw3w"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bt8fwb313qf8n" path="res://3D/Scenes/Props/Interactables/Dialogue_Interactable_3D.tscn" id="3_oao2t"]
|
||||||
|
[ext_resource type="Script" uid="uid://cxsqwtsqd8w33" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="4_vw8gb"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("4_vw8gb")
|
||||||
|
scene_file = ExtResource("3_oao2t")
|
||||||
|
apply_scale_on_map_build = false
|
||||||
|
classname = "actor_dialogue"
|
||||||
|
description = "Dialogue Interactable"
|
||||||
|
base_classes = Array[Resource]([ExtResource("1_oao2t"), ExtResource("2_gfw3w")])
|
||||||
|
meta_properties = {
|
||||||
|
"size": AABB(-4, -4, -4, 4, 4, 4)
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=54 format=3 uid="uid://b700sa4be6dfa"]
|
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=55 format=3 uid="uid://b700sa4be6dfa"]
|
||||||
|
|
||||||
[ext_resource type="Resource" uid="uid://ia1t5p4mhom3" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_omni.tres" id="1_7vcj1"]
|
[ext_resource type="Resource" uid="uid://ia1t5p4mhom3" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_omni.tres" id="1_7vcj1"]
|
||||||
[ext_resource type="Script" uid="uid://drlmgulwbjwqu" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"]
|
[ext_resource type="Script" uid="uid://drlmgulwbjwqu" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"]
|
||||||
|
|
@ -52,8 +52,9 @@
|
||||||
[ext_resource type="Resource" uid="uid://umbceo5tcxni" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_chair.tres" id="49_8hbdx"]
|
[ext_resource type="Resource" uid="uid://umbceo5tcxni" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_chair.tres" id="49_8hbdx"]
|
||||||
[ext_resource type="Resource" uid="uid://bhkn5vwemx7nk" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_box_blue_tall.tres" id="50_xpy40"]
|
[ext_resource type="Resource" uid="uid://bhkn5vwemx7nk" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_box_blue_tall.tres" id="50_xpy40"]
|
||||||
[ext_resource type="Resource" uid="uid://cmdgqpq5e1duq" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/marker_spawn.tres" id="51_mwau1"]
|
[ext_resource type="Resource" uid="uid://cmdgqpq5e1duq" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/marker_spawn.tres" id="51_mwau1"]
|
||||||
|
[ext_resource type="Resource" uid="uid://dlcokohev247j" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_dialogue.tres" id="53_v4gel"]
|
||||||
[ext_resource type="Resource" uid="uid://cuhhjj6kx74i0" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_switch.tres" id="54_k53o0"]
|
[ext_resource type="Resource" uid="uid://cuhhjj6kx74i0" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_switch.tres" id="54_k53o0"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_lykim")
|
script = ExtResource("1_lykim")
|
||||||
entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm"), ExtResource("18_m3sbm"), ExtResource("19_hvhb8"), ExtResource("20_3v5us"), ExtResource("21_g67cj"), ExtResource("22_iy67w"), ExtResource("23_b5lmu"), ExtResource("24_ndas4"), ExtResource("25_n7wsi"), ExtResource("26_v48k5"), ExtResource("27_ombvk"), ExtResource("28_31lma"), ExtResource("29_louv0"), ExtResource("30_wfgfu"), ExtResource("31_elv2e"), ExtResource("32_elv2e"), ExtResource("33_aawmv"), ExtResource("34_wy0ht"), ExtResource("35_3jqmy"), ExtResource("36_p5b6l"), ExtResource("37_53o7h"), ExtResource("38_mdgca"), ExtResource("39_d6b4f"), ExtResource("40_l3pck"), ExtResource("41_q8hab"), ExtResource("42_ekplg"), ExtResource("43_d7qk0"), ExtResource("44_k6g2u"), ExtResource("45_b4ckg"), ExtResource("46_dyoc0"), ExtResource("47_pa845"), ExtResource("48_lb3ub"), ExtResource("49_8hbdx"), ExtResource("50_xpy40"), ExtResource("51_mwau1"), ExtResource("54_k53o0")])
|
entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm"), ExtResource("18_m3sbm"), ExtResource("19_hvhb8"), ExtResource("20_3v5us"), ExtResource("21_g67cj"), ExtResource("22_iy67w"), ExtResource("23_b5lmu"), ExtResource("24_ndas4"), ExtResource("25_n7wsi"), ExtResource("26_v48k5"), ExtResource("27_ombvk"), ExtResource("28_31lma"), ExtResource("29_louv0"), ExtResource("30_wfgfu"), ExtResource("31_elv2e"), ExtResource("32_elv2e"), ExtResource("33_aawmv"), ExtResource("34_wy0ht"), ExtResource("35_3jqmy"), ExtResource("36_p5b6l"), ExtResource("37_53o7h"), ExtResource("38_mdgca"), ExtResource("39_d6b4f"), ExtResource("40_l3pck"), ExtResource("41_q8hab"), ExtResource("42_ekplg"), ExtResource("43_d7qk0"), ExtResource("44_k6g2u"), ExtResource("45_b4ckg"), ExtResource("46_dyoc0"), ExtResource("47_pa845"), ExtResource("48_lb3ub"), ExtResource("49_8hbdx"), ExtResource("50_xpy40"), ExtResource("51_mwau1"), ExtResource("54_k53o0"), ExtResource("53_v4gel")])
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -40,6 +40,7 @@ public partial class DialogueActor3D : Area3D, IInteractable
|
||||||
public void _func_godot_apply_properties(Dictionary<string, string> props)
|
public void _func_godot_apply_properties(Dictionary<string, string> props)
|
||||||
{
|
{
|
||||||
TimelineName = props["timeline"];
|
TimelineName = props["timeline"];
|
||||||
|
CustomDialogue = props["custom_dialogue"];
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue