Map Triggers

This commit is contained in:
Marco 2025-06-18 11:33:27 +02:00
commit 054c0998ad
34 changed files with 5896 additions and 477 deletions

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
{"meta":{"format_version":"4.10","model_format":"free","box_uv":false},"name":"VendingMachine","model_identifier":"","visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"reexport":{"codec":"gltf","codec_options":{"encoding":"ascii","scale":16,"embed_textures":true,"armature":false,"animations":true},"path":".\\VendingMachine.gltf","enabled":true},"resolution":{"width":8,"height":8},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-8,-14,-8],"to":[8,18,8],"autouv":0,"color":9,"rotation":[0,-180,0],"origin":[0,-14,0],"faces":{"north":{"uv":[0,0,2,4],"texture":0},"east":{"uv":[2,0,4,4],"texture":0},"south":{"uv":[0,4,2,8],"texture":0},"west":{"uv":[4,0,6,4],"texture":0},"up":{"uv":[4,6,2,4],"texture":0},"down":{"uv":[6,4,4,6],"texture":0}},"type":"cube","uuid":"0c5c59f9-d80b-901c-c299-a940fbcfbf12"}],"outliner":["0c5c59f9-d80b-901c-c299-a940fbcfbf12"],"textures":[{"path":"D:\\Maddo\\cirnogodot\\3D\\BlockbenchModels\\VendingMachine\\VendingMachine_Texture.png","name":"VendingMachine_Texture.png","folder":"block","namespace":"","id":"2","group":"","width":32,"height":32,"uv_width":8,"uv_height":8,"particle":false,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","pbr_channel":"color","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"06f86ca6-c3fe-25f3-905d-ed1e33230b51","relative_path":"VendingMachine_Texture.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"export_options":{"gltf":{"encoding":"binary","scale":16,"embed_textures":true,"armature":false,"animations":true}}}
{"meta":{"format_version":"4.10","model_format":"free","box_uv":false},"name":"VendingMachine","model_identifier":"","visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"reexport":{"codec":"gltf","codec_options":{"encoding":"ascii","scale":16,"embed_textures":true,"armature":false,"animations":true},"path":".\\VendingMachine.gltf","enabled":true},"resolution":{"width":8,"height":8},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-8,-14,-8],"to":[8,18,8],"autouv":0,"color":9,"origin":[0,-14,0],"faces":{"north":{"uv":[0,0,2,4],"texture":0},"east":{"uv":[2,0,4,4],"texture":0},"south":{"uv":[0,4,2,8],"texture":0},"west":{"uv":[4,0,6,4],"texture":0},"up":{"uv":[4,6,2,4],"texture":0},"down":{"uv":[6,4,4,6],"texture":0}},"type":"cube","uuid":"0c5c59f9-d80b-901c-c299-a940fbcfbf12"}],"outliner":["0c5c59f9-d80b-901c-c299-a940fbcfbf12"],"textures":[{"path":"D:\\Maddo\\cirnogodot\\3D\\BlockbenchModels\\VendingMachine\\VendingMachine_Texture.png","name":"VendingMachine_Texture.png","folder":"block","namespace":"","id":"2","group":"","width":32,"height":32,"uv_width":8,"uv_height":8,"particle":false,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","pbr_channel":"color","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"06f86ca6-c3fe-25f3-905d-ed1e33230b51","relative_path":"VendingMachine_Texture.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"export_options":{"gltf":{"encoding":"binary","scale":16,"embed_textures":true,"armature":false,"animations":true}}}

View file

