Closed Deewarz closed 7 months ago
Amazing work done!
as for the Since we use defaults values when spawning, all vehicles are black, fuel full, not dirty and not rusty at spawn
:
it's a non-issue, since modders can always customize those values at spawn themselves in GM. Our MP should not implement any extra logic to supplement that or to simulate game's spawn behavior.
⚠️ Requires: https://github.com/MafiaHub/Framework/pull/92
Reverse
C_Car::SetActualFuel
C_Car::PosefujZimuVShopu
toC_Car::SetVehicleDirty
(because its the real name)C_Vehicle::AreBeaconLightsOn
toC_Vehicle::GetBeaconLightsOn
(consistency and closer to game nomenclature)C_Vehicle::GetWheelTintColor
toC_Vehicle::GetWheelColor
(closer to the game nomenclature)C_Vehicle::GetWheelColor
returns tire color also (field ism_TireColor
)C_Vehicle::SetWheelColor
set tire color alsoC_Vehicle::GetFuelTankCapacity();
C_Vehicle
fieldsm_Color1
andm_Color2
are nowm_MaterialColor
andm_MaterialColor1
(because its their real names)C_Vehicle
m_fDirtLevel
field is nowm_Dirty
(because its the real name)C_Vehicle
m_fRustLevel
field is nowm_Rust
(because its the real name)C_Vehicle::SetSteer
(use exact)C_Vehicle::SetWheelColor
(use exact)C_Vector4
fields orderVehicles hooks
hook::get_pattern()
instead ofhook::pattern().get_first()
Vehicle debug
C_Vehicle::GetFuelTankCapacity();
Sync
locked
tolockState
state
byon
(eg.hornState
=>hornOn
) (consistency and closer to game nomenclature)radioId
toradioStationId
rot
beforepos
(consitency)SDK
Enabled
byOn
(eg.getBeaconLightsEnabled
=>getBeaconLightsOn
) (consistency, shorter and closer to game nomenclature)getRadioStation
togetRadioStationId
andsetRadioStation
tosetRadioStationId
getColorPrimary
andsetColorPrimary
getColorSecondary
andsetColorSecondary
getDirt
andsetDirt
getFuel
andsetFuel
getRimColor
andsetRimColor
getRust
andsetRust
getTireColor
andsetTireColor
getWindowTint
andsetWindowTint
Known issues
C_Vehicle::IsEngineOn
,C_Vehicle::GetSiren
,C_Vehicle::GetBeaconLightsOn
are not reversed yet. => https://github.com/MafiaHub/MafiaMP/issues/73blackwhite, fuel full, not dirty and not rusty at spawn...