Skip to content

Commit

Permalink
Aiming: Disable MP support by default
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Dec 18, 2023
1 parent 3cb9b25 commit 7bb5847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mods/VR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ class VR : public Mod {
const ModCombo::Ptr m_aim_method{ ModCombo::create(generate_name("AimMethod"), s_aim_method_names, AimMethod::GAME) };
const ModCombo::Ptr m_movement_orientation{ ModCombo::create(generate_name("MovementOrientation"), s_aim_method_names, AimMethod::GAME) };
AimMethod m_previous_aim_method{ AimMethod::GAME };
const ModToggle::Ptr m_aim_multiplayer_support{ ModToggle::create(generate_name("AimMPSupport"), true) };
const ModToggle::Ptr m_aim_multiplayer_support{ ModToggle::create(generate_name("AimMPSupport"), false) };
const ModToggle::Ptr m_aim_interp{ ModToggle::create(generate_name("AimInterp"), true, true) };
const ModSlider::Ptr m_aim_speed{ ModSlider::create(generate_name("AimSpeed"), 0.01f, 25.0f, 15.0f) };
const ModToggle::Ptr m_dpad_shifting{ ModToggle::create(generate_name("DPadShifting"), true) };
Expand Down
3 changes: 1 addition & 2 deletions src/mods/vr/IXRTrackingSystemHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,7 @@ void IXRTrackingSystemHook::update_view_rotation(sdk::UObject* reference_obj, Ro
// Double check that the player controller passed through here is the local player controller
static bool had_detection_error = false;
if (!had_detection_error && vr->is_aim_multiplayer_support_enabled()) try {
const auto engine = sdk::UEngine::get();
if (engine != nullptr && reference_obj != nullptr && sdk::FUObjectArray::get() != nullptr) {
if (reference_obj != nullptr && sdk::FUObjectArray::get() != nullptr) {
const auto reference_obj_c = reference_obj->get_class();

static const auto player_controller_class = sdk::APlayerController::static_class();
Expand Down

0 comments on commit 7bb5847

Please sign in to comment.