feat(gta-core-five): disable passive mode using convar#4076
Conversation
|
I think it would be more flexible to expose a native similar to OnesyncEnableRemoteAttachmentSanitization It could also be useful to have a native that ignores passive mode for a specific player ped instead of applying it globally, if that's not too much complexity to add. |
Agreed same here |
iirc when I asked about implementing that I got told to rather do it as a ConVar instead of a native, maybe @radium-cfxcan clarify whether to expose it as native or convar |
|
And couldn't both be implemented, with convar taking prevalence over the native method? That way, servers that want to block it entirely can do so using convar, and those that want to block it temporarily via a script can use the native method |
New natives will not be added currently because it would mean double work for Gen9 (enhanced) if i understood it correctly. |
Goal of this PR
Preventing abuse of the GTA:O friendly / passive mode sync which is being actively exploited and implemented in almost every cheat.
How is this PR achieving the goal
Patch out the TreatAsFriendlyForTargetingAndDamage check inside CPed::IsAllowedToDamageEntity when the game_disablePassiveMode convar is enabled.
This PR applies to the following area(s)
FiveM
Successfully tested on
Game builds: 3258
Platforms: Windows
Checklist
Fixes issues
Cheats abusing passive mode: https://www.youtube.com/watch?v=IXXxhkDEt6A