Changed jump boost to only change velocity when multiplier is different from 1.0. Quick fix for jumping from boost platforms in maps.
This commit is contained in:
parent
1fb33b2b13
commit
f23bba58c6
@ -26,6 +26,12 @@ JumpBoostOnClientJump(client)
|
|||||||
new Float:distance = ClassGetJumpDistance(client);
|
new Float:distance = ClassGetJumpDistance(client);
|
||||||
new Float:height = ClassGetJumpHeight(client);
|
new Float:height = ClassGetJumpHeight(client);
|
||||||
|
|
||||||
|
// Do not apply jump boost if class jump boost multiplier is 1.0.
|
||||||
|
if (height == 1.0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get client's current velocity.
|
// Get client's current velocity.
|
||||||
new Float:vecVelocity[3];
|
new Float:vecVelocity[3];
|
||||||
ToolsClientVelocity(client, vecVelocity, false);
|
ToolsClientVelocity(client, vecVelocity, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user