OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-tps_demo commits / 48502d5

updating some player properties
48502d5ca4c35f31a85094e44f1a977e72cbe5ac
by plankatron <fleeky@gmail.com> · 2022-04-11T15:40:17.000Z

Changed files (4) +38 -10

game/player/particles.tscn +1 -1
……@@ -60,7 +60,7 @@ params_billboard_mode = 1
6060material = SubResource( 2 )
6161
6262[node name="Particles" type="Particles"]
63transform = Transform( 1.20264, 0, 0, 0, 1.20264, 0, 0, 0, 1.20264, 0, 0, 0 )
63transform = Transform( 1.20264, 0, 0, 0, 1.20264, 0, 0, 0, 1.20264, 0, 0.157076, 0 )
6464material_override = SubResource( 10 )
6565amount = 200
6666lifetime = 4.0
game/player/player_core.gd +5 -3
……@@ -29,11 +29,13 @@ onready var clippedCameraPivot : Spatial = $CameraHead/CameraPivot
2929onready var meshCollisionShape : CollisionShape = $CollisionShape
3030
3131onready var grappleHookCast : RayCast = $CameraHead/CameraPivot/GrappleHookCast
32#onready var grappleVisualPoint : CSGSphere = $GrapplingHook/GrappleVisualPoint
33onready var grappleVisualPoint : Sprite3D = $GrapplingHook/GrappleVisualPoint_2
32#onready var grappleVisualPoint : CSGSphere = $GrapplingHook/GrappleVisualPoint_1
33#onready var grappleVisualPoint : Sprite3D = $GrapplingHook/GrappleVisualPoint_2
34onready var grappleVisualPoint : Spatial = $GrapplingHook/GrappleVisualPoint
3435onready var grappleLineHelper : Spatial = $Model/LineHelper
3536# onready var grappleVisualLine : CSGCylinder = $GrapplingHook/LineHelper/GrappleVisualLine
3637onready var grappleVisualLine : CSGCylinder = $Model/LineHelper/GrappleVisualLine
38#onready var grappleVisualLine : Spatial = $Model/LineHelper/GrappleVisualLine_1
3739
3840var grapplingHook_GrapplePosition : Vector3 = Vector3.ZERO
3941var grapplingHook_IsHooked : bool = false
……@@ -123,7 +125,7 @@ func grapplingHook_CheckActivation():
123125 grapplingHook_IsHooked = true
124126 # grapplingHook_GrapplePosition = grappleHookCast.get_collision_point()
125127 grappleVisualLine.show()
126 $Model/Sound_Shoot_GrapplingHook.play()
128 $Model/Sound_Shoot_GrapplingHook_1.play()
127129 elif(playerWantsToReleaseGrapplingHook):
128130 # Stop grappling
129131 grapplingHook_IsHooked = false
game/player/player_core_local.tscn +31 -5
……@@ -1,10 +1,14 @@
1[gd_scene load_steps=7 format=2]
1[gd_scene load_steps=11 format=2]
22
33[ext_resource path="res://game/player/player_core.tscn" type="PackedScene" id=1]
44[ext_resource path="res://game/player/player_core_local_input.gd" type="Script" id=2]
55[ext_resource path="res://game/player/player_core_local_input_special.gd" type="Script" id=3]
66[ext_resource path="res://assets/sprites/grad_red_dot.png" type="Texture" id=4]
77[ext_resource path="res://game/player/player_core_local_debugui.tscn" type="PackedScene" id=5]
8[ext_resource path="res://assets/models/tumble/tumble_hand.glb" type="PackedScene" id=6]
9[ext_resource path="res://assets/shaders/electric/electric_grapple.tscn" type="PackedScene" id=7]
10[ext_resource path="res://assets/shaders/electric/Shield.tres" type="Material" id=8]
11[ext_resource path="res://assets/sounds/player/fire_grapplinghook1.mp3" type="AudioStream" id=9]
812
913[sub_resource type="SpatialMaterial" id=1]
1014flags_unshaded = true
……@@ -19,6 +23,23 @@ albedo_color = Color( 0.407843, 0, 0, 1 )
1923[node name="Sound_Jump" parent="Model" index="2"]
2024transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
2125
26[node name="Sound_Shoot_GrapplingHook_1" type="AudioStreamPlayer3D" parent="Model" index="7"]
27transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
28stream = ExtResource( 9 )
29
30[node name="Sound_Shoot_GrapplingHook" parent="Model" index="8"]
31stream = ExtResource( 9 )
32
33[node name="GrappleVisualLine_1" parent="Model/LineHelper" index="0" instance=ExtResource( 7 )]
34transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0.753, 0 )
35visible = false
36
37[node name="GrappleVisualLine" parent="Model/LineHelper" index="1"]
38material = ExtResource( 8 )
39
40[node name="AnimationTree" parent="." index="3"]
41active = true
42
2243[node name="Input" type="Node" parent="." index="4"]
2344script = ExtResource( 2 )
2445
……@@ -26,7 +47,7 @@ script = ExtResource( 2 )
2647script = ExtResource( 3 )
2748
2849[node name="CameraHead" type="Spatial" parent="." index="6"]
29transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0 )
50transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1.5, 0 )
3051
3152[node name="CameraPivot" type="Spatial" parent="CameraHead" index="0"]
3253
……@@ -36,7 +57,7 @@ enabled = true
3657cast_to = Vector3( 0, 0, -400 )
3758collision_mask = 2
3859debug_shape_custom_color = Color( 1, 0, 0, 1 )
39debug_shape_thickness = 5
60debug_shape_thickness = 5.0
4061
4162[node name="ClippedCamera" type="ClippedCamera" parent="CameraHead/CameraPivot" index="1"]
4263transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2.5 )
……@@ -44,14 +65,19 @@ fov = 90.0
4465
4566[node name="PlayerDebugUI" parent="." index="7" instance=ExtResource( 5 )]
4667
47[node name="GrappleVisualPoint" type="CSGSphere" parent="GrapplingHook" index="0"]
68[node name="GrappleVisualPoint" parent="GrapplingHook" index="0" instance=ExtResource( 6 )]
69transform = Transform( 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0 )
70
71[node name="GrappleVisualPoint_1" type="CSGSphere" parent="GrapplingHook" index="1"]
72visible = false
4873cast_shadow = 0
4974radius = 0.025
5075radial_segments = 22
5176rings = 22
5277material = SubResource( 1 )
5378
54[node name="GrappleVisualPoint_2" type="Sprite3D" parent="GrapplingHook" index="1"]
79[node name="GrappleVisualPoint_2" type="Sprite3D" parent="GrapplingHook" index="2"]
80visible = false
5581cast_shadow = 0
5682billboard = 1
5783texture = ExtResource( 4 )
game/player/player_local_core.tres +1 -1
……@@ -187,4 +187,4 @@ nodes/walk_scale/node = SubResource( 23 )
187187nodes/walk_scale/position = Vector2( -640, 360 )
188188nodes/wall_run/node = SubResource( 50 )
189189nodes/wall_run/position = Vector2( 720, -60 )
190node_connections = [ "output", 0, "wall_run", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "run_scale", 0, "Animation 4", "TimeScale 3", 0, "strafe", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "falling_scale", 0, "Animation 6", "walk_scale", 0, "Animation 3", "roll_scale", 0, "Animation", "roll", 0, "air_transition", "roll", 1, "roll_scale", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "landing_scale", 0, "Animation 7", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "jump_scale", 0, "jump" ]
190node_connections = [ "output", 0, "wall_run", "Blend2", 0, "Animation 8", "Blend2", 1, "Animation 9", "Blend2 2", 0, "Animation 11", "Blend2 2", 1, "Animation 10", "TimeScale 3", 0, "strafe", "aim_transition", 0, "TimeScale 3", "aim_transition", 1, "iwr_blend", "air_blend", 0, "jump_scale", "air_blend", 1, "falling_scale", "air_blend", 2, "landing_scale", "air_transition", 0, "air_blend", "air_transition", 1, "aim_transition", "falling_scale", 0, "Animation 6", "iwr_blend", 0, "Animation 2", "iwr_blend", 1, "walk_scale", "iwr_blend", 2, "run_scale", "jump_scale", 0, "jump", "landing_scale", 0, "Animation 7", "roll", 0, "air_transition", "roll", 1, "roll_scale", "roll_scale", 0, "Animation", "run_scale", 0, "Animation 4", "walk_scale", 0, "Animation 3", "wall_run", 0, "Blend2", "wall_run", 1, "Blend2 2", "wall_run", 2, "roll" ]