Skip to content

Conversation

@Ktos93
Copy link
Contributor

@Ktos93 Ktos93 commented Oct 17, 2025

Goal of this PR

Add server-controlled ConVars to bypass scenario gender checks in RDR3, allowing players to use scenarios regardless of their character's gender.

How is this PR achieving the goal

This PR implements two new replicated ConVars (sv_skipScenarioMaleCheck and sv_skipScenarioFemaleCheck) that allow server administrators to disable gender-based scenario restrictions. When enabled, these ConVars bypass the internal AI condition checks for male and female scenarios, allowing any player to use scenarios regardless of their character's gender.

The implementation:

  • Adds client-side ConVars with ConVar_Replicated flag that automatically sync with server values
  • Hooks into the CAIConditionIsMale and CAIConditionIsFemale functions to check the ConVar values
  • Returns true (allowing scenario usage) when the respective ConVar is enabled, otherwise calls the original function
  • Uses trampoline hooks to intercept the original game functions

This PR applies to the following area(s)

RedM, Server, Client, Natives

Successfully tested on

Game builds: RDR3 1491

Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

@github-actions github-actions bot added the RedM Issues/PRs related to RedM label Oct 17, 2025
@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Oct 17, 2025
@github-actions github-actions bot added invalid Requires changes before it's considered valid and can be (re)triaged and removed triage Needs a preliminary assessment to determine the urgency and required action labels Oct 17, 2025
@DaNeo61
Copy link

DaNeo61 commented Oct 18, 2025

would be nice to see something for the MP_MOONSHINE_BAND_ scenarios, too

they are locked by Condition type="CAIConditionIsInNetworkSession" which seems to be not given.

foundable in "Red Dead Redemption 2\update_1.rpf\common\data\ai\scenarios\amb_misc.meta"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants