Compare commits
28 Commits
107c7622d5
...
more-rewor
Author | SHA1 | Date | |
---|---|---|---|
00c4c1ddfa | |||
f4d5a02e42 | |||
5087cb58bc | |||
4f9005d016 | |||
f905e55f65 | |||
0d6d1c86de | |||
ffdb3366a5 | |||
cd9e6da4e9 | |||
77c62c74de | |||
3df89c6d28 | |||
9d29ec8ee4 | |||
4c16ad4f9a | |||
374012569b | |||
98b6537fdd | |||
e3d10840c9 | |||
e4880d42f9 | |||
ef16d6c83f | |||
85eab200ea | |||
767d0fc768 | |||
cf98e6c36c | |||
4f5ca49c76 | |||
3a761fd0bd | |||
826eaac10c | |||
21bc3f4724 | |||
01d0488d91 | |||
da682b50f9 | |||
7e66ae4178 | |||
e6573fc44f |
@ -47,9 +47,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apt update && apt -y install curl zip nodejs
|
apt update && apt -y install curl zip nodejs
|
||||||
- name: Checkout with LFS
|
- name: Checkout with LFS
|
||||||
uses: https://git.game-dev.space/minimata/checkout-lfs.git@main
|
uses: https://git.game-dev.space/minimata/checkout-with-lfs.git@main
|
||||||
with:
|
with:
|
||||||
checkout-version: 3
|
checkout-version: 3
|
||||||
|
|
||||||
- name: Import resources and build solution
|
- name: Import resources and build solution
|
||||||
run: |
|
run: |
|
||||||
godot --headless --editor --build-solutions --quit --import --path $PWD
|
godot --headless --editor --build-solutions --quit --import --path $PWD
|
||||||
@ -67,16 +68,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -v -p build/mac
|
mkdir -v -p build/mac
|
||||||
godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
godot --headless --verbose --export-release "macOS" build/mac/${{ env.GAME_NAME }}.zip
|
||||||
zip -r Mac.zip build/mac
|
zip -r Mac.zip build/mac
|
||||||
# - name: Upload to release
|
|
||||||
# uses: akkuman/gitea-release-action@v1
|
|
||||||
# with:
|
|
||||||
# name: Running release
|
|
||||||
# tag_name: ${{ needs.BumpTag.outputs.tag_name }}
|
|
||||||
# files: |-
|
|
||||||
# Windows.zip
|
|
||||||
# Linux.zip
|
|
||||||
# Mac.zip
|
|
||||||
- name: Upload to Itch
|
- name: Upload to Itch
|
||||||
uses: KikimoraGames/itch-publish@v0.0.3
|
uses: KikimoraGames/itch-publish@v0.0.3
|
||||||
with:
|
with:
|
||||||
|
@ -250,5 +250,3 @@ func _editor_name() -> String:
|
|||||||
return name
|
return name
|
||||||
|
|
||||||
return resource_path.get_file().replace(".tres", "")
|
return resource_path.get_file().replace(".tres", "")
|
||||||
|
|
||||||
|
|
||||||
|
7
assets/greybox/human_scale.tscn
Normal file
7
assets/greybox/human_scale.tscn
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[gd_scene load_steps=2 format=3 uid="uid://bfriujv0l1yjy"]
|
||||||
|
|
||||||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3j616"]
|
||||||
|
height = 1.8
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D"]
|
||||||
|
mesh = SubResource("CapsuleMesh_3j616")
|
BIN
assets/ladder/Textures/colormap.png
(Stored with Git LFS)
Normal file
BIN
assets/ladder/Textures/colormap.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://lp2pt8mtj7ty"
|
uid="uid://kyoessd1518w"
|
||||||
path.s3tc="res://.godot/imported/kenney-green-checkerboar-cc0.png-2ce8609a39a655125c8e037014f6f2db.s3tc.ctex"
|
path.s3tc="res://.godot/imported/colormap.png-0164da4e3e43f54bbcc6c773ee30521d.s3tc.ctex"
|
||||||
path.etc2="res://.godot/imported/kenney-green-checkerboar-cc0.png-2ce8609a39a655125c8e037014f6f2db.etc2.ctex"
|
path.etc2="res://.godot/imported/colormap.png-0164da4e3e43f54bbcc6c773ee30521d.etc2.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||||
"vram_texture": true
|
"vram_texture": true
|
||||||
@ -12,8 +12,8 @@ metadata={
|
|||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://player_controller/Examples/MovementTestbed/Hills/kenney-green-checkerboar-cc0.png"
|
source_file="res://assets/ladder/Textures/colormap.png"
|
||||||
dest_files=["res://.godot/imported/kenney-green-checkerboar-cc0.png-2ce8609a39a655125c8e037014f6f2db.s3tc.ctex", "res://.godot/imported/kenney-green-checkerboar-cc0.png-2ce8609a39a655125c8e037014f6f2db.etc2.ctex"]
|
dest_files=["res://.godot/imported/colormap.png-0164da4e3e43f54bbcc6c773ee30521d.s3tc.ctex", "res://.godot/imported/colormap.png-0164da4e3e43f54bbcc6c773ee30521d.etc2.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
BIN
assets/ladder/ladder-top.fbx
(Stored with Git LFS)
Normal file
BIN
assets/ladder/ladder-top.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
38
assets/ladder/ladder-top.fbx.import
Normal file
38
assets/ladder/ladder-top.fbx.import
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://bod7boex72igr"
|
||||||
|
path="res://.godot/imported/ladder-top.fbx-3af719d67bc92743407297e84a0e273a.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/ladder/ladder-top.fbx"
|
||||||
|
dest_files=["res://.godot/imported/ladder-top.fbx-3af719d67bc92743407297e84a0e273a.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
nodes/import_as_skeleton_bones=false
|
||||||
|
nodes/use_node_type_suffixes=true
|
||||||
|
meshes/ensure_tangents=true
|
||||||
|
meshes/generate_lods=true
|
||||||
|
meshes/create_shadow_meshes=true
|
||||||
|
meshes/light_baking=1
|
||||||
|
meshes/lightmap_texel_size=0.2
|
||||||
|
meshes/force_disable_compression=false
|
||||||
|
skins/use_named_skins=true
|
||||||
|
animation/import=true
|
||||||
|
animation/fps=30
|
||||||
|
animation/trimming=true
|
||||||
|
animation/remove_immutable_tracks=true
|
||||||
|
animation/import_rest_as_RESET=false
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
fbx/importer=0
|
||||||
|
fbx/allow_geometry_helper_nodes=false
|
||||||
|
fbx/embedded_image_handling=1
|
BIN
assets/ladder/ladder.fbx
(Stored with Git LFS)
Normal file
BIN
assets/ladder/ladder.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
38
assets/ladder/ladder.fbx.import
Normal file
38
assets/ladder/ladder.fbx.import
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="scene"
|
||||||
|
importer_version=1
|
||||||
|
type="PackedScene"
|
||||||
|
uid="uid://cmfagvnymc2yr"
|
||||||
|
path="res://.godot/imported/ladder.fbx-fde4412b36d0b69e88ef176d131d5cbb.scn"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/ladder/ladder.fbx"
|
||||||
|
dest_files=["res://.godot/imported/ladder.fbx-fde4412b36d0b69e88ef176d131d5cbb.scn"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
nodes/root_type=""
|
||||||
|
nodes/root_name=""
|
||||||
|
nodes/apply_root_scale=true
|
||||||
|
nodes/root_scale=1.0
|
||||||
|
nodes/import_as_skeleton_bones=false
|
||||||
|
nodes/use_node_type_suffixes=true
|
||||||
|
meshes/ensure_tangents=true
|
||||||
|
meshes/generate_lods=true
|
||||||
|
meshes/create_shadow_meshes=true
|
||||||
|
meshes/light_baking=1
|
||||||
|
meshes/lightmap_texel_size=0.2
|
||||||
|
meshes/force_disable_compression=false
|
||||||
|
skins/use_named_skins=true
|
||||||
|
animation/import=true
|
||||||
|
animation/fps=30
|
||||||
|
animation/trimming=true
|
||||||
|
animation/remove_immutable_tracks=true
|
||||||
|
animation/import_rest_as_RESET=false
|
||||||
|
import_script/path=""
|
||||||
|
_subresources={}
|
||||||
|
fbx/importer=0
|
||||||
|
fbx/allow_geometry_helper_nodes=false
|
||||||
|
fbx/embedded_image_handling=1
|
BIN
assets/stairs/Textures/colormap.png
(Stored with Git LFS)
Normal file
BIN
assets/stairs/Textures/colormap.png
(Stored with Git LFS)
Normal file
Binary file not shown.
36
assets/stairs/Textures/colormap.png.import
Normal file
36
assets/stairs/Textures/colormap.png.import
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bu1pl3y7v25g2"
|
||||||
|
path.s3tc="res://.godot/imported/colormap.png-e3b1f476363d5485f6d3fb73d08e41e5.s3tc.ctex"
|
||||||
|
path.etc2="res://.godot/imported/colormap.png-e3b1f476363d5485f6d3fb73d08e41e5.etc2.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://assets/stairs/Textures/colormap.png"
|
||||||
|
dest_files=["res://.godot/imported/colormap.png-e3b1f476363d5485f6d3fb73d08e41e5.s3tc.ctex", "res://.godot/imported/colormap.png-e3b1f476363d5485f6d3fb73d08e41e5.etc2.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=2
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=true
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=0
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bgw8xgbwc2flx" path="res://godot_state_charts_examples/history_states/white_rectangle.svg" id="1_3v23e"]
|
[ext_resource type="Texture2D" uid="uid://bgw8xgbwc2flx" path="res://godot_state_charts_examples/history_states/white_rectangle.svg" id="1_3v23e"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="2_fgw1q"]
|
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="2_fgw1q"]
|
||||||
[ext_resource type="Script" path="res://addons/godot_state_charts/state_chart.gd" id="2_pqmip"]
|
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="2_pqmip"]
|
||||||
[ext_resource type="Script" path="res://godot_state_charts_examples/history_states/history_demo.gd" id="2_vphtk"]
|
[ext_resource type="Script" uid="uid://bad613wfktgah" path="res://godot_state_charts_examples/history_states/history_demo.gd" id="2_vphtk"]
|
||||||
[ext_resource type="Script" path="res://addons/godot_state_charts/compound_state.gd" id="3_nsw2j"]
|
[ext_resource type="Script" uid="uid://jk2jm1g6q853" path="res://addons/godot_state_charts/compound_state.gd" id="3_nsw2j"]
|
||||||
[ext_resource type="Script" path="res://addons/godot_state_charts/history_state.gd" id="4_0qaqv"]
|
[ext_resource type="Script" uid="uid://b4dwolbvt8our" path="res://addons/godot_state_charts/history_state.gd" id="4_0qaqv"]
|
||||||
[ext_resource type="Script" path="res://addons/godot_state_charts/atomic_state.gd" id="5_lh5sp"]
|
[ext_resource type="Script" uid="uid://cytafq8i1y8qm" path="res://addons/godot_state_charts/atomic_state.gd" id="5_lh5sp"]
|
||||||
[ext_resource type="Script" path="res://addons/godot_state_charts/transition.gd" id="6_xvm5g"]
|
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="6_xvm5g"]
|
||||||
[ext_resource type="Theme" uid="uid://s2bj74tt0y7f" path="res://godot_state_charts_examples/new_theme.tres" id="8_najew"]
|
[ext_resource type="Theme" uid="uid://s2bj74tt0y7f" path="res://godot_state_charts_examples/new_theme.tres" id="8_najew"]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kl3ga"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kl3ga"]
|
||||||
|
@ -3,25 +3,27 @@
|
|||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://bnwj7ltdfximr"
|
uid="uid://bnwj7ltdfximr"
|
||||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
path.s3tc="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex"
|
||||||
|
path.etc2="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||||
|
"vram_texture": true
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://icon.svg"
|
source_file="res://icon.svg"
|
||||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex", "res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
compress/mode=0
|
compress/mode=2
|
||||||
compress/high_quality=false
|
compress/high_quality=false
|
||||||
compress/lossy_quality=0.7
|
compress/lossy_quality=0.7
|
||||||
compress/hdr_compression=1
|
compress/hdr_compression=1
|
||||||
compress/normal_map=0
|
compress/normal_map=0
|
||||||
compress/channel_pack=0
|
compress/channel_pack=0
|
||||||
mipmaps/generate=false
|
mipmaps/generate=true
|
||||||
mipmaps/limit=-1
|
mipmaps/limit=-1
|
||||||
roughness/mode=0
|
roughness/mode=0
|
||||||
roughness/src_normal=""
|
roughness/src_normal=""
|
||||||
@ -31,7 +33,7 @@ process/normal_map_invert_y=false
|
|||||||
process/hdr_as_srgb=false
|
process/hdr_as_srgb=false
|
||||||
process/hdr_clamp_exposure=false
|
process/hdr_clamp_exposure=false
|
||||||
process/size_limit=0
|
process/size_limit=0
|
||||||
detect_3d/compress_to=1
|
detect_3d/compress_to=0
|
||||||
svg/scale=1.0
|
svg/scale=1.0
|
||||||
editor/scale_with_editor_scale=false
|
editor/scale_with_editor_scale=false
|
||||||
editor/convert_colors_with_editor_theme=false
|
editor/convert_colors_with_editor_theme=false
|
||||||
|
@ -29,7 +29,7 @@ glow_enabled = true
|
|||||||
[node name="Main" type="Node3D"]
|
[node name="Main" type="Node3D"]
|
||||||
|
|
||||||
[node name="Player" parent="." instance=ExtResource("1_1s2y7")]
|
[node name="Player" parent="." instance=ExtResource("1_1s2y7")]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10, 6, -31)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1.5)
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
environment = SubResource("Environment_1bvp3")
|
environment = SubResource("Environment_1bvp3")
|
||||||
@ -286,6 +286,24 @@ use_collision = true
|
|||||||
size = Vector3(5, 10, 5)
|
size = Vector3(5, 10, 5)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D30" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 9.5, -50)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 1, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D31" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 9.75, -50)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 0.5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11, 9.875, -50)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 0.25, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
[node name="CSGBox3D26" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
[node name="CSGBox3D26" type="CSGBox3D" parent="Greybox/JumpHeights"]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.5, 6.25, -61.5)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.5, 6.25, -61.5)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
@ -309,3 +327,75 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.5, 10, -76.5)
|
|||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(5, 20, 5)
|
size = Vector3(5, 20, 5)
|
||||||
material = ExtResource("3_vvhq3")
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="Passageways" type="CSGCombiner3D" parent="Greybox"]
|
||||||
|
|
||||||
|
[node name="CSGBox3D30" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -6.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D34" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 1.5, -6.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 3)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D31" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -16.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D35" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0.5, -16.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 2)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -26.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D36" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 0.5, -26.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D33" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 2.25, -36.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D37" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, -0.5, -36.5)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5, 3, 1)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D14" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 4.5, -21.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 0.5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D16" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 4.5, -31.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.25, 0.5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
|
||||||
|
[node name="CSGBox3D15" type="CSGBox3D" parent="Greybox/Passageways"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12, 4.5, -11.5)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1, 0.5, 5)
|
||||||
|
material = ExtResource("3_vvhq3")
|
||||||
|
532
maps/city.tscn
532
maps/city.tscn
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=10 format=3 uid="uid://dmkw8cmalm5k"]
|
[gd_scene load_steps=14 format=3 uid="uid://dmkw8cmalm5k"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
|
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="2_uet8a"]
|
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="2_uet8a"]
|
||||||
@ -6,6 +6,10 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://7kcmi16gedd0" path="res://assets/LD-0001.png" id="3_ruo5i"]
|
[ext_resource type="Texture2D" uid="uid://7kcmi16gedd0" path="res://assets/LD-0001.png" id="3_ruo5i"]
|
||||||
[ext_resource type="PackedScene" uid="uid://br76ixljh42i8" path="res://maps/Components/large_square_tower.tscn" id="4_omvc4"]
|
[ext_resource type="PackedScene" uid="uid://br76ixljh42i8" path="res://maps/Components/large_square_tower.tscn" id="4_omvc4"]
|
||||||
[ext_resource type="PackedScene" uid="uid://fxj0a6p5h6lm" path="res://maps/Components/small_square_tower.tscn" id="5_ruo5i"]
|
[ext_resource type="PackedScene" uid="uid://fxj0a6p5h6lm" path="res://maps/Components/small_square_tower.tscn" id="5_ruo5i"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bfriujv0l1yjy" path="res://assets/greybox/human_scale.tscn" id="5_wxle6"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://482s38k0yv35" path="res://maps/Components/stairs.tscn" id="8_pxgdh"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cmfagvnymc2yr" path="res://assets/ladder/ladder.fbx" id="9_ukfuy"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bod7boex72igr" path="res://assets/ladder/ladder-top.fbx" id="10_wctvs"]
|
||||||
|
|
||||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_0xm2m"]
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_0xm2m"]
|
||||||
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||||
@ -19,15 +23,10 @@ background_mode = 2
|
|||||||
sky = SubResource("Sky_h2yge")
|
sky = SubResource("Sky_h2yge")
|
||||||
ambient_light_source = 2
|
ambient_light_source = 2
|
||||||
ambient_light_color = Color(0.576076, 0.459788, 0.652401, 1)
|
ambient_light_color = Color(0.576076, 0.459788, 0.652401, 1)
|
||||||
reflected_light_source = 2
|
|
||||||
tonemap_mode = 4
|
tonemap_mode = 4
|
||||||
tonemap_exposure = 1.32
|
tonemap_exposure = 2.0
|
||||||
ssao_enabled = true
|
ssao_enabled = true
|
||||||
ssao_radius = 3.61
|
|
||||||
ssil_enabled = true
|
ssil_enabled = true
|
||||||
ssil_radius = 8.4
|
|
||||||
sdfgi_use_occlusion = true
|
|
||||||
glow_enabled = true
|
|
||||||
|
|
||||||
[node name="Main" type="Node3D"]
|
[node name="Main" type="Node3D"]
|
||||||
|
|
||||||
@ -56,6 +55,12 @@ collision_mask = 5
|
|||||||
transform = Transform3D(5.65685, -5.65685, -2.47269e-08, 0, -3.49691e-07, 0.8, -5.65685, -5.65685, -2.47269e-08, 141.335, 0, -122.33)
|
transform = Transform3D(5.65685, -5.65685, -2.47269e-08, 0, -3.49691e-07, 0.8, -5.65685, -5.65685, -2.47269e-08, 141.335, 0, -122.33)
|
||||||
texture = ExtResource("3_ruo5i")
|
texture = ExtResource("3_ruo5i")
|
||||||
|
|
||||||
|
[node name="CSGBox3D11" type="CSGBox3D" parent="Greybox"]
|
||||||
|
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 149.932, -1, -129.284)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(398.5, 1, 288.5)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="GuardTower" type="CSGCombiner3D" parent="Greybox"]
|
[node name="GuardTower" type="CSGCombiner3D" parent="Greybox"]
|
||||||
|
|
||||||
[node name="CSGBox3D6" type="CSGBox3D" parent="Greybox/GuardTower"]
|
[node name="CSGBox3D6" type="CSGBox3D" parent="Greybox/GuardTower"]
|
||||||
@ -76,24 +81,6 @@ use_collision = true
|
|||||||
size = Vector3(0.5, 1, 16)
|
size = Vector3(0.5, 1, 16)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="CSGBox3D11" type="CSGBox3D" parent="Greybox/GuardTower"]
|
|
||||||
transform = Transform3D(-0.0871559, 0, -0.996195, 0, 1, 0, 0.996195, 0, -0.0871559, 29.4115, 40.5, -46.6885)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(0.5, 1, 11.0214)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D12" type="CSGBox3D" parent="Greybox/GuardTower"]
|
|
||||||
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 34.1402, 40.5, -40.499)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(0.5, 1, 11.0214)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D13" type="CSGBox3D" parent="Greybox/GuardTower"]
|
|
||||||
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 23.7052, 40.5, -41.7067)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(0.5, 1, 10.52)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D9" type="CSGBox3D" parent="Greybox/GuardTower"]
|
[node name="CSGBox3D9" type="CSGBox3D" parent="Greybox/GuardTower"]
|
||||||
transform = Transform3D(-1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 10.5, 92, 0)
|
transform = Transform3D(-1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 10.5, 92, 0)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
@ -263,13 +250,439 @@ use_collision = true
|
|||||||
size = Vector3(27.5, 13.5, 30.5)
|
size = Vector3(27.5, 13.5, 30.5)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="CSGBox3D11" type="CSGBox3D" parent="Greybox"]
|
[node name="LowWageResidentialBulk1" type="CSGCombiner3D" parent="Greybox"]
|
||||||
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 149.932, -1, -129.284)
|
|
||||||
|
[node name="GuardBarracks" type="CSGCombiner3D" parent="Greybox/LowWageResidentialBulk1"]
|
||||||
|
|
||||||
|
[node name="Base" type="CSGCombiner3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks"]
|
||||||
|
|
||||||
|
[node name="CSGBox3D43" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.866027, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866027, 29.5069, 18.25, -30.9702)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(398.5, 1, 288.5)
|
size = Vector3(9.5, 53.5, 4)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="LowWageResidentialBulk1" type="CSGCombiner3D" parent="Greybox"]
|
[node name="CSGBox3D11" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.0871559, 0, -0.996195, 0, 1, 0, 0.996195, 0, -0.0871559, 29.4115, 40.5, -46.6885)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 11.0214)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D29" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.0871559, 0, -0.996195, 0, 1, 0, 0.996195, 0, -0.0871559, 31.1979, 27.7658, -49.8463)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 14.0302)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D32" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.0871559, 0, -0.996195, 0, 1, 0, 0.996195, 0, -0.0871559, 24.367, 27.7658, -48.7531)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.08231, 1, 0.610819)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D30" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-1, 0, 5.96046e-08, 0, 1, 0, -5.96046e-08, 0, -1, 37.847, 27.7658, -40.0545)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 18.1063)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D31" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 32.2181, 27.7658, -27.9732)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 13.1352)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D12" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 34.1402, 40.5, -40.499)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 11.0214)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D13" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 23.7052, 40.5, -41.7067)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 10.52)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D40" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 21.9413, 12.75, -34.4471)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(9.5, 42.5, 20.3208)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D44" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.996196, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996196, 28.9539, 15.75, -41.4776)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(11, 48.5, 11)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D71" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.17527, 0.254812, 0.950975, 2.76232e-08, 0.965926, -0.258819, -0.984522, -0.0453627, -0.169298, 31.3255, 44.7558, -34.5483)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.80225, 2, 5.47021)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D90" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(0.175269, -0.254813, -0.950975, 2.03337e-08, 0.965926, -0.258819, 0.984522, 0.0453628, 0.169297, 26.7037, 44.5328, -33.8839)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.5, 2.5, 5.43604)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D88" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-1, -9.16272e-05, -0.000342578, 1.99003e-08, 0.965926, -0.258819, 0.00035426, -0.258819, -0.965927, 20.4544, 34.1536, -39.2039)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.53027, 2.5, 10.5)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D89" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(1, 9.16123e-05, 0.000342488, 1.99003e-08, 0.965926, -0.258819, -0.00035423, 0.258819, 0.965927, 21.9387, 34.1536, -29.7151)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(9.5, 2.5, 10.5)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D42" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 28.9676, 18.25, -34.2724)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(10.5, 53.5, 6.5)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D91" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(0.501426, -0.223931, -0.835721, 1.20306e-08, 0.965926, -0.258819, 0.865203, 0.129778, 0.48434, 27.7153, 44.4813, -29.8682)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.8844, 2.5, 5.03833)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D92" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.501426, 0.223931, 0.835721, 1.20306e-08, 0.965926, -0.258819, -0.865203, -0.129778, -0.48434, 31.3598, 44.4864, -31.9628)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.8584, 2.5, 5.07788)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D93" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 29.1543, 42.5, -31.7809)
|
||||||
|
operation = 2
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(11.0024, 5, 11.5278)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D45" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 33.5024, 42.5, -38.1959)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.205633, 5, 0.347168)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D46" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 34.6033, 42.5, -31.7988)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.205633, 5, 0.347168)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D47" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 26.4046, 42.5, -27.1145)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.205633, 5, 0.347168)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D48" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 24.4772, 42.5, -30.225)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.205633, 5, 0.347168)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D49" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 23.3757, 42.5, -36.4138)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.205633, 5, 0.347168)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D14" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984808, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984808, 34.3949, 40.5, -35.0151)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 6.37109)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D15" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.984808, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984808, 24.0292, 40.5, -33.5381)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 6.37109)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D16" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.866026, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866026, 25.554, 40.5, -28.6674)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 3.85986)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D17" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(0.5, 0, -0.866026, 0, 1, 0, 0.866026, 0, 0.5, 30.4417, 40.5, -29.4922)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 9.66968)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D26" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 31.0881, 27.0217, -48.3002)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 0.5, 14)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D27" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 31.7109, 27.0208, -28.6518)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2.229, 0.5, 13.125)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D28" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Base"]
|
||||||
|
transform = Transform3D(-8.9407e-08, 0, 1, 0, 1, 0, -1, 0, -8.9407e-08, 35.6407, 27.0232, -38.6995)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(15.435, 0.5, 4.556)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="Carvings" type="CSGCombiner3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks"]
|
||||||
|
operation = 2
|
||||||
|
|
||||||
|
[node name="CSGBox3D104" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.0871561, 0, -0.996196, 0, 1, 0, 0.996196, 0, -0.0871561, 29.591, 36.2675, -46.488)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D99" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.996196, 0, 0.0871562, 0, 1, 0, -0.0871562, 0, -0.996196, 27.0596, 28.274, -46.7095)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1.2, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D100" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.996196, 0, 0.0871562, 0, 1, 0, -0.0871562, 0, -0.996196, 32.2649, 28.2909, -46.2541)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1.2, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D101" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(0.0871562, 0, 0.996196, 0, 1, 0, -0.996196, 0, 0.0871562, 34.527, 28.2909, -44.152)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1.2, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D102" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(0.0871562, 0, 0.996196, 0, 1, 0, -0.996196, 0, 0.0871562, 33.9342, 28.2909, -37.3764)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1.2, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D103" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(0.866027, 0, 0.500001, 0, 1, 0, -0.500001, 0, 0.866027, 32.8605, 28.2909, -31.34)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(1.2, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D105" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-1, 0, 2.98023e-07, 0, 1, 0, -2.98023e-07, 0, -1, 21.0521, 28.8178, -40.745)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(7.22, 3, 3.016)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D106" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-1, 0, 2.98023e-07, 0, 1, 0, -2.98023e-07, 0, -1, 20.0999, 30.4233, -34.4384)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5.31517, 6.31152, 19.827)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D107" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-1, 0, 2.98023e-07, 0, 1, 0, -2.98023e-07, 0, -1, 23.5894, 30.4466, -27.4554)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.8652, 6.35828, 5.64597)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D94" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.866027, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866027, 31.422, 39.6069, -32.1784)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2.2, 2.78613, 2.2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D96" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.866027, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866027, 29.5015, 33.2675, -32.5266)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(8.9968, 12, 4.63121)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D97" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 28.7333, 33.2675, -35.1505)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(9.3, 12, 4)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D98" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.996196, 0, 0.0871562, 0, 1, 0, -0.0871562, 0, -0.996196, 28.9842, 33.2675, -40.9084)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(9.6, 12, 11)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D95" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Carvings"]
|
||||||
|
transform = Transform3D(-0.996196, 0, 0.0871562, 0, 1, 0, -0.0871562, 0, -0.996196, 29.1552, 36.2675, -41.507)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(13, 2, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="Furniture" type="Node3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks"]
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 25.4558, 41, -45.2548)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D3" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24.9722, 36.0849, -41.9434)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D4" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 29.3106, 33.0849, -30.6639)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D5" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28.8165, 28.1929, -35.5565)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D6" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 26.0369, 28.1929, -49.1426)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D8" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 36.1854, 28.1929, -41.4481)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D7" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28.703, 28.1929, -27.2256)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D2" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("5_wxle6")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.5269, 41, -39.598)
|
||||||
|
skeleton = NodePath("../../../..")
|
||||||
|
|
||||||
|
[node name="stairs" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("8_pxgdh")]
|
||||||
|
transform = Transform3D(0.5, 0, -2.07846, 0, 1, 0, 0.866025, 0, 1.2, 26.4125, 31.2573, -31.3114)
|
||||||
|
|
||||||
|
[node name="stairs2" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("8_pxgdh")]
|
||||||
|
transform = Transform3D(0.5, 0, -2.07846, 0, 1, 0, 0.866025, 0, 1.2, 25.9125, 30.2573, -32.1774)
|
||||||
|
|
||||||
|
[node name="stairs3" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("8_pxgdh")]
|
||||||
|
transform = Transform3D(0.5, 0, -2.07846, 0, 1, 0, 0.866025, 0, 1.2, 25.4125, 29.2573, -33.0435)
|
||||||
|
|
||||||
|
[node name="stairs4" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("8_pxgdh")]
|
||||||
|
transform = Transform3D(0.34202, 0, -2.25526, 0, 1, 0, 0.939692, 0, 0.820848, 25.0705, 28.2573, -33.9832)
|
||||||
|
|
||||||
|
[node name="stairs5" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("8_pxgdh")]
|
||||||
|
transform = Transform3D(0.34202, 0, -2.25526, 0, 1, 0, 0.939692, 0, 0.820848, 24.7285, 27.2573, -34.9229)
|
||||||
|
|
||||||
|
[node name="CSGBox3D19" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.056, 35.0183, -41.6004)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.673, 0.5, 9.748)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D33" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.3443, 35.0247, -43.8862)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(5.277, 0.5, 0.729)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D34" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.1673, 34.299, -41.5742)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.204956, 1.94421, 0.197428)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D35" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.1641, 33.4089, -41.5785)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2, 0.1, 2)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D36" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.0344, 28.0842, -39.368)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(6.09673, 0.164001, 2.98718)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D37" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(0.0871558, 0, 0.996195, 0, 1, 0, -0.996195, 0, 0.0871558, 29.0014, 27.678, -39.2663)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(4.13038, 0.976303, 0.325424)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D21" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 26.703, 29.5401, -30.6725)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 5.10809, 2.52881)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D22" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.866026, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866026, 27.3289, 29.122, -31.6231)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 4.27194, 1.36505)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D23" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.866026, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866026, 26.8289, 28.625, -32.4892)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 3.27783, 1.36505)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D24" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.866026, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866026, 26.3289, 28.1162, -33.3552)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 2.26025, 1.36505)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D25" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.939693, 0, -0.34202, 0, 1, 0, 0.34202, 0, -0.939693, 26.0065, 27.6185, -34.2048)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1.26477, 1.21268)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D20" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 30.8493, 32.5, -33.0317)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(0.5, 1, 7.00781)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D26" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 33.4444, 35.6629, -33.3736)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2.50293, 7.32574, 2.17114)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="CSGBox3D18" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture"]
|
||||||
|
transform = Transform3D(-0.5, 0, 0.866026, 0, 1, 0, -0.866026, 0, -0.5, 30.0125, 32.113, -31.4695)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(2.34326, 0.226074, 9.09705)
|
||||||
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
|
[node name="ladder" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 31.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder2" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 32.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder3" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 33.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder4" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 34.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder5" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 35.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder6" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 36.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder7" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 37.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder8" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("9_ukfuy")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.2879, 38.9913, -32.4904)
|
||||||
|
|
||||||
|
[node name="ladder-top" parent="Greybox/LowWageResidentialBulk1/GuardBarracks/Furniture" instance=ExtResource("10_wctvs")]
|
||||||
|
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 32.4123, 39.9775, -32.5648)
|
||||||
|
|
||||||
[node name="CSGBox3D72" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
[node name="CSGBox3D72" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
||||||
transform = Transform3D(0.0923823, 0.257713, 0.961797, 1.91013e-08, 0.965926, -0.258819, -0.995726, 0.0239104, 0.0892344, 14.5298, 25.9843, -31.2152)
|
transform = Transform3D(0.0923823, 0.257713, 0.961797, 1.91013e-08, 0.965926, -0.258819, -0.995726, 0.0239104, 0.0892344, 14.5298, 25.9843, -31.2152)
|
||||||
@ -400,30 +813,6 @@ use_collision = true
|
|||||||
size = Vector3(12.5, 34.5, 15.5)
|
size = Vector3(12.5, 34.5, 15.5)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="CSGBox3D40" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 21.9413, 12.75, -34.4471)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(9.5, 42.5, 20.3208)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D42" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-0.984809, 0, -0.173648, 0, 1, 0, 0.173648, 0, -0.984809, 28.9676, 18.25, -34.2724)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(10.5, 53.5, 6.5)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D44" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-0.996196, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996196, 28.9539, 15.75, -41.4776)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(11, 48.5, 11)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D43" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-0.866027, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866027, 29.5069, 18.25, -30.9702)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(9.5, 53.5, 4)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D14" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
[node name="CSGBox3D14" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
||||||
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 12.5004, 8, -43.4127)
|
transform = Transform3D(-0.996195, 0, 0.0871559, 0, 1, 0, -0.0871559, 0, -0.996195, 12.5004, 8, -43.4127)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
@ -688,42 +1077,6 @@ use_collision = true
|
|||||||
size = Vector3(8, 2.5, 6.5)
|
size = Vector3(8, 2.5, 6.5)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
|
||||||
[node name="CSGBox3D71" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-0.17527, 0.254812, 0.950975, 2.76232e-08, 0.965926, -0.258819, -0.984522, -0.0453627, -0.169298, 31.3255, 44.7558, -34.5483)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(6.80225, 2, 5.47021)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D90" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(0.175269, -0.254813, -0.950975, 2.03337e-08, 0.965926, -0.258819, 0.984522, 0.0453628, 0.169297, 26.7037, 44.5328, -33.8839)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(6.5, 2.5, 5.43604)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D91" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(0.501426, -0.223931, -0.835721, 1.20306e-08, 0.965926, -0.258819, 0.865203, 0.129778, 0.48434, 27.7153, 44.4813, -29.8682)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(3.8844, 2.5, 5.03833)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D92" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-0.501426, 0.223931, 0.835721, 1.20306e-08, 0.965926, -0.258819, -0.865203, -0.129778, -0.48434, 31.3598, 44.4864, -31.9628)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(3.8584, 2.5, 5.07788)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D88" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(-1, -9.16272e-05, -0.000342578, 1.99003e-08, 0.965926, -0.258819, 0.00035429, -0.258819, -0.965927, 20.4544, 34.1536, -39.2039)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(6.53027, 2.5, 10.5)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D89" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
|
||||||
transform = Transform3D(1, 9.16123e-05, 0.000342488, 1.99003e-08, 0.965926, -0.258819, -0.000354171, 0.258819, 0.965927, 21.9387, 34.1536, -29.7151)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(9.5, 2.5, 10.5)
|
|
||||||
material = ExtResource("3_cieeo")
|
|
||||||
|
|
||||||
[node name="CSGBox3D54" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
[node name="CSGBox3D54" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1"]
|
||||||
transform = Transform3D(0.202218, 0.253472, 0.945972, 1.99003e-08, 0.965926, -0.258819, -0.979342, 0.0523378, 0.195327, 46.7459, 20.9447, -34.1385)
|
transform = Transform3D(0.202218, 0.253472, 0.945972, 1.99003e-08, 0.965926, -0.258819, -0.979342, 0.0523378, 0.195327, 46.7459, 20.9447, -34.1385)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
@ -790,7 +1143,6 @@ material = ExtResource("3_cieeo")
|
|||||||
|
|
||||||
[node name="CSGBox3D56" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/Streets"]
|
[node name="CSGBox3D56" type="CSGBox3D" parent="Greybox/LowWageResidentialBulk1/Streets"]
|
||||||
transform = Transform3D(-0.0290849, 0, -0.999578, 0, 1, 0, 0.999578, 0, -0.0290849, 39.7994, 2.75, -32.6168)
|
transform = Transform3D(-0.0290849, 0, -0.999578, 0, 1, 0, 0.999578, 0, -0.0290849, 39.7994, 2.75, -32.6168)
|
||||||
visible = false
|
|
||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(7.5, 11.5, 7)
|
size = Vector3(7.5, 11.5, 7)
|
||||||
material = ExtResource("3_cieeo")
|
material = ExtResource("3_cieeo")
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 637 B |
Binary file not shown.
Binary file not shown.
@ -1,33 +0,0 @@
|
|||||||
using Godot;
|
|
||||||
|
|
||||||
// This script is an example of how you can create game systems that
|
|
||||||
// interact with PlayerController. This script applies a low gravity effect
|
|
||||||
// to any PlayerController that enters the Area3D. It does this by modifying
|
|
||||||
// the value of AdditionalGravityPower owned by the Gravity child of
|
|
||||||
// PlayerController.
|
|
||||||
|
|
||||||
namespace Movementtests.player_controller.Examples.MovementTestbed;
|
|
||||||
|
|
||||||
public partial class LowGravityArea3D : Area3D
|
|
||||||
{
|
|
||||||
[Export] public float GravityReduction { set; get; } = 0.4f;
|
|
||||||
|
|
||||||
public override void _Ready()
|
|
||||||
{
|
|
||||||
BodyEntered += (Node3D body) =>
|
|
||||||
{
|
|
||||||
if (body is PlayerController player) {
|
|
||||||
player.Gravity.AdditionalGravityPower *= GravityReduction;
|
|
||||||
GD.Print("Low Gravity Zone Entered");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
BodyExited += (Node3D body) =>
|
|
||||||
{
|
|
||||||
if (body is PlayerController player) {
|
|
||||||
player.Gravity.AdditionalGravityPower /= GravityReduction;
|
|
||||||
GD.Print("Low Gravity Zone Exited");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
uid://ctypnlbfptf03
|
|
File diff suppressed because one or more lines are too long
@ -1,28 +1,33 @@
|
|||||||
[gd_scene load_steps=35 format=3 uid="uid://bei4nhkf8lwdo"]
|
[gd_scene load_steps=44 format=3 uid="uid://bei4nhkf8lwdo"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://bbbrf5ckydfna" path="res://player_controller/Scripts/PlayerController.cs" id="1_poq2x"]
|
[ext_resource type="Script" uid="uid://bbbrf5ckydfna" path="res://player_controller/Scripts/PlayerController.cs" id="1_poq2x"]
|
||||||
|
[ext_resource type="Curve" uid="uid://c2a8soliruf35" path="res://systems/dash/dash_time_dilation.tres" id="2_2q0ik"]
|
||||||
[ext_resource type="Resource" uid="uid://bl5crtu1gkrtr" path="res://systems/inputs/base_mode/base_mode.tres" id="3_cresl"]
|
[ext_resource type="Resource" uid="uid://bl5crtu1gkrtr" path="res://systems/inputs/base_mode/base_mode.tres" id="3_cresl"]
|
||||||
[ext_resource type="Resource" uid="uid://cpdaw41ah5gic" path="res://systems/inputs/base_mode/rotate_y.tres" id="4_rxwoh"]
|
[ext_resource type="Resource" uid="uid://cpdaw41ah5gic" path="res://systems/inputs/base_mode/rotate_y.tres" id="4_rxwoh"]
|
||||||
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="5_4u7i3"]
|
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="5_4u7i3"]
|
||||||
[ext_resource type="Script" uid="uid://dv7v1ywmbvvcd" path="res://player_controller/Scripts/HealthSystem.cs" id="5_umw0l"]
|
[ext_resource type="Script" uid="uid://dv7v1ywmbvvcd" path="res://player_controller/Scripts/HealthSystem.cs" id="5_umw0l"]
|
||||||
[ext_resource type="Script" uid="uid://vuq8rjq3vegn" path="res://player_controller/Scripts/Stamina.cs" id="6_lxtc4"]
|
[ext_resource type="Script" uid="uid://vuq8rjq3vegn" path="res://player_controller/Scripts/Stamina.cs" id="6_lxtc4"]
|
||||||
[ext_resource type="Script" uid="uid://cwbvxlfvmocc1" path="res://player_controller/Scripts/StairsSystem.cs" id="7_bmt5a"]
|
[ext_resource type="Script" uid="uid://cwbvxlfvmocc1" path="res://player_controller/Scripts/StairsSystem.cs" id="7_bmt5a"]
|
||||||
[ext_resource type="Resource" uid="uid://dgfww8118d8gj" path="res://systems/inputs/base_mode/aim.tres" id="7_cresl"]
|
|
||||||
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="8_lhb11"]
|
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="8_lhb11"]
|
||||||
[ext_resource type="Script" uid="uid://dd1yrt7eiiyf4" path="res://player_controller/Scripts/CapsuleCollider.cs" id="8_lmtjd"]
|
[ext_resource type="Script" uid="uid://dd1yrt7eiiyf4" path="res://player_controller/Scripts/CapsuleCollider.cs" id="8_lmtjd"]
|
||||||
|
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="8_obsfv"]
|
||||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="8_qu4wy"]
|
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="8_qu4wy"]
|
||||||
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="9_5p2qc"]
|
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="9_5p2qc"]
|
||||||
[ext_resource type="Script" uid="uid://bt0xv2q8iv1vn" path="res://player_controller/Scripts/Gravity.cs" id="9_lsueh"]
|
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="9_nob5r"]
|
||||||
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="10_4u7i3"]
|
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="10_4u7i3"]
|
||||||
[ext_resource type="Script" uid="uid://g8idirw62qe0" path="res://player_controller/Scripts/Bobbing.cs" id="10_7wk1w"]
|
[ext_resource type="Script" uid="uid://g8idirw62qe0" path="res://player_controller/Scripts/Bobbing.cs" id="10_7wk1w"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/empower_down.tres" id="10_nodcl"]
|
||||||
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="11_cresl"]
|
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="11_cresl"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/empower_release.tres" id="11_ruloh"]
|
||||||
[ext_resource type="PackedScene" uid="uid://0ysqmqphq6mq" path="res://systems/head/head_system.tscn" id="11_rxwoh"]
|
[ext_resource type="PackedScene" uid="uid://0ysqmqphq6mq" path="res://systems/head/head_system.tscn" id="11_rxwoh"]
|
||||||
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/drop.tres" id="12_34snm"]
|
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="12_34snm"]
|
||||||
[ext_resource type="Script" uid="uid://b6k73aj5povgv" path="res://player_controller/Scripts/FieldOfView.cs" id="12_m2mxi"]
|
[ext_resource type="Script" uid="uid://b6k73aj5povgv" path="res://player_controller/Scripts/FieldOfView.cs" id="12_m2mxi"]
|
||||||
|
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="13_nob5r"]
|
||||||
|
[ext_resource type="Shape3D" uid="uid://keseacdcooot" path="res://player_controller/resources/PlayerShape.tres" id="13_r7i3q"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bw5k2gsv3jqcv" path="res://systems/inputs/base_mode/throw.tres" id="16_nob5r"]
|
||||||
[ext_resource type="Script" uid="uid://b5nk6ntlps3x0" path="res://systems/inputs/input_system.gd" id="16_v31n3"]
|
[ext_resource type="Script" uid="uid://b5nk6ntlps3x0" path="res://systems/inputs/input_system.gd" id="16_v31n3"]
|
||||||
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="17_h6vvl"]
|
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="17_h6vvl"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cqduhd4opgwvm" path="res://systems/dash/dash_system.tscn" id="18_q5h8a"]
|
[ext_resource type="PackedScene" uid="uid://cqduhd4opgwvm" path="res://systems/dash/dash_system.tscn" id="18_q5h8a"]
|
||||||
[ext_resource type="Script" uid="uid://dyy5njw6pxoh4" path="res://systems/move/MoveSystem.cs" id="20_rxwoh"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dbe5f0p6lvqtr" path="res://systems/tween_queue/tween_queue_system.tscn" id="22_rpwev"]
|
[ext_resource type="PackedScene" uid="uid://dbe5f0p6lvqtr" path="res://systems/tween_queue/tween_queue_system.tscn" id="22_rpwev"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="24_q5h8a"]
|
[ext_resource type="PackedScene" uid="uid://bcwkugn6v3oy7" path="res://addons/godot_state_charts/utilities/state_chart_debugger.tscn" id="24_q5h8a"]
|
||||||
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="25_wv70j"]
|
[ext_resource type="Script" uid="uid://couw105c3bde4" path="res://addons/godot_state_charts/state_chart.gd" id="25_wv70j"]
|
||||||
@ -32,18 +37,40 @@
|
|||||||
[ext_resource type="Script" uid="uid://tjiji63wlom5" path="res://systems/wall_hug/WallHugSystem.cs" id="27_n7qhm"]
|
[ext_resource type="Script" uid="uid://tjiji63wlom5" path="res://systems/wall_hug/WallHugSystem.cs" id="27_n7qhm"]
|
||||||
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="28_n7qhm"]
|
[ext_resource type="Script" uid="uid://cf1nsco3w0mf6" path="res://addons/godot_state_charts/transition.gd" id="28_n7qhm"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ckm3d6k08a72u" path="res://systems/weapon/weapon.tscn" id="29_wv70j"]
|
[ext_resource type="PackedScene" uid="uid://ckm3d6k08a72u" path="res://systems/weapon/weapon.tscn" id="29_wv70j"]
|
||||||
|
[ext_resource type="Script" uid="uid://bhuwv2nlcrunt" path="res://player_controller/PlayerUi.cs" id="30_2ghaa"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bnwj7ltdfximr" path="res://icon.svg" id="30_h23go"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://chvt6g0xn5c2m" path="res://systems/dash/light-ring.jpg" id="32_lgpc8"]
|
||||||
|
[ext_resource type="Script" uid="uid://b4dwolbvt8our" path="res://addons/godot_state_charts/history_state.gd" id="41_ruloh"]
|
||||||
|
|
||||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_xc2g5"]
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_xc2g5"]
|
||||||
height = 1.7
|
height = 1.7
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wydro"]
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_2q0ik"]
|
||||||
height = 1.7
|
blend_mode = 1
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody3D"]
|
[node name="Player" type="CharacterBody3D"]
|
||||||
script = ExtResource("1_poq2x")
|
script = ExtResource("1_poq2x")
|
||||||
TimeScaleAimInAir = 0.15
|
WalkSpeed = 7.5
|
||||||
MaxJumpBoostAfterDashing = 0.7
|
AccelerationAir = 2.0
|
||||||
MaxNumberOfDashActions = 3
|
DecelerationAir = 0.1
|
||||||
|
Weight = 5.0
|
||||||
|
SimpleJumpStartVelocity = 8.0
|
||||||
|
SimpleJumpHangTimeInFrames = 1
|
||||||
|
SimpleJumpGravityLesseningFactor = 2.5
|
||||||
|
DoubleJumpStartVelocity = 15.0
|
||||||
|
DoubleJumpHangTimeInFrames = 3
|
||||||
|
DoubleJumpGravityLesseningFactor = 1.5
|
||||||
|
MegaJumpStartVelocity = 30.0
|
||||||
|
MegaJumpHangTimeInFrames = 12
|
||||||
|
MegaJumpGravityLesseningFactor = 1.2
|
||||||
|
WallJumpStartVelocity = 8.0
|
||||||
|
SimpleDashStrength = 15.0
|
||||||
|
PoweredDashStrength = 50.0
|
||||||
|
WallHugGravityLesseningFactor = 15.0
|
||||||
|
WallHugDownwardMaxSpeed = 8.0
|
||||||
|
WallHugHorizontalDeceleration = 0.5
|
||||||
|
MaxNumberOfDashActions = 2
|
||||||
|
DashTimeDilationCurve = ExtResource("2_2q0ik")
|
||||||
|
|
||||||
[node name="InputController" type="Node3D" parent="."]
|
[node name="InputController" type="Node3D" parent="."]
|
||||||
script = ExtResource("16_v31n3")
|
script = ExtResource("16_v31n3")
|
||||||
@ -51,12 +78,17 @@ base_mode = ExtResource("3_cresl")
|
|||||||
move = ExtResource("17_h6vvl")
|
move = ExtResource("17_h6vvl")
|
||||||
rotate_y = ExtResource("4_rxwoh")
|
rotate_y = ExtResource("4_rxwoh")
|
||||||
rotate_floorplane = ExtResource("5_4u7i3")
|
rotate_floorplane = ExtResource("5_4u7i3")
|
||||||
aim_pressed = ExtResource("7_cresl")
|
aim_down = ExtResource("8_obsfv")
|
||||||
|
aim_pressed = ExtResource("9_nob5r")
|
||||||
aim_released = ExtResource("8_lhb11")
|
aim_released = ExtResource("8_lhb11")
|
||||||
aim_canceled = ExtResource("9_5p2qc")
|
|
||||||
jump = ExtResource("10_4u7i3")
|
jump = ExtResource("10_4u7i3")
|
||||||
|
jump_pressed = ExtResource("13_nob5r")
|
||||||
|
empower_down = ExtResource("10_nodcl")
|
||||||
|
empower_released = ExtResource("11_ruloh")
|
||||||
|
aim_canceled = ExtResource("9_5p2qc")
|
||||||
hit = ExtResource("11_cresl")
|
hit = ExtResource("11_cresl")
|
||||||
drop = ExtResource("12_34snm")
|
dash = ExtResource("12_34snm")
|
||||||
|
throw = ExtResource("16_nob5r")
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||||
@ -65,7 +97,7 @@ mesh = SubResource("CapsuleMesh_xc2g5")
|
|||||||
|
|
||||||
[node name="CapsuleCollider" type="CollisionShape3D" parent="."]
|
[node name="CapsuleCollider" type="CollisionShape3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||||
shape = SubResource("CapsuleShape3D_wydro")
|
shape = ExtResource("13_r7i3q")
|
||||||
script = ExtResource("8_lmtjd")
|
script = ExtResource("8_lmtjd")
|
||||||
CapsuleDefaultHeight = 1.7
|
CapsuleDefaultHeight = 1.7
|
||||||
|
|
||||||
@ -118,18 +150,6 @@ target_position = Vector3(0, 1, 0)
|
|||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.296, 1.4, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.296, 1.4, 0)
|
||||||
target_position = Vector3(0, 1, 0)
|
target_position = Vector3(0, 1, 0)
|
||||||
|
|
||||||
[node name="MoveSystem" type="Node3D" parent="."]
|
|
||||||
script = ExtResource("20_rxwoh")
|
|
||||||
WalkSpeed = 7.2
|
|
||||||
DecelerationSpeedFactorFloor = 7.0
|
|
||||||
ApexHoldTime = 0.1
|
|
||||||
|
|
||||||
[node name="Gravity" type="Node3D" parent="."]
|
|
||||||
script = ExtResource("9_lsueh")
|
|
||||||
Weight = 3.5
|
|
||||||
StartVelocity = 0.7
|
|
||||||
JumpFromDashSpeedFactor = 4.0
|
|
||||||
|
|
||||||
[node name="TweenQueueSystem" parent="." instance=ExtResource("22_rpwev")]
|
[node name="TweenQueueSystem" parent="." instance=ExtResource("22_rpwev")]
|
||||||
|
|
||||||
[node name="WallHugSystem" type="Node3D" parent="."]
|
[node name="WallHugSystem" type="Node3D" parent="."]
|
||||||
@ -153,7 +173,7 @@ target_position = Vector3(-1, 0, 0)
|
|||||||
collision_mask = 2
|
collision_mask = 2
|
||||||
|
|
||||||
[node name="DashSystem" parent="." instance=ExtResource("18_q5h8a")]
|
[node name="DashSystem" parent="." instance=ExtResource("18_q5h8a")]
|
||||||
DashSpeed = 0.1
|
DashSpeed = 0.2
|
||||||
PostDashSpeed = 30.0
|
PostDashSpeed = 30.0
|
||||||
|
|
||||||
[node name="WeaponRoot" type="Node3D" parent="."]
|
[node name="WeaponRoot" type="Node3D" parent="."]
|
||||||
@ -163,8 +183,11 @@ transform = Transform3D(1, 0, 0, 0, 0.173648, -0.984808, 0, 0.984808, 0.173648,
|
|||||||
ThrowForce = 15.0
|
ThrowForce = 15.0
|
||||||
StraightThrowDuration = 0.05
|
StraightThrowDuration = 0.05
|
||||||
|
|
||||||
[node name="CoyoteTime" type="Timer" parent="."]
|
[node name="DashCooldown" type="Timer" parent="."]
|
||||||
wait_time = 0.2
|
one_shot = true
|
||||||
|
|
||||||
|
[node name="PowerCooldown" type="Timer" parent="."]
|
||||||
|
wait_time = 2.0
|
||||||
one_shot = true
|
one_shot = true
|
||||||
|
|
||||||
[node name="TimeScaleAimInAir" type="Timer" parent="."]
|
[node name="TimeScaleAimInAir" type="Timer" parent="."]
|
||||||
@ -172,17 +195,62 @@ wait_time = 2.0
|
|||||||
one_shot = true
|
one_shot = true
|
||||||
ignore_time_scale = true
|
ignore_time_scale = true
|
||||||
|
|
||||||
[node name="TimeAfterDashing" type="Timer" parent="."]
|
|
||||||
wait_time = 0.3
|
|
||||||
one_shot = true
|
|
||||||
|
|
||||||
[node name="StateChartDebugger" parent="." instance=ExtResource("24_q5h8a")]
|
[node name="StateChartDebugger" parent="." instance=ExtResource("24_q5h8a")]
|
||||||
offset_left = 1530.0
|
offset_left = 1524.0
|
||||||
offset_top = 1.0
|
offset_top = 1.0
|
||||||
offset_right = -2.0
|
offset_right = -8.0
|
||||||
offset_bottom = 1.0
|
offset_bottom = 1.0
|
||||||
initial_node_to_watch = NodePath("../StateChart")
|
initial_node_to_watch = NodePath("../StateChart")
|
||||||
|
|
||||||
|
[node name="UI" type="CanvasLayer" parent="."]
|
||||||
|
script = ExtResource("30_2ghaa")
|
||||||
|
|
||||||
|
[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
|
||||||
|
offset_right = 128.0
|
||||||
|
offset_bottom = 81.0
|
||||||
|
|
||||||
|
[node name="DashesLabel" type="Label" parent="UI/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Dashes"
|
||||||
|
|
||||||
|
[node name="HBoxContainer" type="HBoxContainer" parent="UI/VBoxContainer"]
|
||||||
|
custom_minimum_size = Vector2(0, 30)
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash1" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash2" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
|
[node name="Dash3" type="TextureRect" parent="UI/VBoxContainer/HBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("30_h23go")
|
||||||
|
expand_mode = 2
|
||||||
|
|
||||||
|
[node name="DashCooldownIndicator" type="ColorRect" parent="UI"]
|
||||||
|
unique_name_in_owner = true
|
||||||
|
offset_left = 910.0
|
||||||
|
offset_top = 549.0
|
||||||
|
offset_right = 1010.0
|
||||||
|
offset_bottom = 559.0
|
||||||
|
|
||||||
|
[node name="CenterContainer" type="CenterContainer" parent="UI"]
|
||||||
|
custom_minimum_size = Vector2(1920, 1080)
|
||||||
|
offset_right = 1919.0
|
||||||
|
offset_bottom = 1080.0
|
||||||
|
|
||||||
|
[node name="CenterIcon" type="TextureRect" parent="UI/CenterContainer"]
|
||||||
|
material = SubResource("CanvasItemMaterial_2q0ik")
|
||||||
|
custom_minimum_size = Vector2(5, 5)
|
||||||
|
layout_mode = 2
|
||||||
|
texture = ExtResource("32_lgpc8")
|
||||||
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="StateChart" type="Node" parent="."]
|
[node name="StateChart" type="Node" parent="."]
|
||||||
script = ExtResource("25_wv70j")
|
script = ExtResource("25_wv70j")
|
||||||
metadata/_custom_type_script = "uid://couw105c3bde4"
|
metadata/_custom_type_script = "uid://couw105c3bde4"
|
||||||
@ -190,90 +258,148 @@ metadata/_custom_type_script = "uid://couw105c3bde4"
|
|||||||
[node name="Root" type="Node" parent="StateChart"]
|
[node name="Root" type="Node" parent="StateChart"]
|
||||||
script = ExtResource("27_infe6")
|
script = ExtResource("27_infe6")
|
||||||
|
|
||||||
[node name="Actions" type="Node" parent="StateChart/Root"]
|
[node name="Aim" type="Node" parent="StateChart/Root"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("WeaponInHand")
|
initial_state = NodePath("Off")
|
||||||
metadata/_custom_type_script = "uid://c1vp0ojjvaby1"
|
|
||||||
|
|
||||||
[node name="WeaponInHand" type="Node" parent="StateChart/Root/Actions"]
|
[node name="ToOff" type="Node" parent="StateChart/Root/Aim"]
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToAiming" type="Node" parent="StateChart/Root/Actions/WeaponInHand"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Aiming")
|
to = NodePath("../Off")
|
||||||
event = &"aim_pressed"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="Aiming" type="Node" parent="StateChart/Root/Actions"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToWeaponInHand" type="Node" parent="StateChart/Root/Actions/Aiming"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../WeaponInHand")
|
|
||||||
event = &"aim_canceled"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="ToDashing" type="Node" parent="StateChart/Root/Actions/Aiming"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Dashing")
|
|
||||||
event = &"aim_released"
|
event = &"aim_released"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="ToWeaponThrown" type="Node" parent="StateChart/Root/Actions/Aiming"]
|
[node name="Off" type="Node" parent="StateChart/Root/Aim"]
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../WeaponThrown")
|
|
||||||
event = &"hit_pressed"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="Dashing" type="Node" parent="StateChart/Root/Actions"]
|
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="ToWeaponInHand" type="Node" parent="StateChart/Root/Actions/Dashing"]
|
[node name="ToOn" type="Node" parent="StateChart/Root/Aim/Off"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../WeaponInHand")
|
to = NodePath("../../On")
|
||||||
event = &"dash_ended"
|
event = &"aim_down"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="ToHanging" type="Node" parent="StateChart/Root/Actions/Dashing"]
|
[node name="On" type="Node" parent="StateChart/Root/Aim"]
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Hanging")
|
|
||||||
event = &"dash_to_planted"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="WeaponThrown" type="Node" parent="StateChart/Root/Actions"]
|
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnAim" type="Node" parent="StateChart/Root/Actions/WeaponThrown"]
|
[node name="ToCancel" type="Node" parent="StateChart/Root/Aim/On"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Dashing")
|
to = NodePath("../../Canceled")
|
||||||
event = &"aim_pressed"
|
event = &"cancel_aim"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Hanging" type="Node" parent="StateChart/Root/Actions"]
|
[node name="Canceled" type="Node" parent="StateChart/Root/Aim"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Actions/Hanging"]
|
[node name="Empower" type="Node" parent="StateChart/Root"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("Off")
|
||||||
|
|
||||||
|
[node name="Off" type="Node" parent="StateChart/Root/Empower"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="ToOn" type="Node" parent="StateChart/Root/Empower/Off"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../WeaponInHand")
|
to = NodePath("../../On")
|
||||||
event = &"jump"
|
event = &"empower_down"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnDrop" type="Node" parent="StateChart/Root/Actions/Hanging"]
|
[node name="On" type="Node" parent="StateChart/Root/Empower"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="ToOff" type="Node" parent="StateChart/Root/Empower/On"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../WeaponInHand")
|
to = NodePath("../../Off")
|
||||||
event = &"drop"
|
event = &"empower_released"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnMantle" type="Node" parent="StateChart/Root/Actions/Hanging"]
|
[node name="PowerReserve" type="Node" parent="StateChart/Root"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("Full")
|
||||||
|
|
||||||
|
[node name="ToExpired" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../WeaponInHand")
|
to = NodePath("../Expired")
|
||||||
event = &"mantle"
|
event = &"expired"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Recharge" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../AtLeastOneCharge")
|
||||||
|
event = &"recharge"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="ToFull" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../Full")
|
||||||
|
event = &"fully_charged"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Expired" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="AtLeastOneCharge" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="Full" type="Node" parent="StateChart/Root/PowerReserve"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="PowerUsed" type="Node" parent="StateChart/Root/PowerReserve/Full"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../AtLeastOneCharge")
|
||||||
|
event = &"power_used"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="WeaponState" type="Node" parent="StateChart/Root"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("InHand")
|
||||||
|
metadata/_custom_type_script = "uid://c1vp0ojjvaby1"
|
||||||
|
|
||||||
|
[node name="ToPlanted" type="Node" parent="StateChart/Root/WeaponState"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../Planted")
|
||||||
|
event = &"plant_weapon"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="ToHand" type="Node" parent="StateChart/Root/WeaponState"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../InHand")
|
||||||
|
event = &"recover_weapond"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="InHand" type="Node" parent="StateChart/Root/WeaponState"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="ToThrown" type="Node" parent="StateChart/Root/WeaponState/InHand"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Flying")
|
||||||
|
event = &"throw"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Flying" type="Node" parent="StateChart/Root/WeaponState"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="ToPlanted" type="Node" parent="StateChart/Root/WeaponState/Flying"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Planted")
|
||||||
|
event = &"plant_weapon"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Planted" type="Node" parent="StateChart/Root/WeaponState"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="Movement" type="Node" parent="StateChart/Root"]
|
[node name="Movement" type="Node" parent="StateChart/Root"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("Grounded")
|
initial_state = NodePath("Grounded")
|
||||||
|
|
||||||
|
[node name="Reset" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("41_ruloh")
|
||||||
|
default_state = NodePath("../Grounded")
|
||||||
|
|
||||||
|
[node name="OnFall" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../Airborne/Falling")
|
||||||
|
event = &"falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement"]
|
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../Mantling")
|
to = NodePath("../Mantling")
|
||||||
@ -282,86 +408,155 @@ delay_in_seconds = "0.0"
|
|||||||
|
|
||||||
[node name="OnHang" type="Node" parent="StateChart/Root/Movement"]
|
[node name="OnHang" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../Hanging")
|
to = NodePath("../OnWall/Hanging")
|
||||||
event = &"dash_to_planted"
|
event = &"dash_to_planted"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnPoweredDash" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../Dashing/PoweredDash")
|
||||||
|
event = &"powered_dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Mantling" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnMantleFinished" type="Node" parent="StateChart/Root/Movement/Mantling"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Grounded")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Jump" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("SimpleJump")
|
||||||
|
|
||||||
|
[node name="SimpleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../MegaJump")
|
||||||
|
event = &"megajump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/SimpleJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/DoubleJumpEnabled")
|
||||||
|
event = &"jump_ended"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="DoubleJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../MegaJump")
|
||||||
|
event = &"megajump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/DoubleJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/Falling")
|
||||||
|
event = &"jump_ended"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="MegaJump" type="Node" parent="StateChart/Root/Movement/Jump"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnJumpEnded" type="Node" parent="StateChart/Root/Movement/Jump/MegaJump"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/Falling")
|
||||||
|
event = &"jump_ended"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Dashing" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("Dash")
|
||||||
|
|
||||||
|
[node name="OnDashEnded" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Airborne/Reset")
|
||||||
|
event = &"dash_finished"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMantle" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Mantling")
|
||||||
|
event = &"mantle"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Dash" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="PoweredDash" type="Node" parent="StateChart/Root/Movement/Dashing"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="Grounded" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Grounded" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Dashing/Dash")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Airborne/Jump")
|
to = NodePath("../../Jump/SimpleJump")
|
||||||
event = &"jump"
|
event = &"jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Jump/MegaJump")
|
||||||
|
event = &"megajump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
[node name="OnAirborne" type="Node" parent="StateChart/Root/Movement/Grounded"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Airborne/CoyoteEnabled")
|
to = NodePath("../../Airborne/CoyoteEnabled")
|
||||||
event = &"start_falling"
|
event = &"start_falling"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Mantling" type="Node" parent="StateChart/Root/Movement"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToGrounded" type="Node" parent="StateChart/Root/Movement/Mantling"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Grounded")
|
|
||||||
event = &"to_grounded"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="Hanging" type="Node" parent="StateChart/Root/Movement"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Hanging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Airborne/JumpFromWall")
|
|
||||||
event = &"jump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnDrop" type="Node" parent="StateChart/Root/Movement/Hanging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Airborne/CoyoteEnabled")
|
|
||||||
event = &"drop"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="Airborne" type="Node" parent="StateChart/Root/Movement"]
|
[node name="Airborne" type="Node" parent="StateChart/Root/Movement"]
|
||||||
script = ExtResource("26_infe6")
|
script = ExtResource("26_infe6")
|
||||||
initial_state = NodePath("CoyoteEnabled")
|
initial_state = NodePath("CoyoteEnabled")
|
||||||
|
|
||||||
|
[node name="Reset" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
|
script = ExtResource("41_ruloh")
|
||||||
|
default_state = NodePath("../CoyoteEnabled")
|
||||||
|
|
||||||
|
[node name="OnWallHug" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../OnWall/Hugging")
|
||||||
|
event = &"wall_hug"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnDash" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Dashing/Dash")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Grounded")
|
to = NodePath("../../Grounded")
|
||||||
event = &"grounded"
|
event = &"grounded"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnWallHug" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../WallHugging")
|
|
||||||
event = &"wall_hug"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="WallHugging" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/WallHugging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../JumpFromWall")
|
|
||||||
event = &"jump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="OnLeaveWall" type="Node" parent="StateChart/Root/Movement/Airborne/WallHugging"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Falling")
|
|
||||||
event = &"start_falling"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="CoyoteEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="CoyoteEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Jump/MegaJump")
|
||||||
|
event = &"megajump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/CoyoteEnabled"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Jump")
|
to = NodePath("../../../Jump/SimpleJump")
|
||||||
event = &"jump"
|
event = &"jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
@ -371,52 +566,19 @@ to = NodePath("../../DoubleJumpEnabled")
|
|||||||
event = &"coyote_expired"
|
event = &"coyote_expired"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Jump" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToDoubleJump" type="Node" parent="StateChart/Root/Movement/Airborne/Jump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../DoubleJumpEnabled")
|
|
||||||
event = &"to_double_jump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="ToFalling" type="Node" parent="StateChart/Root/Movement/Airborne/Jump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Falling")
|
|
||||||
event = &"jump_from_dash"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="JumpFromWall" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToDoubleJump" type="Node" parent="StateChart/Root/Movement/Airborne/JumpFromWall"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../DoubleJumpEnabled")
|
|
||||||
event = &"to_double_jump"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="ToFalling" type="Node" parent="StateChart/Root/Movement/Airborne/JumpFromWall"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
|
||||||
to = NodePath("../../Falling")
|
|
||||||
event = &"jump_from_dash"
|
|
||||||
delay_in_seconds = "0.0"
|
|
||||||
|
|
||||||
[node name="DoubleJumpEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="DoubleJumpEnabled" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
script = ExtResource("27_34snm")
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../DoubleJump")
|
to = NodePath("../../../Jump/MegaJump")
|
||||||
event = &"jump"
|
event = &"megajump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="DoubleJump" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJumpEnabled"]
|
||||||
script = ExtResource("27_34snm")
|
|
||||||
|
|
||||||
[node name="ToFalling" type="Node" parent="StateChart/Root/Movement/Airborne/DoubleJump"]
|
|
||||||
script = ExtResource("28_n7qhm")
|
script = ExtResource("28_n7qhm")
|
||||||
to = NodePath("../../Falling")
|
to = NodePath("../../../Jump/DoubleJump")
|
||||||
event = &"to_falling"
|
event = &"jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[node name="Falling" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
[node name="Falling" type="Node" parent="StateChart/Root/Movement/Airborne"]
|
||||||
@ -428,12 +590,80 @@ to = NodePath("../../DoubleJumpEnabled")
|
|||||||
event = &"enable_double_jump"
|
event = &"enable_double_jump"
|
||||||
delay_in_seconds = "0.0"
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnWall" type="Node" parent="StateChart/Root/Movement"]
|
||||||
|
script = ExtResource("26_infe6")
|
||||||
|
initial_state = NodePath("Hugging")
|
||||||
|
|
||||||
|
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Grounded")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnJump" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Jump/DoubleJump")
|
||||||
|
event = &"jump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnMegajump" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Jump/MegaJump")
|
||||||
|
event = &"megajump"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="HugCanceled" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="ToHanging" type="Node" parent="StateChart/Root/Movement/OnWall/HugCanceled"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Hanging")
|
||||||
|
event = &"oh_hit_wall"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Hugging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnGrounded" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Grounded")
|
||||||
|
event = &"grounded"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnLeaveWall" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../../Airborne/CoyoteEnabled")
|
||||||
|
event = &"start_falling"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="OnDrop" type="Node" parent="StateChart/Root/Movement/OnWall/Hugging"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../HugCanceled")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
|
[node name="Hanging" type="Node" parent="StateChart/Root/Movement/OnWall"]
|
||||||
|
script = ExtResource("27_34snm")
|
||||||
|
|
||||||
|
[node name="OnDrop" type="Node" parent="StateChart/Root/Movement/OnWall/Hanging"]
|
||||||
|
script = ExtResource("28_n7qhm")
|
||||||
|
to = NodePath("../../Hugging")
|
||||||
|
event = &"dash"
|
||||||
|
delay_in_seconds = "0.0"
|
||||||
|
|
||||||
[connection signal="input_aim_canceled" from="InputController" to="." method="OnInputAimCanceled"]
|
[connection signal="input_aim_canceled" from="InputController" to="." method="OnInputAimCanceled"]
|
||||||
|
[connection signal="input_aim_down" from="InputController" to="." method="OnInputAimDown"]
|
||||||
[connection signal="input_aim_pressed" from="InputController" to="." method="OnInputAimPressed"]
|
[connection signal="input_aim_pressed" from="InputController" to="." method="OnInputAimPressed"]
|
||||||
[connection signal="input_aim_released" from="InputController" to="." method="OnInputAimReleased"]
|
[connection signal="input_aim_released" from="InputController" to="." method="OnInputAimReleased"]
|
||||||
[connection signal="input_drop" from="InputController" to="." method="OnInputDropPressed"]
|
[connection signal="input_dash" from="InputController" to="." method="OnInputDashPressed"]
|
||||||
|
[connection signal="input_empower_down" from="InputController" to="." method="OnInputEmpowerDown"]
|
||||||
|
[connection signal="input_empower_released" from="InputController" to="." method="OnInputEmpowerReleased"]
|
||||||
[connection signal="input_hit" from="InputController" to="." method="OnInputHitPressed"]
|
[connection signal="input_hit" from="InputController" to="." method="OnInputHitPressed"]
|
||||||
[connection signal="input_jump" from="InputController" to="." method="OnInputJumpPressed"]
|
[connection signal="input_jump_ended" from="InputController" to="." method="OnInputJumpEnded"]
|
||||||
|
[connection signal="input_jump_ongoing" from="InputController" to="." method="OnInputJumpOngoing"]
|
||||||
|
[connection signal="input_jump_started" from="InputController" to="." method="OnInputJumpStarted"]
|
||||||
[connection signal="input_move" from="InputController" to="." method="OnInputMove"]
|
[connection signal="input_move" from="InputController" to="." method="OnInputMove"]
|
||||||
[connection signal="input_rotate_floorplane" from="InputController" to="." method="OnInputRotateFloorplane"]
|
[connection signal="input_rotate_floorplane" from="InputController" to="." method="OnInputRotateFloorplane"]
|
||||||
[connection signal="input_rotate_y" from="InputController" to="." method="OnInputRotateY"]
|
[connection signal="input_rotate_y" from="InputController" to="." method="OnInputRotateY"]
|
||||||
|
[connection signal="input_throw" from="InputController" to="." method="OnInputThrowPressed"]
|
||||||
|
[connection signal="WallDetected" from="WallHugSystem" to="." method="OnWallDetected"]
|
||||||
|
26
player_controller/PlayerUi.cs
Normal file
26
player_controller/PlayerUi.cs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public partial class PlayerUi : CanvasLayer
|
||||||
|
{
|
||||||
|
private TextureRect[] _dashIcons = new TextureRect[3];
|
||||||
|
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
base._Ready();
|
||||||
|
|
||||||
|
_dashIcons[0] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash1");
|
||||||
|
_dashIcons[1] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash2");
|
||||||
|
_dashIcons[2] = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Dash3");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetNumberOfDashesLeft(int numberOfDashes)
|
||||||
|
{
|
||||||
|
int index = 1;
|
||||||
|
foreach (var dashIcon in _dashIcons)
|
||||||
|
{
|
||||||
|
dashIcon.SetVisible(index <= numberOfDashes);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
player_controller/PlayerUi.cs.uid
Normal file
1
player_controller/PlayerUi.cs.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://bhuwv2nlcrunt
|
@ -12,6 +12,8 @@ public partial class Gravity: Node3D
|
|||||||
public float DoubleJumpSpeedFactor { get; set; } = 2f;
|
public float DoubleJumpSpeedFactor { get; set; } = 2f;
|
||||||
[Export(PropertyHint.Range, "0.1,10,0.1,or_greater")]
|
[Export(PropertyHint.Range, "0.1,10,0.1,or_greater")]
|
||||||
public float JumpFromDashSpeedFactor { get; set; } = 2f;
|
public float JumpFromDashSpeedFactor { get; set; } = 2f;
|
||||||
|
[Export(PropertyHint.Range, "0.1,10,0.1,or_greater")]
|
||||||
|
public float JumpFromWallSpeedFactor { get; set; } = 2f;
|
||||||
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
[Export(PropertyHint.Range, "0,1,0.01,or_greater")]
|
||||||
public float AdditionalGravityPower { get; set; } = 1f;
|
public float AdditionalGravityPower { get; set; } = 1f;
|
||||||
|
|
||||||
@ -24,6 +26,7 @@ public partial class Gravity: Node3D
|
|||||||
|
|
||||||
public float CalculateJumpForce() => _gravity * (StartVelocity / AdditionalGravityPower);
|
public float CalculateJumpForce() => _gravity * (StartVelocity / AdditionalGravityPower);
|
||||||
public float CalculateJumpFromDashForce() => CalculateJumpForce() * JumpFromDashSpeedFactor;
|
public float CalculateJumpFromDashForce() => CalculateJumpForce() * JumpFromDashSpeedFactor;
|
||||||
|
public float CalculateJumpFromWallForce() => CalculateJumpForce() * JumpFromWallSpeedFactor;
|
||||||
public float CalculateDoubleJumpForce() => CalculateJumpForce() * DoubleJumpSpeedFactor;
|
public float CalculateDoubleJumpForce() => CalculateJumpForce() * DoubleJumpSpeedFactor;
|
||||||
public float CalculateGravityForce() => _gravity * Weight;
|
public float CalculateGravityForce() => _gravity * Weight;
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,6 @@ public partial class HealthSystem : Node3D
|
|||||||
private float _currentHealthInPrevFrame;
|
private float _currentHealthInPrevFrame;
|
||||||
|
|
||||||
private float _currentVelocityYInAir;
|
private float _currentVelocityYInAir;
|
||||||
private Gravity _gravity;
|
|
||||||
|
|
||||||
private CharacterBody3D _characterBody3D;
|
private CharacterBody3D _characterBody3D;
|
||||||
|
|
||||||
@ -144,7 +143,6 @@ public partial class HealthSystem : Node3D
|
|||||||
|
|
||||||
public struct HealthSystemInitParams
|
public struct HealthSystemInitParams
|
||||||
{
|
{
|
||||||
public Gravity Gravity;
|
|
||||||
public CharacterBody3D Parent;
|
public CharacterBody3D Parent;
|
||||||
public Camera3D Camera;
|
public Camera3D Camera;
|
||||||
public Node3D Head;
|
public Node3D Head;
|
||||||
@ -160,7 +158,6 @@ public partial class HealthSystem : Node3D
|
|||||||
|
|
||||||
_currentSpeed = SpeedMin;
|
_currentSpeed = SpeedMin;
|
||||||
|
|
||||||
_gravity = initParams.Gravity;
|
|
||||||
_characterBody3D = initParams.Parent;
|
_characterBody3D = initParams.Parent;
|
||||||
_camera = initParams.Camera;
|
_camera = initParams.Camera;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
4
player_controller/resources/PlayerShape.tres
Normal file
4
player_controller/resources/PlayerShape.tres
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gd_resource type="CapsuleShape3D" format=3 uid="uid://keseacdcooot"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
height = 1.7
|
@ -15,7 +15,7 @@ warnings/check_invalid_track_paths=false
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Movement tests"
|
config/name="Movement tests"
|
||||||
run/main_scene="uid://dwo50456dv6va"
|
run/main_scene="uid://pk8ypa04qy6x"
|
||||||
config/features=PackedStringArray("4.4", "C#", "Forward Plus")
|
config/features=PackedStringArray("4.4", "C#", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ ProjectUISoundController="*res://addons/maaacks_game_template/base/scenes/autolo
|
|||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/viewport_width=1980
|
window/size/viewport_width=1920
|
||||||
window/size/viewport_height=1080
|
window/size/viewport_height=1080
|
||||||
|
|
||||||
[dotnet]
|
[dotnet]
|
||||||
|
@ -2,38 +2,54 @@
|
|||||||
|
|
||||||
namespace Movementtests.systems;
|
namespace Movementtests.systems;
|
||||||
|
|
||||||
public record DashComputationRecord(bool HasHit, Vector3 Location, Vector3 CollisionPoint, Vector3 CollisionNormal);
|
|
||||||
|
|
||||||
public record DashResolveRecord(bool EndWithMantle, Vector3 DashLocation, Vector3 MantleLocation);
|
|
||||||
|
|
||||||
public partial class DashSystem: Node3D
|
public partial class DashSystem: Node3D
|
||||||
{
|
{
|
||||||
|
public record DashLocation(bool HasHit, Vector3 TargetLocation);
|
||||||
|
|
||||||
|
|
||||||
[Export(PropertyHint.Range, "0,0.2,0.01,or_greater")]
|
[Export(PropertyHint.Range, "0,0.2,0.01,or_greater")]
|
||||||
public float DashSpeed { get; set; } = 0.05f;
|
public float DashSpeed { get; set; } = 0.1f;
|
||||||
[Export(PropertyHint.Range, "0,1000,1,or_greater")]
|
[Export(PropertyHint.Range, "0,1000,1,or_greater")]
|
||||||
public float PostDashSpeed { get; set; } = 0f;
|
public float PostDashSpeed { get; set; } = 0f;
|
||||||
|
|
||||||
|
public bool HasHit { get; set; }
|
||||||
|
public Vector3 TargetLocation { get; set; }
|
||||||
|
public Vector3 CollisionPoint { get; set; }
|
||||||
|
public Vector3 CollisionNormal { get; set; }
|
||||||
|
public Vector3 PlannedPlayerLocation { get; set; }
|
||||||
|
|
||||||
|
public bool ShouldMantle { get; set; }
|
||||||
|
public Vector3 PlannedMantleLocation { get; set; }
|
||||||
|
|
||||||
private Node3D _head;
|
private Node3D _head;
|
||||||
private ShapeCast3D _dashCast3D;
|
private ShapeCast3D _dashCast3D;
|
||||||
|
private ShapeCast3D _playerCast3D;
|
||||||
private Camera3D _camera;
|
private Camera3D _camera;
|
||||||
private TweenQueueSystem _tweenQueueSystem;
|
private TweenQueueSystem _tweenQueueSystem;
|
||||||
private Vector3 _dashDirection = Vector3.Zero;
|
private Vector3 _dashDirection = Vector3.Zero;
|
||||||
|
|
||||||
private MantleSystem _mantleSystem;
|
private MantleSystem _mantleSystem;
|
||||||
private MeshInstance3D _dashTarget;
|
private MeshInstance3D _dashTarget;
|
||||||
|
private CpuParticles3D _dashIndicator;
|
||||||
|
private AnimationPlayer _dashIndicatorAnim;
|
||||||
|
|
||||||
public DashResolveRecord DashResolve { get; set; }
|
[Export]
|
||||||
public DashComputationRecord DashComputation { get; set; }
|
public PackedScene DashIndicatorScene { get; set; }
|
||||||
|
|
||||||
|
|
||||||
[Signal]
|
[Signal]
|
||||||
public delegate void DashStartedEventHandler();
|
public delegate void DashStartedEventHandler();
|
||||||
[Signal]
|
[Signal]
|
||||||
public delegate void DashEndedEventHandler();
|
public delegate void DashEndedEventHandler();
|
||||||
|
[Signal]
|
||||||
|
public delegate void DashProgressEventHandler(float progress);
|
||||||
|
|
||||||
|
private Vector3 _globalDashPosition = Vector3.Zero;
|
||||||
|
|
||||||
public void Init(Node3D head, Camera3D camera, TweenQueueSystem tweenQueueSystem)
|
public void Init(Node3D head, Camera3D camera, TweenQueueSystem tweenQueueSystem)
|
||||||
{
|
{
|
||||||
_dashCast3D = GetNode<ShapeCast3D>("DashCast3D");
|
_dashCast3D = GetNode<ShapeCast3D>("DashCast3D");
|
||||||
|
_playerCast3D = GetNode<ShapeCast3D>("PlayerShapeCast3D");
|
||||||
|
|
||||||
_head = head;
|
_head = head;
|
||||||
_camera = camera;
|
_camera = camera;
|
||||||
_tweenQueueSystem = tweenQueueSystem;
|
_tweenQueueSystem = tweenQueueSystem;
|
||||||
@ -43,19 +59,47 @@ public partial class DashSystem: Node3D
|
|||||||
|
|
||||||
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
_dashTarget = GetNode<MeshInstance3D>("DashTarget");
|
||||||
_dashTarget.SetVisible(false);
|
_dashTarget.SetVisible(false);
|
||||||
|
_dashIndicator = GetNode<CpuParticles3D>("DashIndicator");
|
||||||
|
_dashIndicatorAnim = GetNode<AnimationPlayer>("DashIndicator/AnimationPlayer");
|
||||||
}
|
}
|
||||||
|
|
||||||
private DashComputationRecord ComputeDashLocation()
|
private DashLocation ComputeDashLocation()
|
||||||
{
|
{
|
||||||
if (!_dashCast3D.IsColliding())
|
|
||||||
|
var targetLocation = _dashCast3D.ToGlobal(_dashCast3D.TargetPosition);
|
||||||
|
var hasHit = _dashCast3D.IsColliding();
|
||||||
|
if (!hasHit)
|
||||||
{
|
{
|
||||||
return new DashComputationRecord(false, _dashCast3D.ToGlobal(_dashCast3D.TargetPosition), Vector3.Zero, Vector3.Zero);
|
return new DashLocation(false, targetLocation);
|
||||||
}
|
}
|
||||||
var collisionPoint = _dashCast3D.GetCollisionPoint(0);
|
|
||||||
var collisionNormal = _dashCast3D.GetCollisionNormal(0);
|
CollisionPoint = _dashCast3D.GetCollisionPoint(0);
|
||||||
var collisionShape = (SphereShape3D) _dashCast3D.GetShape();
|
CollisionNormal = _dashCast3D.GetCollisionNormal(0);
|
||||||
var centerSphereLocation = collisionPoint + collisionNormal * collisionShape.Radius;
|
|
||||||
return new DashComputationRecord(true, centerSphereLocation, collisionPoint, collisionNormal);
|
var fraction = _dashCast3D.GetClosestCollisionSafeFraction();
|
||||||
|
var globalSweepPath = TargetLocation - _dashCast3D.GlobalPosition;
|
||||||
|
var locationAlongPath = _dashCast3D.GlobalPosition + globalSweepPath * fraction;
|
||||||
|
|
||||||
|
// Pushes the point down when dashing to under a platform so head doesn't clip
|
||||||
|
var maxPushDownDistance = 0.9f;
|
||||||
|
var correctionProportion = (float) Mathf.Remap(CollisionNormal.Y, -0.5, -1, 0, 1);
|
||||||
|
var proportion = (float)Mathf.Remap(_dashCast3D.GlobalRotation.X, 0, 1.57, 0, 1);
|
||||||
|
var finalLocation = locationAlongPath
|
||||||
|
+ CollisionNormal
|
||||||
|
* maxPushDownDistance
|
||||||
|
* Mathf.Clamp(proportion, 0, 1)
|
||||||
|
* Mathf.Clamp(correctionProportion, 0, 1);
|
||||||
|
|
||||||
|
return new DashLocation(true, finalLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DashLocation GetDashLocationInDirection(Vector3 direction)
|
||||||
|
{
|
||||||
|
var angle = Mathf.Atan2(direction.X, direction.Z);
|
||||||
|
GD.Print(angle);
|
||||||
|
var rotation = _head.Rotation.Y + angle*2.0f;
|
||||||
|
_dashCast3D.SetRotation(new Vector3(0, rotation, 0));
|
||||||
|
return ComputeDashLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PrepareDash()
|
public void PrepareDash()
|
||||||
@ -67,26 +111,24 @@ public partial class DashSystem: Node3D
|
|||||||
_head.Rotation.Y,
|
_head.Rotation.Y,
|
||||||
_camera.Rotation.Z));
|
_camera.Rotation.Z));
|
||||||
|
|
||||||
DashComputation = ComputeDashLocation();
|
(HasHit, PlannedPlayerLocation) = ComputeDashLocation();
|
||||||
var (hasHit, location, collisionPoint, collisionNormal) = DashComputation;
|
|
||||||
|
|
||||||
var shouldMantle = false;
|
|
||||||
var mantleLocation = Vector3.Zero;
|
|
||||||
if (hasHit && Mathf.Abs(collisionNormal.Y) < 0.01f)
|
|
||||||
{
|
|
||||||
var mantleResult = _mantleSystem.FindMantleLocationAtPoint(collisionPoint, collisionNormal);
|
|
||||||
shouldMantle = mantleResult.IsSome(out mantleLocation);
|
|
||||||
}
|
|
||||||
|
|
||||||
var targetColor = hasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
ShouldMantle = false;
|
||||||
targetColor = shouldMantle ? new Color(0.2f, 0.2f, 1f) : targetColor;
|
var mantleLocation = Vector3.Zero;
|
||||||
|
if (HasHit && Mathf.Abs(CollisionNormal.Y) < 0.5f)
|
||||||
|
{
|
||||||
|
var mantleResult = _mantleSystem.FindMantleLocationAtPoint(PlannedPlayerLocation, CollisionNormal);
|
||||||
|
ShouldMantle = mantleResult.IsSome(out mantleLocation);
|
||||||
|
}
|
||||||
|
PlannedMantleLocation = mantleLocation;
|
||||||
|
|
||||||
|
var targetColor = HasHit ? new Color(1f, 0.2f, 0.2f) : new Color(1f, 1f, 1f);
|
||||||
|
targetColor = ShouldMantle ? new Color(0.2f, 0.2f, 1f) : targetColor;
|
||||||
|
|
||||||
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
var targetMaterial = (StandardMaterial3D) _dashTarget.GetSurfaceOverrideMaterial(0);
|
||||||
targetMaterial.SetAlbedo(targetColor);
|
targetMaterial.SetAlbedo(targetColor);
|
||||||
_dashTarget.SetVisible(true);
|
_dashTarget.SetVisible(true);
|
||||||
_dashTarget.SetGlobalPosition(location);
|
_dashTarget.SetGlobalPosition(PlannedPlayerLocation);
|
||||||
|
|
||||||
DashResolve = new DashResolveRecord(shouldMantle, location, mantleLocation);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CancelDash()
|
public void CancelDash()
|
||||||
@ -97,19 +139,36 @@ public partial class DashSystem: Node3D
|
|||||||
public void DashTweenEnded()
|
public void DashTweenEnded()
|
||||||
{
|
{
|
||||||
EmitSignal(SignalName.DashEnded);
|
EmitSignal(SignalName.DashEnded);
|
||||||
|
_dashTarget.SetVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dash()
|
public void Dash()
|
||||||
{
|
{
|
||||||
EmitSignal(SignalName.DashStarted);
|
EmitSignal(SignalName.DashStarted);
|
||||||
_dashTarget.SetVisible(false);
|
|
||||||
var dashTweenInputs = new TweenQueueSystem.TweenInputs(DashResolve.DashLocation, 0.1f);
|
var dashTweenInputs = new TweenQueueSystem.TweenInputs(PlannedPlayerLocation, DashSpeed);
|
||||||
var dashTween = _tweenQueueSystem.TweenToLocation(dashTweenInputs);
|
var dashTween = _tweenQueueSystem.TweenToLocation(dashTweenInputs);
|
||||||
|
// dashTween.SetTrans(Tween.TransitionType.Cubic);
|
||||||
|
// dashTween.SetEase(Tween.EaseType.Out);
|
||||||
|
dashTween.TweenMethod(Callable.From<float>(Dashing), 0.0f, 1.0f, DashSpeed);
|
||||||
dashTween.Finished += DashTweenEnded;
|
dashTween.Finished += DashTweenEnded;
|
||||||
if (DashResolve.EndWithMantle)
|
if (ShouldMantle)
|
||||||
{
|
{
|
||||||
_tweenQueueSystem.QueueTween(DashResolve.MantleLocation, 0.2f);
|
_tweenQueueSystem.QueueTween(PlannedMantleLocation, 0.2f);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// var dashIndicator = (CpuParticles3D) DashIndicatorScene.Instantiate();
|
||||||
|
// GetTree().GetRoot().AddChild(dashIndicator);
|
||||||
|
// _globalDashPosition = _dashTarget.GlobalPosition + 1.5f*Vector3.Up;
|
||||||
|
// dashIndicator.GlobalPosition = _globalDashPosition;
|
||||||
|
// dashIndicator.SetEmitting(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dashing(float proportion)
|
||||||
|
{
|
||||||
|
_dashTarget.SetGlobalPosition(_globalDashPosition);
|
||||||
|
EmitSignalDashProgress(proportion);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DashToThrownWeapon()
|
public void DashToThrownWeapon()
|
||||||
|
79
systems/dash/dash_indicator.tscn
Normal file
79
systems/dash/dash_indicator.tscn
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
[gd_scene load_steps=7 format=3 uid="uid://hd0868f4pb63"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://chvt6g0xn5c2m" path="res://systems/dash/light-ring.jpg" id="1_jadbb"]
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tqt6i"]
|
||||||
|
transparency = 1
|
||||||
|
blend_mode = 1
|
||||||
|
shading_mode = 0
|
||||||
|
albedo_texture = ExtResource("1_jadbb")
|
||||||
|
billboard_mode = 1
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_jngg2"]
|
||||||
|
orientation = 2
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_fmn25"]
|
||||||
|
length = 0.001
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath(".:mesh:size")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(2, 2)]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="Animation" id="Animation_stbcc"]
|
||||||
|
resource_name = "start"
|
||||||
|
length = 0.2
|
||||||
|
tracks/0/type = "value"
|
||||||
|
tracks/0/imported = false
|
||||||
|
tracks/0/enabled = true
|
||||||
|
tracks/0/path = NodePath(".:mesh:size")
|
||||||
|
tracks/0/interp = 1
|
||||||
|
tracks/0/loop_wrap = true
|
||||||
|
tracks/0/keys = {
|
||||||
|
"times": PackedFloat32Array(0, 0.2),
|
||||||
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
|
"update": 0,
|
||||||
|
"values": [Vector2(2, 2), Vector2(0, 0)]
|
||||||
|
}
|
||||||
|
tracks/1/type = "method"
|
||||||
|
tracks/1/imported = false
|
||||||
|
tracks/1/enabled = true
|
||||||
|
tracks/1/path = NodePath(".")
|
||||||
|
tracks/1/interp = 1
|
||||||
|
tracks/1/loop_wrap = true
|
||||||
|
tracks/1/keys = {
|
||||||
|
"times": PackedFloat32Array(0.2),
|
||||||
|
"transitions": PackedFloat32Array(1),
|
||||||
|
"values": [{
|
||||||
|
"args": [],
|
||||||
|
"method": &"queue_free"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3aile"]
|
||||||
|
_data = {
|
||||||
|
&"RESET": SubResource("Animation_fmn25"),
|
||||||
|
&"start": SubResource("Animation_stbcc")
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="DashIndicator" type="CPUParticles3D"]
|
||||||
|
material_override = SubResource("StandardMaterial3D_tqt6i")
|
||||||
|
emitting = false
|
||||||
|
amount = 1
|
||||||
|
lifetime = 0.5
|
||||||
|
one_shot = true
|
||||||
|
mesh = SubResource("PlaneMesh_jngg2")
|
||||||
|
gravity = Vector3(0, 0, 0)
|
||||||
|
|
||||||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||||
|
libraries = {
|
||||||
|
&"": SubResource("AnimationLibrary_3aile")
|
||||||
|
}
|
||||||
|
autoplay = "start"
|
@ -1,10 +1,11 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://cqduhd4opgwvm"]
|
[gd_scene load_steps=8 format=3 uid="uid://cqduhd4opgwvm"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://systems/dash/DashSystem.cs" id="1_hwig2"]
|
[ext_resource type="Script" uid="uid://dwoppk8j5fxeg" path="res://systems/dash/DashSystem.cs" id="1_hwig2"]
|
||||||
|
[ext_resource type="Shape3D" uid="uid://keseacdcooot" path="res://player_controller/resources/PlayerShape.tres" id="2_jngg2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
[ext_resource type="PackedScene" uid="uid://wq1okogkhc5l" path="res://systems/mantle/mantle_system.tscn" id="2_pff7b"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://hd0868f4pb63" path="res://systems/dash/dash_indicator.tscn" id="2_tqt6i"]
|
||||||
|
|
||||||
[sub_resource type="SphereShape3D" id="SphereShape3D_qu4wy"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_jngg2"]
|
||||||
radius = 0.1
|
|
||||||
|
|
||||||
[sub_resource type="SphereMesh" id="SphereMesh_qu4wy"]
|
[sub_resource type="SphereMesh" id="SphereMesh_qu4wy"]
|
||||||
|
|
||||||
@ -12,10 +13,17 @@ radius = 0.1
|
|||||||
|
|
||||||
[node name="DashSystem" type="Node3D"]
|
[node name="DashSystem" type="Node3D"]
|
||||||
script = ExtResource("1_hwig2")
|
script = ExtResource("1_hwig2")
|
||||||
|
DashIndicatorScene = ExtResource("2_tqt6i")
|
||||||
|
|
||||||
|
[node name="PlayerShapeCast3D" type="ShapeCast3D" parent="."]
|
||||||
|
shape = ExtResource("2_jngg2")
|
||||||
|
target_position = Vector3(0, 0, 0)
|
||||||
|
collision_mask = 2
|
||||||
|
debug_shape_custom_color = Color(0.863327, 0.636844, 0, 1)
|
||||||
|
|
||||||
[node name="DashCast3D" type="ShapeCast3D" parent="."]
|
[node name="DashCast3D" type="ShapeCast3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.68, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
|
||||||
shape = SubResource("SphereShape3D_qu4wy")
|
shape = SubResource("SphereShape3D_jngg2")
|
||||||
target_position = Vector3(0, 0, -12)
|
target_position = Vector3(0, 0, -12)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 2
|
||||||
@ -28,3 +36,6 @@ surface_material_override/0 = SubResource("StandardMaterial3D_v31n3")
|
|||||||
[node name="MantleSystem" parent="." instance=ExtResource("2_pff7b")]
|
[node name="MantleSystem" parent="." instance=ExtResource("2_pff7b")]
|
||||||
MantleEndLocationDistanceFromWall = 0.3
|
MantleEndLocationDistanceFromWall = 0.3
|
||||||
MantleHeightCastStart = 2.0
|
MantleHeightCastStart = 2.0
|
||||||
|
|
||||||
|
[node name="DashIndicator" parent="." instance=ExtResource("2_tqt6i")]
|
||||||
|
visible = false
|
||||||
|
5
systems/dash/dash_time_dilation.tres
Normal file
5
systems/dash/dash_time_dilation.tres
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[gd_resource type="Curve" format=3 uid="uid://c2a8soliruf35"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.5, 1), -1.89032e-07, -1.89032e-07, 0, 0, Vector2(0.8, 0.05), -9.56219, 0.0, 0, 1, Vector2(0.995, 0.05), 0.0, 0.0, 0, 0, Vector2(1, 1), -0.0540619, -0.0540619, 0, 0]
|
||||||
|
point_count = 5
|
BIN
systems/dash/light-ring.jpg
(Stored with Git LFS)
Normal file
BIN
systems/dash/light-ring.jpg
(Stored with Git LFS)
Normal file
Binary file not shown.
36
systems/dash/light-ring.jpg.import
Normal file
36
systems/dash/light-ring.jpg.import
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://chvt6g0xn5c2m"
|
||||||
|
path.s3tc="res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.s3tc.ctex"
|
||||||
|
path.etc2="res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.etc2.ctex"
|
||||||
|
metadata={
|
||||||
|
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||||
|
"vram_texture": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://systems/dash/light-ring.jpg"
|
||||||
|
dest_files=["res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.s3tc.ctex", "res://.godot/imported/light-ring.jpg-c39549c041934663aceb7b7e60c47efb.etc2.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=2
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=true
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=0
|
@ -29,4 +29,14 @@ public partial class HeadSystem : Node3D
|
|||||||
|
|
||||||
_camera.Rotation = currentCameraRotation;
|
_camera.Rotation = currentCameraRotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector3 GetForwardHorizontalVector()
|
||||||
|
{
|
||||||
|
return GetGlobalTransform().Basis.Z;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetHeight(float height)
|
||||||
|
{
|
||||||
|
Position = new Vector3(Position.X, height, Position.Z);
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,9 +1,9 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://dgfww8118d8gj"]
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://c3e0ivgaxrsyb"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_tm2gl"]
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_gn1pi"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("1_tm2gl")
|
script = ExtResource("1_gn1pi")
|
||||||
name = &""
|
name = &""
|
||||||
action_value_type = 0
|
action_value_type = 0
|
||||||
block_lower_priority_actions = true
|
block_lower_priority_actions = true
|
14
systems/inputs/base_mode/aim_pressed.tres
Normal file
14
systems/inputs/base_mode/aim_pressed.tres
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://bebstkm608wxx"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_bvbvh"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_bvbvh")
|
||||||
|
name = &""
|
||||||
|
action_value_type = 0
|
||||||
|
block_lower_priority_actions = true
|
||||||
|
emit_as_godot_actions = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
@ -1,4 +1,4 @@
|
|||||||
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=65 format=3 uid="uid://bl5crtu1gkrtr"]
|
[gd_resource type="Resource" script_class="GUIDEMappingContext" load_steps=90 format=3 uid="uid://bl5crtu1gkrtr"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_qmhk6"]
|
[ext_resource type="Script" uid="uid://cpplm41b5bt6m" path="res://addons/guide/guide_action_mapping.gd" id="1_qmhk6"]
|
||||||
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="2_g6bbx"]
|
[ext_resource type="Resource" uid="uid://htqvokm8mufq" path="res://systems/inputs/base_mode/move.tres" id="2_g6bbx"]
|
||||||
@ -13,16 +13,22 @@
|
|||||||
[ext_resource type="Script" uid="uid://bjm4myqxg4phm" path="res://addons/guide/modifiers/guide_modifier_scale.gd" id="11_j3axn"]
|
[ext_resource type="Script" uid="uid://bjm4myqxg4phm" path="res://addons/guide/modifiers/guide_modifier_scale.gd" id="11_j3axn"]
|
||||||
[ext_resource type="Script" uid="uid://ckggy40lm0vjc" path="res://addons/guide/modifiers/guide_modifier_negate.gd" id="12_kxb2c"]
|
[ext_resource type="Script" uid="uid://ckggy40lm0vjc" path="res://addons/guide/modifiers/guide_modifier_negate.gd" id="12_kxb2c"]
|
||||||
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="13_v2ywt"]
|
[ext_resource type="Resource" uid="uid://ccrb5xsnphc8" path="res://systems/inputs/base_mode/rotate_floorplane.tres" id="13_v2ywt"]
|
||||||
[ext_resource type="Resource" uid="uid://dgfww8118d8gj" path="res://systems/inputs/base_mode/aim.tres" id="14_vtk18"]
|
[ext_resource type="Resource" uid="uid://c3e0ivgaxrsyb" path="res://systems/inputs/base_mode/aim_down.tres" id="14_yp12v"]
|
||||||
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="15_fykw6"]
|
[ext_resource type="Script" uid="uid://b52rqq28tuqpg" path="res://addons/guide/triggers/guide_trigger_pressed.gd" id="15_fykw6"]
|
||||||
|
[ext_resource type="Script" uid="uid://b4cdrn4paoj3i" path="res://addons/guide/triggers/guide_trigger_down.gd" id="15_g6bbx"]
|
||||||
|
[ext_resource type="Resource" uid="uid://b334rau1yxmm7" path="res://systems/inputs/base_mode/empower_down.tres" id="16_0qat1"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bebstkm608wxx" path="res://systems/inputs/base_mode/aim_pressed.tres" id="16_li5ak"]
|
||||||
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="16_rvpjj"]
|
[ext_resource type="Resource" uid="uid://j1o5ud0plk4" path="res://systems/inputs/base_mode/aim_release.tres" id="16_rvpjj"]
|
||||||
[ext_resource type="Script" uid="uid://biiggjw6tv4uq" path="res://addons/guide/triggers/guide_trigger_released.gd" id="17_s8kjn"]
|
[ext_resource type="Script" uid="uid://biiggjw6tv4uq" path="res://addons/guide/triggers/guide_trigger_released.gd" id="17_s8kjn"]
|
||||||
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="18_vibkn"]
|
[ext_resource type="Resource" uid="uid://7wm8ywvujwf" path="res://systems/inputs/base_mode/aim_cancel.tres" id="18_vibkn"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bbce5wfwxpns1" path="res://systems/inputs/base_mode/empower_release.tres" id="19_li5ak"]
|
||||||
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="19_qkgmj"]
|
[ext_resource type="Script" uid="uid://rvttn472ix6v" path="res://addons/guide/inputs/guide_input_joy_button.gd" id="19_qkgmj"]
|
||||||
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="21_818lq"]
|
[ext_resource type="Resource" uid="uid://bdit2jy5gbpts" path="res://systems/inputs/base_mode/jump.tres" id="21_818lq"]
|
||||||
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="22_2hs2y"]
|
[ext_resource type="Resource" uid="uid://b5gx3q8nvu72e" path="res://systems/inputs/base_mode/hit.tres" id="22_2hs2y"]
|
||||||
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/drop.tres" id="22_qmhk6"]
|
[ext_resource type="Resource" uid="uid://d2r0ur8k3cuu3" path="res://systems/inputs/base_mode/dash.tres" id="23_g6bbx"]
|
||||||
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="23_llfhp"]
|
[ext_resource type="Script" uid="uid://dsa1dnifd6w32" path="res://addons/guide/guide_mapping_context.gd" id="23_llfhp"]
|
||||||
|
[ext_resource type="Resource" uid="uid://bw5k2gsv3jqcv" path="res://systems/inputs/base_mode/throw.tres" id="24_yp12v"]
|
||||||
|
[ext_resource type="Resource" uid="uid://55b0dsvioj08" path="res://systems/inputs/base_mode/jump_pressed.tres" id="25_si4d4"]
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_vkvga"]
|
[sub_resource type="Resource" id="Resource_vkvga"]
|
||||||
script = ExtResource("4_1rw8g")
|
script = ExtResource("4_1rw8g")
|
||||||
@ -53,7 +59,7 @@ triggers = Array[ExtResource("8_2tfaw")]([])
|
|||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("2_g6bbx")
|
action = ExtResource("2_g6bbx")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1igva")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1igva")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = true
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_05q5j"]
|
[sub_resource type="Resource" id="Resource_05q5j"]
|
||||||
script = ExtResource("10_cvxqo")
|
script = ExtResource("10_cvxqo")
|
||||||
@ -129,7 +135,32 @@ action = ExtResource("13_v2ywt")
|
|||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qu2wi")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qu2wi")])
|
||||||
metadata/_guide_input_mappings_collapsed = true
|
metadata/_guide_input_mappings_collapsed = true
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_ufouq"]
|
[sub_resource type="Resource" id="Resource_si4d4"]
|
||||||
|
script = ExtResource("10_cvxqo")
|
||||||
|
axis = 4
|
||||||
|
joy_index = -1
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_2tfaw"]
|
||||||
|
script = ExtResource("15_g6bbx")
|
||||||
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_q86qg"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
override_action_settings = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
input = SubResource("Resource_si4d4")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_2tfaw")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_cvxqo"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("14_yp12v")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_q86qg")])
|
||||||
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_llfhp"]
|
||||||
script = ExtResource("10_cvxqo")
|
script = ExtResource("10_cvxqo")
|
||||||
axis = 4
|
axis = 4
|
||||||
joy_index = -1
|
joy_index = -1
|
||||||
@ -138,21 +169,20 @@ joy_index = -1
|
|||||||
script = ExtResource("15_fykw6")
|
script = ExtResource("15_fykw6")
|
||||||
actuation_threshold = 0.5
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_qbthx"]
|
[sub_resource type="Resource" id="Resource_r6kml"]
|
||||||
script = ExtResource("3_yp12v")
|
script = ExtResource("3_yp12v")
|
||||||
override_action_settings = false
|
override_action_settings = false
|
||||||
is_remappable = false
|
is_remappable = false
|
||||||
display_name = ""
|
display_name = ""
|
||||||
display_category = ""
|
display_category = ""
|
||||||
input = SubResource("Resource_ufouq")
|
input = SubResource("Resource_llfhp")
|
||||||
modifiers = Array[ExtResource("5_0qat1")]([])
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ib0yi")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_ib0yi")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_0hmrk"]
|
[sub_resource type="Resource" id="Resource_tb8ii"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("14_vtk18")
|
action = ExtResource("16_li5ak")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_qbthx")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_r6kml")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_cqc4k"]
|
[sub_resource type="Resource" id="Resource_cqc4k"]
|
||||||
script = ExtResource("10_cvxqo")
|
script = ExtResource("10_cvxqo")
|
||||||
@ -177,7 +207,56 @@ triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_vanwy")])
|
|||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("16_rvpjj")
|
action = ExtResource("16_rvpjj")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_bkx7d")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_bkx7d")])
|
||||||
metadata/_guide_input_mappings_collapsed = true
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_fykw6"]
|
||||||
|
script = ExtResource("10_cvxqo")
|
||||||
|
axis = 5
|
||||||
|
joy_index = -1
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_rvpjj"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_s8kjn"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
override_action_settings = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
input = SubResource("Resource_fykw6")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_rvpjj")])
|
||||||
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_vibkn"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("16_0qat1")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_s8kjn")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_qkgmj"]
|
||||||
|
script = ExtResource("10_cvxqo")
|
||||||
|
axis = 5
|
||||||
|
joy_index = -1
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_st2ej"]
|
||||||
|
script = ExtResource("17_s8kjn")
|
||||||
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_818lq"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
override_action_settings = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
input = SubResource("Resource_qkgmj")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_st2ej")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_2hs2y"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("19_li5ak")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_818lq")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_lfx76"]
|
[sub_resource type="Resource" id="Resource_lfx76"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
@ -203,15 +282,36 @@ script = ExtResource("1_qmhk6")
|
|||||||
action = ExtResource("18_vibkn")
|
action = ExtResource("18_vibkn")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_4ee3d")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_4ee3d")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_oapce"]
|
[sub_resource type="Resource" id="Resource_1fkas"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
button = 0
|
button = 0
|
||||||
joy_index = -1
|
joy_index = -1
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_j3mg7"]
|
[sub_resource type="Resource" id="Resource_6pxii"]
|
||||||
script = ExtResource("15_fykw6")
|
script = ExtResource("15_fykw6")
|
||||||
actuation_threshold = 0.5
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_jy4f1"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
override_action_settings = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
input = SubResource("Resource_1fkas")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_6pxii")])
|
||||||
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_d2r0d"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("25_si4d4")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_jy4f1")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_oapce"]
|
||||||
|
script = ExtResource("19_qkgmj")
|
||||||
|
button = 0
|
||||||
|
joy_index = -1
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_8w5gu"]
|
[sub_resource type="Resource" id="Resource_8w5gu"]
|
||||||
script = ExtResource("3_yp12v")
|
script = ExtResource("3_yp12v")
|
||||||
override_action_settings = false
|
override_action_settings = false
|
||||||
@ -220,7 +320,7 @@ display_name = ""
|
|||||||
display_category = ""
|
display_category = ""
|
||||||
input = SubResource("Resource_oapce")
|
input = SubResource("Resource_oapce")
|
||||||
modifiers = Array[ExtResource("5_0qat1")]([])
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_j3mg7")])
|
triggers = Array[ExtResource("8_2tfaw")]([])
|
||||||
metadata/_guide_triggers_collapsed = false
|
metadata/_guide_triggers_collapsed = false
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_xt1x5"]
|
[sub_resource type="Resource" id="Resource_xt1x5"]
|
||||||
@ -228,7 +328,7 @@ script = ExtResource("1_qmhk6")
|
|||||||
action = ExtResource("21_818lq")
|
action = ExtResource("21_818lq")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_8w5gu")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_8w5gu")])
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_nf3uo"]
|
[sub_resource type="Resource" id="Resource_li5ak"]
|
||||||
script = ExtResource("19_qkgmj")
|
script = ExtResource("19_qkgmj")
|
||||||
button = 10
|
button = 10
|
||||||
joy_index = -1
|
joy_index = -1
|
||||||
@ -243,7 +343,7 @@ override_action_settings = false
|
|||||||
is_remappable = false
|
is_remappable = false
|
||||||
display_name = ""
|
display_name = ""
|
||||||
display_category = ""
|
display_category = ""
|
||||||
input = SubResource("Resource_nf3uo")
|
input = SubResource("Resource_li5ak")
|
||||||
modifiers = Array[ExtResource("5_0qat1")]([])
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_paxxe")])
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_paxxe")])
|
||||||
|
|
||||||
@ -273,12 +373,36 @@ triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_yp12v")])
|
|||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_0qat1"]
|
[sub_resource type="Resource" id="Resource_0qat1"]
|
||||||
script = ExtResource("1_qmhk6")
|
script = ExtResource("1_qmhk6")
|
||||||
action = ExtResource("22_qmhk6")
|
action = ExtResource("23_g6bbx")
|
||||||
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1rw8g")])
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_1rw8g")])
|
||||||
metadata/_guide_input_mappings_collapsed = false
|
metadata/_guide_input_mappings_collapsed = false
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_j3axn"]
|
||||||
|
script = ExtResource("19_qkgmj")
|
||||||
|
button = 3
|
||||||
|
joy_index = -1
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_kxb2c"]
|
||||||
|
script = ExtResource("15_fykw6")
|
||||||
|
actuation_threshold = 0.5
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_v2ywt"]
|
||||||
|
script = ExtResource("3_yp12v")
|
||||||
|
override_action_settings = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
input = SubResource("Resource_j3axn")
|
||||||
|
modifiers = Array[ExtResource("5_0qat1")]([])
|
||||||
|
triggers = Array[ExtResource("8_2tfaw")]([SubResource("Resource_kxb2c")])
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_vtk18"]
|
||||||
|
script = ExtResource("1_qmhk6")
|
||||||
|
action = ExtResource("24_yp12v")
|
||||||
|
input_mappings = Array[ExtResource("3_yp12v")]([SubResource("Resource_v2ywt")])
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("23_llfhp")
|
script = ExtResource("23_llfhp")
|
||||||
display_name = ""
|
display_name = ""
|
||||||
mappings = Array[ExtResource("1_qmhk6")]([SubResource("Resource_88x08"), SubResource("Resource_tgr2g"), SubResource("Resource_iarn8"), SubResource("Resource_0hmrk"), SubResource("Resource_iihs4"), SubResource("Resource_0s4kt"), SubResource("Resource_xt1x5"), SubResource("Resource_ew1hw"), SubResource("Resource_0qat1")])
|
mappings = Array[ExtResource("1_qmhk6")]([SubResource("Resource_88x08"), SubResource("Resource_tgr2g"), SubResource("Resource_iarn8"), SubResource("Resource_cvxqo"), SubResource("Resource_tb8ii"), SubResource("Resource_iihs4"), SubResource("Resource_vibkn"), SubResource("Resource_2hs2y"), SubResource("Resource_0s4kt"), SubResource("Resource_d2r0d"), SubResource("Resource_xt1x5"), SubResource("Resource_ew1hw"), SubResource("Resource_0qat1"), SubResource("Resource_vtk18")])
|
||||||
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
metadata/_custom_type_script = "uid://dsa1dnifd6w32"
|
||||||
|
14
systems/inputs/base_mode/empower_down.tres
Normal file
14
systems/inputs/base_mode/empower_down.tres
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://b334rau1yxmm7"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_06ocg"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_06ocg")
|
||||||
|
name = &""
|
||||||
|
action_value_type = 0
|
||||||
|
block_lower_priority_actions = true
|
||||||
|
emit_as_godot_actions = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
14
systems/inputs/base_mode/empower_release.tres
Normal file
14
systems/inputs/base_mode/empower_release.tres
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://bbce5wfwxpns1"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_v6tj6"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_v6tj6")
|
||||||
|
name = &""
|
||||||
|
action_value_type = 0
|
||||||
|
block_lower_priority_actions = true
|
||||||
|
emit_as_godot_actions = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
14
systems/inputs/base_mode/jump_pressed.tres
Normal file
14
systems/inputs/base_mode/jump_pressed.tres
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://55b0dsvioj08"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_4yfi4"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_4yfi4")
|
||||||
|
name = &""
|
||||||
|
action_value_type = 0
|
||||||
|
block_lower_priority_actions = true
|
||||||
|
emit_as_godot_actions = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
14
systems/inputs/base_mode/throw.tres
Normal file
14
systems/inputs/base_mode/throw.tres
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[gd_resource type="Resource" script_class="GUIDEAction" load_steps=2 format=3 uid="uid://bw5k2gsv3jqcv"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cluhc11vixkf1" path="res://addons/guide/guide_action.gd" id="1_7f0q6"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("1_7f0q6")
|
||||||
|
name = &""
|
||||||
|
action_value_type = 0
|
||||||
|
block_lower_priority_actions = true
|
||||||
|
emit_as_godot_actions = false
|
||||||
|
is_remappable = false
|
||||||
|
display_name = ""
|
||||||
|
display_category = ""
|
||||||
|
metadata/_custom_type_script = "uid://cluhc11vixkf1"
|
@ -10,49 +10,93 @@ class_name InputController
|
|||||||
@export var rotate_floorplane:GUIDEAction
|
@export var rotate_floorplane:GUIDEAction
|
||||||
|
|
||||||
@export_group("Trigger actions")
|
@export_group("Trigger actions")
|
||||||
|
@export_subgroup("Aim")
|
||||||
|
@export var aim_down:GUIDEAction
|
||||||
@export var aim_pressed:GUIDEAction
|
@export var aim_pressed:GUIDEAction
|
||||||
@export var aim_released:GUIDEAction
|
@export var aim_released:GUIDEAction
|
||||||
@export var aim_canceled:GUIDEAction
|
@export_subgroup("Jump")
|
||||||
@export var jump:GUIDEAction
|
@export var jump:GUIDEAction
|
||||||
|
@export var jump_pressed:GUIDEAction
|
||||||
|
@export_subgroup("Other")
|
||||||
|
@export var empower_down:GUIDEAction
|
||||||
|
@export var empower_released:GUIDEAction
|
||||||
|
@export var aim_canceled:GUIDEAction
|
||||||
@export var hit:GUIDEAction
|
@export var hit:GUIDEAction
|
||||||
@export var drop:GUIDEAction
|
@export var dash:GUIDEAction
|
||||||
|
@export var throw:GUIDEAction
|
||||||
|
|
||||||
signal input_move(value: Vector3)
|
signal input_move(value: Vector3)
|
||||||
signal input_rotate_y(value: float)
|
signal input_rotate_y(value: float)
|
||||||
signal input_rotate_floorplane(value: float)
|
signal input_rotate_floorplane(value: float)
|
||||||
|
|
||||||
|
# Jump
|
||||||
|
signal input_jump_started
|
||||||
|
signal input_jump_ongoing
|
||||||
|
signal input_jump_ended
|
||||||
|
|
||||||
signal input_aim_pressed
|
signal input_aim_pressed
|
||||||
|
signal input_aim_down
|
||||||
signal input_aim_released
|
signal input_aim_released
|
||||||
|
|
||||||
|
signal input_empower_down
|
||||||
|
signal input_empower_released
|
||||||
signal input_aim_canceled
|
signal input_aim_canceled
|
||||||
signal input_jump
|
|
||||||
signal input_hit
|
signal input_hit
|
||||||
signal input_drop
|
signal input_dash
|
||||||
|
signal input_throw
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
GUIDE.enable_mapping_context(base_mode)
|
GUIDE.enable_mapping_context(base_mode)
|
||||||
|
|
||||||
|
aim_down.triggered.connect(on_input_aim_down)
|
||||||
aim_pressed.triggered.connect(on_input_aim_pressed)
|
aim_pressed.triggered.connect(on_input_aim_pressed)
|
||||||
aim_released.triggered.connect(on_input_aim_released)
|
aim_released.triggered.connect(on_input_aim_released)
|
||||||
|
empower_down.triggered.connect(on_input_empower_down)
|
||||||
|
empower_released.triggered.connect(on_input_empower_released)
|
||||||
aim_canceled.triggered.connect(on_input_aim_canceled)
|
aim_canceled.triggered.connect(on_input_aim_canceled)
|
||||||
jump.triggered.connect(on_input_jump)
|
|
||||||
|
jump_pressed.triggered.connect(on_input_jump_started)
|
||||||
|
jump.triggered.connect(on_input_jump_ongoing)
|
||||||
|
jump.completed.connect(on_input_jump_ended)
|
||||||
|
|
||||||
hit.triggered.connect(on_input_hit)
|
hit.triggered.connect(on_input_hit)
|
||||||
drop.triggered.connect(on_input_drop)
|
dash.triggered.connect(on_input_dash)
|
||||||
|
throw.triggered.connect(on_input_throw)
|
||||||
|
|
||||||
func on_input_drop():
|
func on_input_dash():
|
||||||
input_drop.emit()
|
input_dash.emit()
|
||||||
|
|
||||||
|
func on_input_throw():
|
||||||
|
input_throw.emit()
|
||||||
|
|
||||||
func on_input_hit():
|
func on_input_hit():
|
||||||
input_hit.emit()
|
input_hit.emit()
|
||||||
|
|
||||||
func on_input_jump():
|
func on_input_jump_started():
|
||||||
input_jump.emit()
|
input_jump_started.emit()
|
||||||
|
|
||||||
|
func on_input_jump_ongoing():
|
||||||
|
input_jump_ongoing.emit()
|
||||||
|
|
||||||
|
func on_input_jump_ended():
|
||||||
|
input_jump_ended.emit()
|
||||||
|
|
||||||
|
func on_input_aim_down():
|
||||||
|
input_aim_down.emit()
|
||||||
|
|
||||||
func on_input_aim_pressed():
|
func on_input_aim_pressed():
|
||||||
input_aim_pressed.emit()
|
input_aim_pressed.emit()
|
||||||
|
|
||||||
func on_input_aim_released():
|
func on_input_aim_released():
|
||||||
input_aim_released.emit()
|
input_aim_released.emit()
|
||||||
|
|
||||||
|
func on_input_empower_down():
|
||||||
|
input_empower_down.emit()
|
||||||
|
|
||||||
|
func on_input_empower_released():
|
||||||
|
input_empower_released.emit()
|
||||||
|
|
||||||
func on_input_aim_canceled():
|
func on_input_aim_canceled():
|
||||||
input_aim_canceled.emit()
|
input_aim_canceled.emit()
|
||||||
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4coqe"]
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4coqe"]
|
||||||
height = 1.7
|
height = 1.7
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_qu4wy"]
|
[sub_resource type="SphereShape3D" id="SphereShape3D_2oobp"]
|
||||||
height = 1.3
|
|
||||||
|
|
||||||
[node name="MantleSystem" type="Node3D"]
|
[node name="MantleSystem" type="Node3D"]
|
||||||
script = ExtResource("1_2oobp")
|
script = ExtResource("1_2oobp")
|
||||||
@ -22,7 +21,7 @@ debug_shape_custom_color = Color(1, 0, 0, 1)
|
|||||||
|
|
||||||
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="."]
|
[node name="WallInFrontCast3D" type="ShapeCast3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||||
shape = SubResource("CapsuleShape3D_qu4wy")
|
shape = SubResource("SphereShape3D_2oobp")
|
||||||
target_position = Vector3(0, 0, -1.5)
|
target_position = Vector3(0, 0, -1.5)
|
||||||
max_results = 1
|
max_results = 1
|
||||||
collision_mask = 2
|
collision_mask = 2
|
||||||
|
@ -8,9 +8,10 @@ public partial class MoveSystem : Node3D
|
|||||||
{
|
{
|
||||||
public enum JumpTypes
|
public enum JumpTypes
|
||||||
{
|
{
|
||||||
SIMPLE_JUMP,
|
SimpleJump,
|
||||||
DOUBLE_JUMP,
|
DoubleJump,
|
||||||
JUMP_FROM_DASH
|
JumpFromDash,
|
||||||
|
JumpFromWall
|
||||||
}
|
}
|
||||||
|
|
||||||
public record MoveSystemParameters(
|
public record MoveSystemParameters(
|
||||||
@ -196,15 +197,18 @@ public partial class MoveSystem : Node3D
|
|||||||
var jumpForce = 0.0f;
|
var jumpForce = 0.0f;
|
||||||
switch (jumpType)
|
switch (jumpType)
|
||||||
{
|
{
|
||||||
case JumpTypes.DOUBLE_JUMP:
|
case JumpTypes.DoubleJump:
|
||||||
jumpForce = _gravity.CalculateDoubleJumpForce();
|
jumpForce = _gravity.CalculateDoubleJumpForce();
|
||||||
break;
|
break;
|
||||||
case JumpTypes.SIMPLE_JUMP:
|
case JumpTypes.SimpleJump:
|
||||||
jumpForce = _gravity.CalculateJumpForce();
|
jumpForce = _gravity.CalculateJumpForce();
|
||||||
break;
|
break;
|
||||||
case JumpTypes.JUMP_FROM_DASH:
|
case JumpTypes.JumpFromDash:
|
||||||
jumpForce = _gravity.CalculateJumpFromDashForce();
|
jumpForce = _gravity.CalculateJumpFromDashForce();
|
||||||
break;
|
break;
|
||||||
|
case JumpTypes.JumpFromWall:
|
||||||
|
jumpForce = _gravity.CalculateJumpFromWallForce();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
jumpForce = _gravity.CalculateJumpForce();
|
jumpForce = _gravity.CalculateJumpForce();
|
||||||
break;
|
break;
|
||||||
|
5
systems/move/simple_jump.tres
Normal file
5
systems/move/simple_jump.tres
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[gd_resource type="Curve" format=3 uid="uid://buxwd3wd0nln5"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
_data = [Vector2(0, 0), 0.0, 3.01651, 0, 0, Vector2(0.996169, 1), 0.0, 0.0, 0, 0]
|
||||||
|
point_count = 2
|
@ -28,6 +28,7 @@ public partial class TweenQueueSystem : Node3D
|
|||||||
var (location, duration) = inputs;
|
var (location, duration) = inputs;
|
||||||
|
|
||||||
var tween = GetTree().CreateTween();
|
var tween = GetTree().CreateTween();
|
||||||
|
tween.SetParallel(true);
|
||||||
tween.TweenProperty(_tweenObject, "global_position", location, duration);
|
tween.TweenProperty(_tweenObject, "global_position", location, duration);
|
||||||
tween.TweenCallback(_tweenEndedCallback);
|
tween.TweenCallback(_tweenEndedCallback);
|
||||||
_isTweening = true;
|
_isTweening = true;
|
||||||
|
@ -5,8 +5,11 @@ using RustyOptions;
|
|||||||
|
|
||||||
namespace Movementtests.systems;
|
namespace Movementtests.systems;
|
||||||
|
|
||||||
|
|
||||||
public partial class WallHugSystem : Node3D
|
public partial class WallHugSystem : Node3D
|
||||||
{
|
{
|
||||||
|
[Signal]
|
||||||
|
public delegate void WallDetectedEventHandler();
|
||||||
|
|
||||||
private List<RayCast3D> _raycasts;
|
private List<RayCast3D> _raycasts;
|
||||||
|
|
||||||
@ -19,6 +22,13 @@ public partial class WallHugSystem : Node3D
|
|||||||
_raycasts.Add(GetNode<RayCast3D>("right"));
|
_raycasts.Add(GetNode<RayCast3D>("right"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void _PhysicsProcess(double delta)
|
||||||
|
{
|
||||||
|
base._PhysicsProcess(delta);
|
||||||
|
if (IsWallHugging())
|
||||||
|
EmitSignal(SignalName.WallDetected);
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsWallHugging()
|
public bool IsWallHugging()
|
||||||
{
|
{
|
||||||
foreach (RayCast3D raycast in _raycasts)
|
foreach (RayCast3D raycast in _raycasts)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using Godot;
|
using Godot;
|
||||||
using GodotStateCharts;
|
using GodotStateCharts;
|
||||||
|
|
||||||
@ -23,9 +24,8 @@ public partial class WeaponSystem : RigidBody3D
|
|||||||
private Transform3D _startTransform;
|
private Transform3D _startTransform;
|
||||||
|
|
||||||
private Vector3 _throwDirection;
|
private Vector3 _throwDirection;
|
||||||
private Vector3 _plantLocation;
|
public Vector3 PlantLocation { get; set; }
|
||||||
private Vector3 _plantNormal;
|
public Vector3 PlantNormal { get; set; }
|
||||||
public Vector3 PlayerDashLocation { get; set; }
|
|
||||||
|
|
||||||
public void Init(Node3D head, Camera3D camera)
|
public void Init(Node3D head, Camera3D camera)
|
||||||
{
|
{
|
||||||
@ -51,8 +51,8 @@ public partial class WeaponSystem : RigidBody3D
|
|||||||
_weaponState.SendEvent("throw");
|
_weaponState.SendEvent("throw");
|
||||||
|
|
||||||
_throwDirection = (end - GlobalPosition).Normalized();
|
_throwDirection = (end - GlobalPosition).Normalized();
|
||||||
_plantLocation = collisionLocation;
|
PlantLocation = collisionLocation;
|
||||||
_plantNormal = collisionNormal;
|
PlantNormal = collisionNormal;
|
||||||
LookAt(end);
|
LookAt(end);
|
||||||
|
|
||||||
var tween = _tweenQueueSystem.TweenToLocation(new TweenQueueSystem.TweenInputs(end, StraightThrowDuration));
|
var tween = _tweenQueueSystem.TweenToLocation(new TweenQueueSystem.TweenInputs(end, StraightThrowDuration));
|
||||||
@ -72,9 +72,13 @@ public partial class WeaponSystem : RigidBody3D
|
|||||||
{
|
{
|
||||||
_weaponState.SendEvent("plant");
|
_weaponState.SendEvent("plant");
|
||||||
Freeze = true;
|
Freeze = true;
|
||||||
GlobalPosition = _plantLocation;
|
GlobalPosition = PlantLocation;
|
||||||
PlayerDashLocation = _plantLocation + _plantNormal * 0.1f;
|
LookAt(GlobalTransform.Origin + PlantNormal, Vector3.Up, true);
|
||||||
LookAt(GlobalTransform.Origin + _plantNormal, Vector3.Up, true);
|
}
|
||||||
|
|
||||||
|
public void OnThrownWeaponReachesGround(Node other)
|
||||||
|
{
|
||||||
|
PlantWeaponInWall();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ResetWeapon()
|
public void ResetWeapon()
|
||||||
@ -83,21 +87,25 @@ public partial class WeaponSystem : RigidBody3D
|
|||||||
Transform = _startTransform;
|
Transform = _startTransform;
|
||||||
Freeze = true;
|
Freeze = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void _IntegrateForces(PhysicsDirectBodyState3D state)
|
public override void _IntegrateForces(PhysicsDirectBodyState3D state)
|
||||||
{
|
{
|
||||||
base._IntegrateForces(state);
|
base._IntegrateForces(state);
|
||||||
PlayerDashLocation = GlobalPosition;
|
|
||||||
if (!Freeze && state.GetContactCount() > 0)
|
if (!Freeze && state.GetContactCount() > 0)
|
||||||
{
|
{
|
||||||
_plantLocation = state.GetContactLocalPosition(0);
|
PlantLocation = state.GetContactLocalPosition(0);
|
||||||
_plantNormal = state.GetContactLocalNormal(0);
|
PlantNormal = state.GetContactLocalNormal(0);
|
||||||
PlayerDashLocation = _plantLocation + _plantNormal * 0.1f;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnThrownWeaponReachesGround(Node other)
|
public bool IsPlantedUnderPlatform()
|
||||||
{
|
{
|
||||||
PlantWeaponInWall();
|
return PlantedState.Active && GlobalRotation.X > 1 && Math.Abs(GlobalRotation.Y) > 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsPlantedInWall()
|
||||||
|
{
|
||||||
|
return PlantedState.Active && Math.Abs(GlobalRotation.X) + Math.Abs(GlobalRotation.Z) < 0.3;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user