mirror of
https://port.numenaute.org/aleajactaest/khanat-client.git
synced 2024-11-14 03:09:10 +00:00
75 lines
2.8 KiB
Text
75 lines
2.8 KiB
Text
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://scenes/player/player.gd" type="Script" id=1]
|
|
[ext_resource path="res://scenes/characters/character.tscn" type="PackedScene" id=2]
|
|
|
|
[sub_resource type="CylinderShape" id=1]
|
|
height = 1.88531
|
|
|
|
[sub_resource type="QuadMesh" id=2]
|
|
size = Vector2( 0.1, 0.1 )
|
|
|
|
[sub_resource type="SpatialMaterial" id=3]
|
|
flags_unshaded = true
|
|
flags_no_depth_test = true
|
|
flags_fixed_size = true
|
|
params_billboard_mode = 1
|
|
params_use_alpha_scissor = true
|
|
params_alpha_scissor_threshold = 0.1
|
|
|
|
[sub_resource type="SphereShape" id=4]
|
|
radius = 0.197459
|
|
|
|
[node name="player" type="Spatial"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="character" parent="." instance=ExtResource( 2 )]
|
|
|
|
[node name="spring_arm" type="Spatial" parent="character"]
|
|
|
|
[node name="camera_tps" type="Camera" parent="character/spring_arm"]
|
|
transform = Transform( -1, -1.37706e-07, 2.95312e-07, 0, 0.906308, 0.422618, -3.25841e-07, 0.422618, -0.906308, 0, 2, -2 )
|
|
current = true
|
|
near = 0.01
|
|
far = 100000.0
|
|
|
|
[node name="camera_position" type="Spatial" parent="character/spring_arm"]
|
|
|
|
[node name="camera_fps" type="Camera" parent="character/spring_arm"]
|
|
transform = Transform( -1, 0, -3.25841e-07, 0, 1, 0, 3.25841e-07, 0, -1, 0, 1.5, 0.158843 )
|
|
near = 0.01
|
|
far = 100000.0
|
|
|
|
[node name="interact_area" type="Area" parent="character"]
|
|
collision_layer = 1024
|
|
collision_mask = 2147484672
|
|
|
|
[node name="collision_shape" type="CollisionShape" parent="character/interact_area"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.822584, 0 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="target_spring_arm" type="SpringArm" parent="character"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.18955, 0 )
|
|
visible = false
|
|
spring_length = 10.0
|
|
|
|
[node name="crosshair" type="MeshInstance" parent="character/target_spring_arm"]
|
|
mesh = SubResource( 2 )
|
|
material/0 = SubResource( 3 )
|
|
|
|
[node name="crosshair" type="MeshInstance" parent="character"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.18955, 0 )
|
|
visible = false
|
|
mesh = SubResource( 2 )
|
|
material/0 = SubResource( 3 )
|
|
|
|
[node name="crosshair_area" type="Area" parent="character/crosshair"]
|
|
|
|
[node name="collision_shape" type="CollisionShape" parent="character/crosshair/crosshair_area"]
|
|
shape = SubResource( 4 )
|
|
[connection signal="equip" from="character" to="." method="_on_character_equip"]
|
|
[connection signal="unequip" from="character" to="." method="_on_character_unequip"]
|
|
[connection signal="body_entered" from="character/interact_area" to="." method="_on_interact_area_body_entered"]
|
|
[connection signal="body_exited" from="character/interact_area" to="." method="_on_interact_area_body_exited"]
|
|
[connection signal="body_entered" from="character/crosshair/crosshair_area" to="." method="_on_crosshair_area_body_entered"]
|
|
[connection signal="body_exited" from="character/crosshair/crosshair_area" to="." method="_on_crosshair_area_body_exited"]
|