@ -1 +1 @@
{"asset":{"version":"2.0","generator":"Blockbench 4.12.5 glTF exporter"},"scenes":[{"nodes":[1],"name":"blockbench_export"}],"scene":0,"nodes":[{"rotation":[0,-1,0,6.123233995736766e-17],"translation":[0,-0.875,0],"name":"cube","mesh":0},{"children":[0]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963}],"buffers":[{"byteLength":840,"uri":"data:application/octet-stream;base64,AAAAPwAAAEAAAAA/AAAAPwAAAEAAAAC/AAAAPwAAAAAAAAA/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAvwAAAAAAAAC/AAAAvwAAAAAAAAA/AAAAvwAAAEAAAAC/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAvwAAAAAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAAAAAAC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AACAPgAAAAAAAAA/AAAAAAAAgD4AAAA/AAAAPwAAAD8AAAA/AAAAAAAAQD8AAAAAAAAAPwAAAD8AAEA/AAAAPwAAAD8AAEA/AACAPgAAQD8AAAA/AAAAPwAAgD4AAAA/AABAPwAAAD8AAAA/AAAAPwAAQD8AAEA/AAAAPwAAQD8AAAAAAAAAPwAAgD4AAAA/AAAAAAAAgD8AAIA+AACAPwAAAAAAAAAAAACAPgAAAAAAAAAAAAAAPwAAgD4AAAA/AAACAAEAAgADAAEABAAGAAUABgAHAAUACAAKAAkACgALAAkADAAOAA0ADgAPAA0AEAASABEAEgATABEAFAAWABUAFgAXABUA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.5,2,0.5],"min":[-0.5,0,-0.5],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[0.75,1],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0,"name":"VendingMachine_Texture.png"}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]}]}
{"asset":{"version":"2.0","generator":"Blockbench 4.12.5 glTF exporter"},"scenes":[{"nodes":[1],"name":"blockbench_export"}],"scene":0,"nodes":[{"translation":[0,-0.875,0],"name":"cube","mesh":0},{"children":[0]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963}],"buffers":[{"byteLength":840,"uri":"data:application/octet-stream;base64,AAAAPwAAAEAAAAA/AAAAPwAAAEAAAAC/AAAAPwAAAAAAAAA/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAvwAAAAAAAAC/AAAAvwAAAAAAAAA/AAAAvwAAAEAAAAC/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAvwAAAAAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAAAAAAC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AACAPgAAAAAAAAA/AAAAAAAAgD4AAAA/AAAAPwAAAD8AAAA/AAAAAAAAQD8AAAAAAAAAPwAAAD8AAEA/AAAAPwAAAD8AAEA/AACAPgAAQD8AAAA/AAAAPwAAgD4AAAA/AABAPwAAAD8AAAA/AAAAPwAAQD8AAEA/AAAAPwAAQD8AAAAAAAAAPwAAgD4AAAA/AAAAAAAAgD8AAIA+AACAPwAAAAAAAAAAAACAPgAAAAAAAAAAAAAAPwAAgD4AAAA/AAACAAEAAgADAAEABAAGAAUABgAHAAUACAAKAAkACgALAAkADAAOAA0ADgAPAA0AEAASABEAEgATABEAFAAWABUAFgAXABUA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.5,2,0.5],"min":[-0.5,0,-0.5],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[0.75,1],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0,"name":"VendingMachine_Texture.png"}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]}]}

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -587,7 +587,7 @@
( 240 696 32 ) ( 240 696 33 ) ( 241 696 32 ) Walls/Wall0 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 224 928 0 ) ( 224 927 0 ) ( 225 928 0 ) Walls/Wall0 [ 0 -1 0 0 ] [ -1 0 0 0 ] 270 1 1
( 240 800 48 ) ( 241 800 48 ) ( 240 799 48 ) Manual/Black [ 0 -1 0 0 ] [ -1 0 0 0 ] 270 1 1
( 224 800 16 ) ( 225 800 16 ) ( 224 800 17 ) Walls/Wall0 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 224 800 16 ) ( 225 800 16 ) ( 224 800 17 ) Manual/Black [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 240 800 32 ) ( 240 799 32 ) ( 240 800 33 ) Walls/Wall0 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 -1 1
}
// brush 65
@ -613,7 +613,7 @@
( 336 968 16 ) ( 336 968 17 ) ( 336 967 16 ) Walls/Wall0 [ 0 1 0 -8 ] [ 0 0 -1 0 ] 0 -1 1
( 344 736 32 ) ( 344 736 33 ) ( 345 736 32 ) Walls/Wall0 [ 1 0 0 8 ] [ 0 0 -1 0 ] 0 1 1
( 328 968 0 ) ( 328 967 0 ) ( 329 968 0 ) Walls/Wall0 [ 0 -1 0 -8 ] [ -1 0 0 8 ] 270 1 1
( 344 840 48 ) ( 345 840 48 ) ( 344 839 48 ) Manual/Black [ 0 -1 0 -8 ] [ -1 0 0 8 ] 270 1 1
( 344 840 24 ) ( 345 840 24 ) ( 344 839 24 ) Manual/Black [ 0 -1 0 0 ] [ -1 0 0 0 ] 180 1 1
( 328 800 16 ) ( 329 800 16 ) ( 328 800 17 ) Walls/Wall0 [ 1 0 0 8 ] [ 0 0 -1 0 ] 0 1 1
( 344 840 32 ) ( 344 839 32 ) ( 344 840 33 ) Manual/Black [ 0 1 0 -8 ] [ 0 0 -1 0 ] 0 -1 1
}
@ -631,7 +631,7 @@
( 232 808 16 ) ( 232 808 17 ) ( 232 807 16 ) Walls/Wall0 [ 0 1 0 -8 ] [ 0 0 -1 0 ] 0 -1 1
( 168 800 32 ) ( 168 800 33 ) ( 169 800 32 ) Walls/Wall0 [ 1 0 0 -8 ] [ 0 0 -1 0 ] 0 1 1
( 152 808 0 ) ( 152 807 0 ) ( 153 808 0 ) Walls/Wall0 [ 0 -1 0 -8 ] [ -1 0 0 -8 ] 270 1 1
( 168 680 48 ) ( 169 680 48 ) ( 168 679 48 ) Manual/Black [ 0 -1 0 -8 ] [ -1 0 0 -8 ] 270 1 1
( 168 680 24 ) ( 169 680 24 ) ( 168 679 24 ) Manual/Black [ 0 -1 0 0 ] [ -1 0 0 0 ] 180 1 1
( 152 808 16 ) ( 153 808 16 ) ( 152 808 17 ) Manual/Black [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 344 680 32 ) ( 344 679 32 ) ( 344 680 33 ) Manual/Black [ 0 1 0 -8 ] [ 0 0 -1 0 ] 0 -1 1
}
@ -1480,6 +1480,33 @@
( 432 352 16 ) ( 433 352 16 ) ( 432 352 17 ) Walls/Wall0 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 448 224 32 ) ( 448 223 32 ) ( 448 224 33 ) Walls/Wall0 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 -1 1
}
// brush 164
{
( 336 864 40 ) ( 336 864 41 ) ( 336 863 40 ) special/clip [ 0 1 0 0 ] [ 0 0 -1 24 ] 0 -1 1
( 344 744 56 ) ( 344 744 57 ) ( 345 744 56 ) special/clip [ 1 0 0 8 ] [ 0 0 -1 24 ] 270 1 1
( 328 864 24 ) ( 328 863 24 ) ( 329 864 24 ) special/clip [ 0 -1 0 0 ] [ -1 0 0 -24 ] 270 1 1
( 344 736 48 ) ( 345 736 48 ) ( 344 735 48 ) special/clip [ 0 -1 0 0 ] [ -1 0 0 -24 ] 270 1 1
( 328 808 40 ) ( 329 808 40 ) ( 328 808 41 ) special/clip [ 1 0 0 8 ] [ 0 0 -1 24 ] 180 1 1
( 344 736 56 ) ( 344 735 56 ) ( 344 736 57 ) special/clip [ 0 -1 0 0 ] [ 0 0 1 0 ] 180 1 -1
}
// brush 165
{
( 232 920 40 ) ( 232 920 41 ) ( 232 919 40 ) special/clip [ 0 1 0 -8 ] [ 0 0 -1 24 ] 270 -1 1
( 336 800 56 ) ( 336 800 57 ) ( 337 800 56 ) special/clip [ 1 0 0 -16 ] [ 0 0 -1 24 ] 90 1 1
( 320 920 24 ) ( 320 919 24 ) ( 321 920 24 ) special/clip [ 0 -1 0 -8 ] [ -1 0 0 0 ] 90 1 1
( 336 792 48 ) ( 337 792 48 ) ( 336 791 48 ) special/clip [ 0 -1 0 -8 ] [ -1 0 0 0 ] 90 1 1
( 320 808 40 ) ( 321 808 40 ) ( 320 808 41 ) special/clip [ 1 0 0 -16 ] [ 0 0 -1 24 ] 90 1 1
( 336 792 56 ) ( 336 791 56 ) ( 336 792 57 ) special/clip [ 0 -1 0 -8 ] [ 0 0 1 0 ] 0 1 -1
}
// brush 166
{
( 336 856 40 ) ( 336 856 41 ) ( 336 855 40 ) special/clip [ 0 1 0 -8 ] [ 0 0 -1 24 ] 180 -1 1
( 400 736 56 ) ( 400 736 57 ) ( 401 736 56 ) special/clip [ 1 0 0 -16 ] [ 0 0 -1 24 ] 270 1 1
( 384 856 24 ) ( 384 855 24 ) ( 385 856 24 ) special/clip [ 0 -1 0 -8 ] [ -1 0 0 0 ] 270 1 1
( 400 728 48 ) ( 401 728 48 ) ( 400 727 48 ) special/clip [ 0 -1 0 -8 ] [ -1 0 0 0 ] 270 1 1
( 384 744 40 ) ( 385 744 40 ) ( 384 744 41 ) special/clip [ 1 0 0 -16 ] [ 0 0 -1 24 ] 270 1 1
( 400 728 56 ) ( 400 727 56 ) ( 400 728 57 ) special/clip [ 0 -1 0 -8 ] [ 0 0 1 0 ] 180 1 -1
}
}
// entity 1
{
@ -2372,130 +2399,150 @@
}
// entity 112
{
"classname" "actor_elevator_1"
"origin" "376 408 18"
}
// entity 113
{
"classname" "actor_tube_corner"
"origin" "216 488 24"
"angle" "270"
}
// entity 114
// entity 113
{
"classname" "actor_tube_corner"
"origin" "216 440 24"
"angle" "180"
}
// entity 115
// entity 114
{
"classname" "actor_box_green"
"origin" "328 472 20"
}
// entity 116
// entity 115
{
"classname" "actor_box_green"
"origin" "344 472 20"
}
// entity 117
// entity 116
{
"classname" "actor_box_yellow"
"origin" "344 488 20"
}
// entity 118
// entity 117
{
"classname" "actor_box_green"
"origin" "328 488 28"
}
// entity 119
// entity 118
{
"classname" "actor_box_yellow"
"origin" "328 440 28"
}
// entity 120
// entity 119
{
"classname" "actor_box_yellow"
"origin" "360 472 20"
}
// entity 121
// entity 120
{
"classname" "actor_capacitor"
"origin" "528 136 28"
}
// entity 122
// entity 121
{
"classname" "actor_capacitor"
"origin" "496 136 28"
}
// entity 123
{
"classname" "actor_vendingmachine"
"origin" "248 760 28"
"angle" "0"
}
// entity 124
// entity 122
{
"classname" "actor_box_green"
"origin" "248 712 20"
}
// entity 125
// entity 123
{
"classname" "actor_box_wood"
"origin" "244 792 28"
}
// entity 126
// entity 124
{
"classname" "actor_box_wood"
"origin" "244 792 20"
}
// entity 127
// entity 125
{
"classname" "actor_table"
"origin" "248 732 20"
}
// entity 128
// entity 126
{
"classname" "actor_box_green"
"origin" "280 792 20"
}
// entity 129
// entity 127
{
"classname" "actor_box_red"
"origin" "296 784 20"
}
// entity 130
// entity 128
{
"classname" "actor_box_blue"
"origin" "312 760 20"
}
// entity 131
// entity 129
{
"classname" "actor_box_yellow"
"origin" "320 792 20"
}
// entity 132
// entity 130
{
"classname" "actor_box_blue"
"origin" "248 712 28"
}
// entity 133
// entity 131
{
"classname" "actor_box_wood"
"origin" "244 776 20"
}
// entity 134
// entity 132
{
"classname" "actor_box_wood"
"origin" "252 792 20"
}
// entity 135
// entity 133
{
"classname" "actor_box_wood"
"origin" "308 792 20"
}
// entity 136
// entity 134
{
"classname" "actor_ac_unit"
"origin" "284 708 24"
"angle" "270"
}
// entity 135
{
"classname" "actor_vendingmachine"
"origin" "248 760 28"
}
// entity 136
{
"classname" "actor_vendingmachine"
"origin" "280 744 28"
"angle" "270"
}
// entity 137
{
"classname" "trigger_area"
"target" "actor_elevator_test"
// brush 0
{
( 360 352 16 ) ( 360 353 16 ) ( 360 352 17 ) special/clip [ 0 -1 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 360 352 16 ) ( 360 352 17 ) ( 361 352 16 ) special/clip [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 360 352 16 ) ( 361 352 16 ) ( 360 353 16 ) special/clip [ -1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( 384 384 24 ) ( 384 385 24 ) ( 385 384 24 ) special/clip [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( 384 384 24 ) ( 385 384 24 ) ( 384 384 25 ) special/clip [ -1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 384 384 24 ) ( 384 384 25 ) ( 384 385 24 ) special/clip [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
}
}
// entity 138
{
"classname" "actor_elevator_1"
"origin" "376 416 18"
"targetname" "actor_elevator_test"
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,7 @@ height = 0.342773
[node name="Elevator" type="Path3D" node_paths=PackedStringArray("Elevator")]
curve = SubResource("Curve3D_buenw")
script = ExtResource("1_buenw")
TargetName = &""
Elevator = NodePath("PathFollow3D")
[node name="PathFollow3D" type="PathFollow3D" parent="."]

View file

@ -12,4 +12,3 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0167541, 0.0118043, 0.00338
shape = SubResource("BoxShape3D_hsg1w")
[node name="blockbench_export" parent="." instance=ExtResource("1_wtma2")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)

View file

@ -1,11 +1,16 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://bmfarpfcbbfa5"]
[gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://bmfarpfcbbfa5"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_2x8yp"]
[ext_resource type="PackedScene" uid="uid://bb2pjblwkb7ub" path="res://3D/Scenes/Props/Vending_Machine_3D.tscn" id="2_2x8yp"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_jepr3"]
[ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_2x8yp"]
[resource]
script = ExtResource("3_jepr3")
script = ExtResource("3_2x8yp")
target_map_editor = 0
models_sub_folder = ""
scale_expression = ""
generate_size_property = false
generate_gd_ignore_file = false
scene_file = ExtResource("2_2x8yp")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false
@ -17,8 +22,8 @@ class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = {
"model": "\"3D/MapModels/VendingMachine.glb\"",
"size": AABB(-8, -8, -12, 8, 8, 12)
"size": AABB(-8, -8, -12, 8, 8, 12),
"studio": "\"3D/MapModels/actor_vendingmachine.glb\""
}
node_class = ""
name_property = ""

View file

@ -0,0 +1,30 @@
[gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://ceio7tm5eopbb"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_5ms1a"]
[ext_resource type="PackedScene" uid="uid://du6hlcoq0iip4" path="res://3D/Scenes/Props/control_pad_3d.tscn" id="2_5ms1a"]
[ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_y02cg"]
[resource]
script = ExtResource("3_y02cg")
target_map_editor = 0
models_sub_folder = ""
scale_expression = ""
generate_size_property = false
generate_gd_ignore_file = false
scene_file = ExtResource("2_5ms1a")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false
classname = "actor_vendingmachine"
description = "Vending Machine"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_5ms1a")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = {
"size": AABB(-8, -8, -12, 8, 8, 12),
"studio": "\"3D/MapModels/actor_vendingmachine.glb\""
}
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -1,6 +1,7 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://jn17j3xk5f3m"]
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=5 format=3 uid="uid://jn17j3xk5f3m"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_opmpi"]
[ext_resource type="Resource" uid="uid://c1utxplehq2jl" path="res://3D/TrenchBroom/EntityDefinitions/base/targetname_base.tres" id="2_d6vd7"]
[ext_resource type="PackedScene" uid="uid://b3io3bage2qyb" path="res://3D/Scenes/Props/Elevator_Path_3D.tscn" id="2_opmpi"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_t8pgb"]
@ -12,7 +13,7 @@ apply_scale_on_map_build = false
classname = "actor_elevator_1"
description = "Elevator Type 1"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_opmpi")])
base_classes = Array[Resource]([ExtResource("1_opmpi"), ExtResource("2_d6vd7")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false

View file

@ -2,7 +2,7 @@
[ext_resource type="Script" uid="uid://msq50x6rk4po" path="res://addons/func_godot/src/fgd/func_godot_fgd_solid_class.gd" id="1_oh5jt"]
[ext_resource type="Resource" uid="uid://ermxog0n4mvn" path="res://3D/TrenchBroom/EntityDefinitions/base/trigger_base.tres" id="1_xcmav"]
[ext_resource type="Script" uid="uid://dp6h7yqh8x1gv" path="res://3D/TrenchBroom/EntityScripts/Triggers/trigger_area.gd" id="3_5p7mv"]
[ext_resource type="Script" uid="uid://bafphlee7g81i" path="res://3D/TrenchBroom/EntityScripts/Triggers/TriggerArea.cs" id="3_xcmav"]
[resource]
script = ExtResource("1_oh5jt")
@ -15,7 +15,7 @@ build_occlusion = false
render_layers = 0
collision_shape_type = 1
collision_layer = 4
collision_mask = 4
collision_mask = 2
collision_priority = 1.0
collision_shape_margin = 0.04
add_textures_metadata = false
@ -23,7 +23,7 @@ add_vertex_metadata = false
add_face_position_metadata = false
add_face_normal_metadata = false
add_collision_shape_face_range_metadata = false
script_class = ExtResource("3_5p7mv")
script_class = ExtResource("3_xcmav")
classname = "trigger_area"
description = "Area node that activates its target group when entered."
func_godot_internal = false

View file

@ -0,0 +1,8 @@
using Godot;
using System;
[Tool]
public partial class ActivableSetter : Node
{
}

View file

@ -0,0 +1 @@
uid://cp8hoxa8tqes3

View file

@ -0,0 +1,105 @@
using Godot;
using System;
using Cirno.Scripts;
using Cirno.Scripts.Components.FSM._3DPlayer;
using Godot.Collections;
[Tool]
public partial class TriggerArea : Area3D
{
[Export] public string Target { get; private set; }
[Export] public string TargetFunc { get; private set; }
[Export] public string TargetName { get; private set; }
public enum TriggerStates
{
READY,
USED
}
private TriggerStates _triggerState = TriggerStates.READY;
private float _timeout = 0f;
private Node _lastActivator;
public void _func_godot_apply_properties(Dictionary<string, string> props)
{
Target = props["target"];
TargetFunc = props["targetfunc"];
TargetName = props["targetname"];
}
public void _on_ent_entered(Node ent)
{
GD.Print($"Trigger entered by {ent.Name}");
if (_triggerState is TriggerStates.READY)
{
if (ent is IsoPlayerFSMProxy)
{
GD.Print($"Entity {ent} is player, trying to use");
Use();
}
else
{
GD.Print($"{ent.Name} was not interaction controller");
}
}
else
{
GD.Print("Trigger was not ready");
}
}
public void Use()
{
if (_triggerState is TriggerStates.READY)
{
_triggerState = TriggerStates.USED;
ToggleCollision(false);
UseTargets(this, Target);
}
}
private void UseTargets(Node activator, string target)
{
GD.Print($"Trying to use targets called: {target}");
var targetList = GetTree().GetNodesInGroup(target);
foreach (var t in targetList)
{
//string f;
GD.Print($"Trying to use {t.Name}");
if (t is IActivable activable)
{
GD.Print($"Activating {t.Name}");
activable.Toggle();
}
}
}
private void ToggleCollision(bool toggle)
{
}
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
if (Engine.IsEditorHint()) return;
//TBGAME.set_targetname(self, targetname)
if (!string.IsNullOrEmpty(TargetName))
{
this.AddToGroup(TargetName);
}
}
public TriggerArea()
{
Monitoring = true;
Monitorable = false;
BodyEntered += _on_ent_entered;
//AreaEntered += _on_ent_entered;
}
}

View file

@ -0,0 +1 @@
uid://bafphlee7g81i

View file

@ -10,4 +10,9 @@ public partial class Activable : Area2D, IActivable
//Debug.WriteLine("Activated");
return true;
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -41,6 +41,11 @@ public partial class BlackCover : Sprite2D, IActivable
UpdateSprite();
return true;
}
public void Toggle()
{
this.Activate();
}
private void UpdateSprite()
{

View file

@ -131,4 +131,9 @@ public partial class BulletEmitter : Node2D, IActivable
EmitSignal(SignalName.StateChanged, IsEmitting);
return true;
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -63,6 +63,11 @@ public partial class ScriptableBase : Node2D, IActivable
return true;
}
public void Toggle()
{
this.Activate();
}
public bool CanActivate()
{

View file

@ -30,4 +30,9 @@ public partial class ActorSpawner : Node2D, IActivable
return true;
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -164,6 +164,11 @@ public partial class Boss : Enemy, IActivable, IScriptHost
return true;
}
public void Toggle()
{
this.Activate();
}
private async Task Switchphase(BossPhase phase)
{

View file

@ -2,6 +2,7 @@
namespace Cirno.Scripts.Actors;
[Tool]
public partial class Elevator3D : PathFollow3D, IActivable
{
[Export] public float Speed { get; set; }
@ -11,6 +12,7 @@ public partial class Elevator3D : PathFollow3D, IActivable
public override void _Process(double delta)
{
if (Engine.IsEditorHint()) return;
if (!_isMoving) return;
ProgressRatio += (Speed * (float)delta) * _multiplier;
@ -24,12 +26,18 @@ public partial class Elevator3D : PathFollow3D, IActivable
public bool Activate(ActivationType activationType = ActivationType.Toggle)
{
if (Engine.IsEditorHint()) return false;
if (_isMoving) return false;
StartMoving();
return true;
}
public void Toggle()
{
this.Activate();
}
public void StartMoving()
{

View file

@ -1,13 +1,36 @@
using Godot;
using Godot.Collections;
namespace Cirno.Scripts.Actors;
[Tool]
public partial class ElevatorProxy3D : Path3D, IActivable
{
[Export] public StringName TargetName { get; set; }
[Export] public Elevator3D Elevator { get; private set; }
public bool Activate(ActivationType activationType = ActivationType.Toggle)
{
if (Engine.IsEditorHint()) return false;
return Elevator.Activate(activationType);
}
public void Toggle()
{
this.Activate();
}
public void _func_godot_apply_properties(Dictionary props)
{
TargetName = (string)props["targetname"];
}
public override void _Ready()
{
if (Engine.IsEditorHint()) return;
if (!string.IsNullOrWhiteSpace(TargetName))
{
this.AddToGroup(TargetName);
}
}
}

View file

@ -149,4 +149,9 @@ public partial class RogueliteEnemySpawner : Marker2D, IActivable
return true;
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -75,6 +75,11 @@ public partial class ScriptableBulletsEmitter : Node2D, IActivable, IScriptHost
return true;
}
public void Toggle()
{
this.Activate();
}
public override void _Process(double delta)
{
if (!_isActive) return;

View file

@ -35,6 +35,11 @@ public partial class ElevatorProxy : Area2D, IActivable
EmitSignal(SignalName.Activated, (int)activationType);
return true;
}
public void Toggle()
{
this.Activate();
}
private void _on_area_entered(Area2D area)
{

View file

@ -18,4 +18,9 @@ public partial class ElevatorProxyProxy : Path2D, IActivable
{
return _elevatorProxy.Activate(activationType);
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -71,4 +71,9 @@ public partial class EnemyFSMProxy : CharacterBody2D, IActivable
return true;
}
public void Toggle()
{
this.Activate();
}
}

View file

@ -3,6 +3,7 @@
public interface IActivable
{
bool Activate(ActivationType activationType = ActivationType.Toggle);
void Toggle();
}
public enum ActivationType

View file

@ -51,6 +51,11 @@ public partial class CheckpointAnimation : Node2D, IActivable
return true;
}
public void Toggle()
{
this.Activate();
}
private async Task AnimateAsync(CancellationToken cancellationToken)
{
try