mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-15 16:34:48 +00:00
Fix/midair flag regrabs
This commit is contained in:
parent
59fb960102
commit
847fca30cb
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ func _release(inherited_velocity : Vector3, throw_speed : float):
|
||||||
_carried_flag.drop()
|
_carried_flag.drop()
|
||||||
_carried_flag.rotation_degrees.x = 0.0
|
_carried_flag.rotation_degrees.x = 0.0
|
||||||
_carried_flag.linear_velocity = inherited_velocity + (attachment.global_basis.z * throw_speed)
|
_carried_flag.linear_velocity = inherited_velocity + (attachment.global_basis.z * throw_speed)
|
||||||
|
# Throw the flag from some distance in front of the player to avoid regrabbing mid-air
|
||||||
|
_carried_flag.global_position = _carried_flag.global_position + (attachment.global_basis.z * 1.5)
|
||||||
_carried_flag = null
|
_carried_flag = null
|
||||||
|
|
||||||
func _is_carrying() -> bool:
|
func _is_carrying() -> bool:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue