OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-tps_demo commits / e4ccb49

sdfsdfsd
e4ccb49026d5eaf8c21565686dfa891f2c9faaeb
by Dresk Spidflisk <dreskspidflisk@gmail.com> · 2022-04-11T21:36:11.000Z

Changed files (3) +5 -8

game/player/player_core.gd +4 -4
……@@ -125,7 +125,6 @@ func grapplingHook_CheckActivation():
125125 if(playerWantsToShootGrapplingHook):
126126 playerWantsToShootGrapplingHook = false
127127 grapplingHook_IsHooked = true
128 # grapplingHook_GrapplePosition = grappleHookCast.get_collision_point()
129128 grappleVisualLine.show()
130129 $Model/Sound_Shoot_GrapplingHook_2.play()
131130 grappleIKTarget.translation = grapplingHook_GrapplePosition
……@@ -289,7 +288,7 @@ func respawnPlayer():
289288 kinematicVelocity = Vector3.ZERO
290289 grapplingHook_IsHooked = false
291290 playerWantsToShootGrapplingHook = false
292 playerWantsToReleaseGrapplingHook = false
291 playerWantsToReleaseGrapplingHook = true
293292 self.translation = currentSpawnLocation
294293
295294func playerCanJump() -> bool:
……@@ -369,8 +368,9 @@ func _on_Input_player_shoot_grapplinghook():
369368
370369func _on_Input_player_release_grapplinghook():
371370 if( Input.get_mouse_mode() != Input.MOUSE_MODE_VISIBLE ):
372 playerWantsToReleaseGrapplingHook = true
373 hyperGossip.broadcast_event(EVENT_PLAYER_RELEASE_GRAPPLINGHOOK, getPlayerLocalCoreNetworkData() )
371 if(grapplingHook_IsHooked):
372 playerWantsToReleaseGrapplingHook = true
373 hyperGossip.broadcast_event(EVENT_PLAYER_RELEASE_GRAPPLINGHOOK, getPlayerLocalCoreNetworkData() )
374374
375375
376376func _checkPlayerCanJump(newBody : PhysicsBody, addedBody : bool) -> void:
game/player/player_core_local.tscn +0 -3
……@@ -20,9 +20,6 @@ transform = Transform( 1.53846, 0, 0, 0, 1.53846, 0, 0, 0, 1.53846, 0, 0, 0 )
2020stream = ExtResource( 9 )
2121attenuation_filter_cutoff_hz = 5000.0
2222
23[node name="AnimationTree" parent="." index="3"]
24active = true
25
2623[node name="Input" type="Node" parent="." index="4"]
2724script = ExtResource( 2 )
2825
hypergodot/hyper_godot_core.gd +1 -1
……@@ -97,7 +97,6 @@ func get_player_object(id):
9797func updatePlayer_shootGrapplingHook(data, id):
9898 var remotePlayer = get_player_object(id)
9999
100 remotePlayer.playerWantsToShootGrapplingHook = true
101100 var translation : Vector3 = Vector3(data.translation.x, data.translation.y, data.translation.z)
102101 var direction : Vector3 = Vector3(data.direction.x, data.direction.y, data.direction.z)
103102 var velocity : Vector3 = Vector3(data.velocity.x, data.velocity.y, data.velocity.z)
……@@ -105,6 +104,7 @@ func updatePlayer_shootGrapplingHook(data, id):
105104
106105 remotePlayer.playerCoreNetworkDataUpdate_Types(translation, direction, velocity)
107106 remotePlayer.grapplingHook_GrapplePosition = grapple_position
107 remotePlayer.playerWantsToShootGrapplingHook = true
108108
109109func updatePlayer_releaseGrapplingHook(data, id):
110110 var remotePlayer = get_player_object(id)