Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ability to Set Vehicle Wheel Rotation #3487

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

gta191977649
Copy link
Contributor

@gta191977649 gta191977649 commented Jun 17, 2024

This PR plans to add 2 functions that allow the scripter to manipulate wheel rotation for the vehicle. The function supports both Automobile & Bike (Including BMX)
This sets all wheel rotation:
setVehicleWheelsRotation(vehicle vehicleElement,float rotation)

Test resource:
wheel.zip

2024-06-18.04-24-15.mp4

@gta191977649 gta191977649 changed the title Add Ability to Set Vehicle Wheels Rotation Add Ability to Set Vehicle Wheel Rotation Jun 17, 2024
Copy link
Contributor

@TracerDS TracerDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GJ

Client/game_sa/CVehicleSA.h Outdated Show resolved Hide resolved
@@ -1614,6 +1617,29 @@ bool CClientVehicle::SetRotorSpeed(float fSpeed)
}
}


bool CClientVehicle::SetWheelsRotation(float fRot1, float fRot2, float fRot3, float fRot4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noexcept

Client/mods/deathmatch/logic/CClientVehicle.h Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp Outdated Show resolved Hide resolved
Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.h Outdated Show resolved Hide resolved
@tederis tederis added the enhancement New feature or request label Jun 17, 2024
Copy link
Contributor

@TracerDS TracerDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Client/sdk/game/CVehicle.h Outdated Show resolved Hide resolved
@gta191977649 gta191977649 marked this pull request as ready for review June 28, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants