summaryrefslogtreecommitdiff
path: root/godot/scenes/characters/PlayerRigid.tscn
blob: 87a463d900c82c0408c7fa0d3f01b63c6e00c324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[gd_scene load_steps=14 format=2]

[ext_resource path="res://scripts/characters/player_controller_new.gd" type="Script" id=1]
[ext_resource path="res://theming/FreeMono.otf" type="DynamicFontData" id=2]
[ext_resource path="res://scenes/characters/PlayerAreaDetect.gd" type="Script" id=3]
[ext_resource path="res://scenes/characters/viewmodel_arms.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/weapons/hands.res" type="Resource" id=5]
[ext_resource path="res://scenes/weapons/pistol.tres" type="Resource" id=6]
[ext_resource path="res://scenes/weapons/rockets.tres" type="Resource" id=7]
[ext_resource path="res://scenes/weapons/grapplinghook.tres" type="Resource" id=8]

[sub_resource type="PhysicsMaterial" id=8]
resource_local_to_scene = true
rough = true

[sub_resource type="BoxShape" id=6]
extents = Vector3( 0.325, 0.9, 0.325 )

[sub_resource type="CubeMesh" id=4]
size = Vector3( 0.6, 1.8, 0.6 )

[sub_resource type="DynamicFont" id=5]
size = 20
outline_size = 3
use_filter = true
font_data = ExtResource( 2 )

[sub_resource type="BoxShape" id=1]
extents = Vector3( 0.325, 0.9, 0.325 )

[node name="Soldier" type="RigidBody" groups=["playable", "player"]]
collision_layer = 32769
collision_mask = 32769
mode = 2
mass = 80.0
physics_material_override = SubResource( 8 )
continuous_cd = true
contacts_reported = 3
contact_monitor = true
can_sleep = false
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
linear_damp = 0.0
angular_damp = 0.0
script = ExtResource( 1 )
weapon_slot1 = ExtResource( 5 )
weapon_slot2 = ExtResource( 6 )
weapon_slot3 = ExtResource( 7 )
weapon_slot4 = ExtResource( 8 )

[node name="Collision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0 )
shape = SubResource( 6 )

[node name="WeaponSound" type="AudioStreamPlayer3D" parent="."]

[node name="Neck" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.44, 0 )

[node name="Head" type="Spatial" parent="Neck"]

[node name="UseRay" type="RayCast" parent="Neck/Head"]
unique_name_in_owner = true
enabled = true
cast_to = Vector3( 0, 0, -2.5 )
collision_mask = 131075
collide_with_areas = true

[node name="MeleeRay" type="RayCast" parent="Neck/Head"]
unique_name_in_owner = true
enabled = true
cast_to = Vector3( 0, 0, -2.5 )
collision_mask = 262145

[node name="GunRay" type="RayCast" parent="Neck/Head"]
cast_to = Vector3( 0, 0, -300 )

[node name="VIEWMODEL_ARMS" parent="Neck/Head" instance=ExtResource( 4 )]
unique_name_in_owner = true
transform = Transform( -0.1, 0, -1.50996e-08, 0, 0.1, 0, 1.50996e-08, 0, -0.1, 0, -0.055375, 0.0132675 )

[node name="CarryPoint" type="Position3D" parent="Neck/Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.07564 )

[node name="Feet" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.03, 0 )
enabled = true
cast_to = Vector3( 0, -0.05, 0 )

[node name="vis" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0 )
mesh = SubResource( 4 )

[node name="NavigationAgent" type="NavigationAgent" parent="."]
path_desired_distance = 1.5
target_desired_distance = 1.5
agent_height_offset = -0.5
path_max_distance = 1.0

[node name="Nametag" type="Label3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.08522, 0 )
billboard = 1
font = SubResource( 5 )

[node name="AreaDetect" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0 )
collision_layer = 4
collision_mask = 4
monitorable = false
script = ExtResource( 3 )

[node name="Collision" type="CollisionShape" parent="AreaDetect"]
shape = SubResource( 1 )

[connection signal="area_entered" from="AreaDetect" to="AreaDetect" method="_on_AreaDetect_area_entered"]
[connection signal="area_exited" from="AreaDetect" to="AreaDetect" method="_on_AreaDetect_area_exited"]