| … | … | @@ -125,7 +125,6 @@ func grapplingHook_CheckActivation(): |
| 125 | 125 | if(playerWantsToShootGrapplingHook): |
| 126 | 126 | playerWantsToShootGrapplingHook = false |
| 127 | 127 | grapplingHook_IsHooked = true |
| 128 | | # grapplingHook_GrapplePosition = grappleHookCast.get_collision_point() |
| 129 | 128 | grappleVisualLine.show() |
| 130 | 129 | $Model/Sound_Shoot_GrapplingHook_2.play() |
| 131 | 130 | grappleIKTarget.translation = grapplingHook_GrapplePosition |
| … | … | @@ -289,7 +288,7 @@ func respawnPlayer(): |
| 289 | 288 | kinematicVelocity = Vector3.ZERO |
| 290 | 289 | grapplingHook_IsHooked = false |
| 291 | 290 | playerWantsToShootGrapplingHook = false |
| 292 | | playerWantsToReleaseGrapplingHook = false |
| 291 | playerWantsToReleaseGrapplingHook = true |
| 293 | 292 | self.translation = currentSpawnLocation |
| 294 | 293 | |
| 295 | 294 | func playerCanJump() -> bool: |
| … | … | @@ -369,8 +368,9 @@ func _on_Input_player_shoot_grapplinghook(): |
| 369 | 368 | |
| 370 | 369 | func _on_Input_player_release_grapplinghook(): |
| 371 | 370 | 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() ) |
| 374 | 374 | |
| 375 | 375 | |
| 376 | 376 | func _checkPlayerCanJump(newBody : PhysicsBody, addedBody : bool) -> void: |