Added logic check to stop if both jump multipliers are 1.0. (We are done with jump module for now, it works for me)
This commit is contained in:
parent
3706b345be
commit
1f6932071d
|
@ -36,6 +36,12 @@ JumpBoostOnClientJumpPost(client)
|
|||
new Float:distancemultiplier = ClassGetJumpDistance(client);
|
||||
new Float:heightmultiplier = ClassGetJumpHeight(client);
|
||||
|
||||
// If both are set to 1.0, then stop here to save some work.
|
||||
if (distancemultiplier == 1.0 && heightmultiplier == 1.0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
new Float:vecVelocity[3];
|
||||
|
||||
// Get client's current velocity.
|
||||
|
|
Loading…
Reference in New Issue
Block a user