Rework Keep Vehicle Repaired to remove damage decals properly. (#2044)
* Keep Vehicle Repaired now uses CDecalManager to remove damage decals which allows it to ignore clan and livery decals. * Added more conditions to call SET_VEHICLE_FIXED to fix things like the R88 breaking its shell off. Fixed Seatbelt having inverted conditions. * Fixed keep_vehicle_repaired repairing things it doesn't need to repair if godmode/always clean is on already. Fixed spawn_vehicle_json not applying the radio station. * Consolidated signature for CDecalMgr::ClearDecals and its static instance.
This commit is contained in:
@ -9,14 +9,14 @@ namespace big
|
||||
|
||||
virtual void on_tick() override
|
||||
{
|
||||
PED::SET_PED_CONFIG_FLAG(self::ped, 32, true);
|
||||
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, true);
|
||||
PED::SET_PED_CONFIG_FLAG(self::ped, 32, false);
|
||||
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, false);
|
||||
}
|
||||
|
||||
virtual void on_disable() override
|
||||
{
|
||||
PED::SET_PED_CONFIG_FLAG(self::ped, 32, false);
|
||||
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, false);
|
||||
PED::SET_PED_CONFIG_FLAG(self::ped, 32, true);
|
||||
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, true);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user