Skip to content

Commit

Permalink
Added JumpZVelocity as an adjustable parameter for quake movement.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Aug 17, 2020
1 parent 275b9b2 commit fe28df3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions QL/QLMoveComponentQuake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void UQLMoveComponentQuake::SetMovementParameter(UQLMovementParameterQuake* Move
NumOfJumpRequestToleranceFrames = MovementParameterQuake->NumOfJumpRequestToleranceFrames;
BrakingDecelerationWalking = MovementParameterQuake->BrakingDecelerationWalking;
PenaltyScaleFactorForHoldingJumpButton = MovementParameterQuake->PenaltyScaleFactorForHoldingJumpButton;
JumpZVelocity = MovementParameterQuake->JumpZVelocity;

HasJumpPressedList.Init(false, NumOfJumpRequestToleranceFrames);
FirstElementIndexForJumpPressed = 0;
Expand Down
1 change: 1 addition & 0 deletions QL/QLMovementParameterQuake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ UQLMovementParameterQuake::UQLMovementParameterQuake()
NumOfJumpRequestToleranceFrames = 5;
BrakingDecelerationWalking = MaxAcceleration;
PenaltyScaleFactorForHoldingJumpButton = 0.25f;
JumpZVelocity = 420.0f;
}
3 changes: 3 additions & 0 deletions QL/QLMovementParameterQuake.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ class QL_API UQLMovementParameterQuake : public UObject

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "C++Property")
float PenaltyScaleFactorForHoldingJumpButton;

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "C++Property")
float JumpZVelocity;
};

0 comments on commit fe28df3

Please sign in to comment.