Skip to content

Commit

Permalink
Merge pull request #16 from danzayau/2.0.1
Browse files Browse the repository at this point in the history
2.0.1
  • Loading branch information
danzayau authored Aug 9, 2019
2 parents 5977960 + a9fe5f9 commit 2935059
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addons/sourcemod/scripting/movementapi.sp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public Plugin myinfo =
name = "MovementAPI",
author = "DanZay",
description = "Provides API focused on player movement",
version = "2.0.0",
version = "2.0.1",
url = "https://github.com/danzayau/MovementAPI"
};

Expand Down Expand Up @@ -119,10 +119,10 @@ public void OnPlayerPostThinkPost(int client)
bool ducking = Movement_GetDucking(client);
MoveType movetype = Movement_GetMovetype(client);

UpdateMovetype(client, gI_Cmdnum[client], gI_TickCount[client], gMT_OldMovetype[client], movetype, gF_OldOrigin[client], origin, gF_OldVelocity[client], velocity);
UpdateOnGround(client, gI_Cmdnum[client], gI_TickCount[client], gB_OldOnGround[client], onGround, gF_OldOrigin[client], origin, gF_OldVelocity[client], velocity);
UpdateDucking(client, gB_OldDucking[client], ducking);
UpdateTurning(client, gF_OldEyeAngles[client], eyeAngles);
UpdateDucking(client, gB_OldDucking[client], ducking);
UpdateOnGround(client, gI_Cmdnum[client], gI_TickCount[client], gB_OldOnGround[client], onGround, gF_OldOrigin[client], origin, gF_OldVelocity[client], velocity);
UpdateMovetype(client, gI_Cmdnum[client], gI_TickCount[client], gMT_OldMovetype[client], movetype, gF_OldOrigin[client], origin, gF_OldVelocity[client], velocity);

gB_JustJumped[client] = false;
gF_OldOrigin[client] = origin;
Expand Down Expand Up @@ -263,4 +263,4 @@ static void UpdateTurning(int client, const float oldEyeAngles[3], const float e
gB_Turning[client] = eyeAngles[1] != oldEyeAngles[1];
gB_TurningLeft[client] = eyeAngles[1] < oldEyeAngles[1] - 180
|| eyeAngles[1] > oldEyeAngles[1] && eyeAngles[1] < oldEyeAngles[1] + 180;
}
}

0 comments on commit 2935059

Please sign in to comment.