Don't freeze player on non-moving anims
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
// TYPE: Client (JavaScript)
|
// TYPE: Client (JavaScript)
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loop, loopNoControl, freezeLastFrame, returnToOriginalPosition) {
|
function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loop, loopNoControl, freezeLastFrame, returnToOriginalPosition, freezePlayer) {
|
||||||
if(getGame() < VRR_GAME_GTA_IV) {
|
if(getGame() < VRR_GAME_GTA_IV) {
|
||||||
if(animType == VRR_ANIMTYPE_ADD) {
|
if(animType == VRR_ANIMTYPE_ADD) {
|
||||||
if(getGame() == VRR_GAME_GTA_VC || getGame() == VRR_GAME_GTA_SA) {
|
if(getGame() == VRR_GAME_GTA_VC || getGame() == VRR_GAME_GTA_SA) {
|
||||||
@@ -17,7 +17,7 @@ function makePedPlayAnimation(pedId, animGroup, animId, animType, animSpeed, loo
|
|||||||
}
|
}
|
||||||
getElementFromId(pedId).addAnimation(animGroup, animId);
|
getElementFromId(pedId).addAnimation(animGroup, animId);
|
||||||
|
|
||||||
if(getElementFromId(pedId) == localPlayer) {
|
if(getElementFromId(pedId) == localPlayer && !freezePlayer) {
|
||||||
inAnimation = true;
|
inAnimation = true;
|
||||||
setLocalPlayerControlState(false, false);
|
setLocalPlayerControlState(false, false);
|
||||||
localPlayer.collisionsEnabled = false;
|
localPlayer.collisionsEnabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user