-
-
Notifications
You must be signed in to change notification settings - Fork 474
Add nitro vehicle functions server side #3951
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
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 |
Are you still interested in continuing this pull request? @Proxy-99 |
I will continue on it by today |
|
||
bool CVehicle::IsNitroInstalled() const noexcept | ||
{ | ||
return this->m_pUpgrades->GetSlotState(8) != 0; |
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.
return m_pUpgrades->GetSlotState(8) != 0;
if (!IsNitroInstalled()) | ||
return false; | ||
|
||
return m_nitroLevel < 0; |
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.
return IsNitroInstalled() ? m_nitroLevel < 0 : false;
Add
isVehicleNitroActivated
andgetVehicleNitroLevel
at the server sideclosing #3703