Skip to content

Commit 65f7b72

Browse files
parachute2: fix lint warnings (#635)
* fix 4 lint warnings * getControlState => getPedControlState
1 parent 7e86616 commit 65f7b72

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

[gameplay]/parachute2/client.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ local function handleParachuteLogic()
6060

6161
-- can we go to freefall/skydive
6262
if (strPlayerState == "GROUND" and bHasParachute) then
63-
fRotationX, fRotationY, fRotationZ = getElementRotation(localPlayer);
63+
local _, _, fRotationZ_ = getElementRotation(localPlayer);
64+
fRotationZ = fRotationZ_
6465

6566
if (not isPedOnGround(localPlayer) and not getPedContactElement(localPlayer)) then
6667
if (fVZ < -0.1) then
@@ -228,7 +229,7 @@ local function handleParachuteLogic()
228229
--]]
229230

230231
-- player opening parachute
231-
if (getControlState(localPlayer, "fire") and strParachuteState == "READY") then
232+
if (getPedControlState(localPlayer, "fire") and strParachuteState == "READY") then
232233
strPlayerState = "ACTION";
233234
setPedAnimation(localPlayer, "parachute", "para_open", -2, false, false, false, true);
234235
setPedAnimationSpeed(localPlayer, "para_open", 8);
@@ -340,9 +341,8 @@ local function handleParachuteLogic()
340341
end
341342

342343
-- player landed
343-
if (strPlayerState == "LANDED") then
344-
345-
end
344+
-- if (strPlayerState == "LANDED") then
345+
-- end
346346
end
347347
end
348348
addEventHandler("onClientRender", root, handleParachuteLogic);
@@ -361,8 +361,8 @@ function cleanupParachute(bLandedGood)
361361
toggleControl("next_weapon", true);
362362
toggleControl("previous_weapon", true);
363363

364-
if (not bLandedGood) then
364+
-- if (not bLandedGood) then
365365
-- todo: remove weapon from player via server
366366
-- takeWeapon(client, 46);
367-
end
368-
end
367+
-- end
368+
end

0 commit comments

Comments
 (0)