Skip to content

Heli.DisableAudio has inverted semantics and permanently mutes the vehicle radio #410

Backlog

Description

@Mozona

Environment

  • GTA SA 1.0 US, CLEO 5.5.1
  • Sanny Builder 4.2.0 (sa_sbl), opcode 0A1C DISABLE_HELI_AUDIO

Steps

  1. Spawn a Maverick, engine on, rotor at full speed, player inside.
  2. Heli.DisableAudio(heli, false) // stops rotor audio instantly

Expected

  • The call only stops engine sounds; radio keeps playing.

Actual

  1. false stops rotor audio, true restores it — the opposite of the method name.
  2. false also turns off the vehicle radio while the player is inside.
  3. After that, neither Heli.DisableAudio(heli, true) nor Audio.SetRadioChannel(RadioChannel) brings the radio back. Only exiting and re-entering the vehicle restores it.

Activity

  1. x87 commented on Nov 29, 2026

    @x87
    Collaborator

    Yeah, looks like the logic is inverted, not sure if intended or a bug.

        case COMMAND_DISABLE_HELI_AUDIO:
          CRunningScript::CollectParameters(this, 2u);
          p_m_vehicleAudio = &CPool<CVehicle>::GetAt(CPools::ms_pVehiclePool, ScriptParams[0])->m_vehicleAudio;
          if ( ScriptParams[1] ) // TRUE -> ENABLE
            CAEVehicleAudioEntity::EnableHelicoptor(p_m_vehicleAudio);
          else // FALSE -> DISABLE
            CAEVehicleAudioEntity::DisableHelicoptor(p_m_vehicleAudio);
          return 0;
    
    
        void __thiscall CAEVehicleAudioEntity::EnableHelicoptor(CAEVehicleAudioEntity *this)
        {
            this->m_bHelicoptorDisabled = 0;
        }
    
        void __thiscall CAEVehicleAudioEntity::DisableHelicoptor(CAEVehicleAudioEntity *this)
        {
            this->m_bHelicoptorDisabled = 1;
        }

    @CookiePLMonster FYI

  2. added
    discussion
    on Nov 29, 2026
  3. CookiePLMonster commented on Nov 29, 2026

    @CookiePLMonster

    Looks like a mistake to me, as the boolean itself is inverted. I would say it's worth fixing only if it can manifest itself in an unmodded game, else it's breaking compatibility with mods for no benefit.

  4. CookiePLMonster commented on Nov 30, 2026

    @CookiePLMonster

    This mission needs checking then. I'll take note of it so I don't forget.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions