mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 21:13:48 +00:00
Level Teleporters
This commit is contained in:
parent
5e357e1a96
commit
7a8bb4311b
26 changed files with 581 additions and 410 deletions
BIN
3D/MapModels/actor_level_teleporter.glb
Normal file
BIN
3D/MapModels/actor_level_teleporter.glb
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -2452,21 +2452,9 @@
|
|||
}
|
||||
// entity 193
|
||||
{
|
||||
"classname" "trigger_area"
|
||||
"targetname" ""
|
||||
"target" "tube_emitter_intro"
|
||||
"activationtype" "Toggle"
|
||||
"minactivations" "1"
|
||||
"maxactivations" "2"
|
||||
// brush 0
|
||||
{
|
||||
( -40 -60 16 ) ( -40 -59 16 ) ( -40 -60 17 ) special/trigger [ 0 -1 0 24 ] [ 0 0 -1 0 ] 270 1 1
|
||||
( -40 -32 16 ) ( -40 -32 17 ) ( -39 -32 16 ) special/trigger [ 1 0 0 8 ] [ 0 0 -1 0 ] 90 1 1
|
||||
( -40 -60 16 ) ( -39 -60 16 ) ( -40 -59 16 ) special/trigger [ -1 0 0 -8 ] [ 0 -1 0 24 ] 270 1 1
|
||||
( 12 -32 24 ) ( 12 -31 24 ) ( 13 -32 24 ) special/trigger [ 1 0 0 8 ] [ 0 -1 0 24 ] 180 1 1
|
||||
( 12 -16 20 ) ( 13 -16 20 ) ( 12 -16 21 ) special/trigger [ -1 0 0 -8 ] [ 0 0 -1 0 ] 180 1 1
|
||||
( -16 -32 20 ) ( -16 -32 21 ) ( -16 -31 20 ) special/trigger [ 0 1 0 -24 ] [ 0 0 -1 0 ] 180 1 1
|
||||
}
|
||||
"classname" "actor_level_teleporter"
|
||||
"origin" "-8 -40 17"
|
||||
"enabled" "1"
|
||||
}
|
||||
// entity 194
|
||||
{
|
||||
|
|
|
|||
31
3D/Scenes/Props/Level_Teleporter_3D.tscn
Normal file
31
3D/Scenes/Props/Level_Teleporter_3D.tscn
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bn7hkgapi5oka"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4e21ceehvqap" path="res://Scripts/Activables/3D/LevelTeleporter3D.cs" id="1_cbs4u"]
|
||||
[ext_resource type="PackedScene" uid="uid://dnofvejpr6lvx" path="res://3D/BlockbenchModels/Teleporter/Teleporter.gltf" id="2_b3mo2"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jvaa5"]
|
||||
size = Vector3(0.855408, 0.0617218, 0.878296)
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_5c8o5"]
|
||||
height = 0.949707
|
||||
radius = 0.257813
|
||||
|
||||
[node name="LevelTeleporter" type="StaticBody3D"]
|
||||
script = ExtResource("1_cbs4u")
|
||||
TeleportOffset = Vector3(0, 0.4, 0)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00344848, -0.0301591, 0.000671387)
|
||||
shape = SubResource("BoxShape3D_jvaa5")
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("2_b3mo2")]
|
||||
|
||||
[node name="TeleporterTrigger" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TeleporterTrigger"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.525146, 0)
|
||||
shape = SubResource("CylinderShape3D_5c8o5")
|
||||
|
||||
[connection signal="body_entered" from="TeleporterTrigger" to="." method="_on_body_entered"]
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://dvpi4kx2visc0"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_klaoa"]
|
||||
[ext_resource type="PackedScene" uid="uid://bn7hkgapi5oka" path="res://3D/Scenes/Props/Level_Teleporter_3D.tscn" id="2_atmpw"]
|
||||
[ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="5_7bpmd"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("5_7bpmd")
|
||||
target_map_editor = 1
|
||||
rotation_offset = Vector3(0, 180, 0)
|
||||
scene_file = ExtResource("2_atmpw")
|
||||
apply_scale_on_map_build = false
|
||||
classname = "actor_level_teleporter"
|
||||
description = "Teleporter to the next level"
|
||||
base_classes = Array[Resource]([ExtResource("1_klaoa")])
|
||||
class_properties = {
|
||||
"enabled": false
|
||||
}
|
||||
class_property_descriptions = {
|
||||
"enabled": "Enabled or disabled"
|
||||
}
|
||||
meta_properties = {
|
||||
"model": "\"3D/MapModels/actor_level_teleporter.glb\"",
|
||||
"size": AABB(-8, -8, -1, 8, 8, 1)
|
||||
}
|
||||
metadata/_custom_type_script = "uid://c83r7t467hm4m"
|
||||
|
|
@ -120,7 +120,8 @@ public partial class TriggerArea : Area3D, ITargetable, ITargeting, IActivationT
|
|||
|
||||
private void ToggleCollision(bool toggle)
|
||||
{
|
||||
Monitoring = toggle;
|
||||
SetDeferred(nameof(Monitoring), toggle);
|
||||
//Monitoring = toggle;
|
||||
}
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=48 format=3 uid="uid://b700sa4be6dfa"]
|
||||
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=49 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="Script" uid="uid://cknmd0lgmorx2" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"]
|
||||
|
|
@ -47,8 +47,9 @@
|
|||
[ext_resource type="Resource" uid="uid://dd7haabidbq5s" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_tank_standalone.tres" id="44_k6g2u"]
|
||||
[ext_resource type="Resource" uid="uid://b4cf1i0x46ej4" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_Emitter_Floor.tres" id="45_b4ckg"]
|
||||
[ext_resource type="Resource" uid="uid://chytq0646of5n" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_Locker.tres" id="46_dyoc0"]
|
||||
[ext_resource type="Resource" uid="uid://dvpi4kx2visc0" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_Level_Teleporter.tres" id="47_pa845"]
|
||||
|
||||
[resource]
|
||||
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")])
|
||||
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")])
|
||||
metadata/_custom_type_script = "uid://cknmd0lgmorx2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue