-
-
Notifications
You must be signed in to change notification settings - Fork 451
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 nitro vehicle functions server side #3951
base: master
Are you sure you want to change the base?
Conversation
Server/mods/deathmatch/logic/packets/CVehiclePuresyncPacket.cpp
Outdated
Show resolved
Hide resolved
Server/mods/deathmatch/logic/packets/CVehiclePuresyncPacket.cpp
Outdated
Show resolved
Hide resolved
You forgot to link the pull request with #3703 |
//2025-01-16 | ||
//Add isVehicleNitroActivated and getVehicleNitroLevel Server side |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintain consistency with other entries to avoid creating a mess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -75,6 +75,7 @@ class CSimVehiclePuresyncPacket : public CSimPacket | |||
CVector VehTurnSpeed; | |||
|
|||
float fVehHealth; | |||
float vehNitroLevel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float vehNitroLevel{0.0f};
float CLuaVehicleDefs::GetVehicleNitroLevel(CVehicle* vehicle) noexcept | ||
{ | ||
float fLevel = vehicle->GetNitroLevel(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float level = vehicle->GetNitroLevel();
Add
isVehicleNitroActivated
andgetVehicleNitroLevel
at the server sideclosing #3703