Quantcast

Jump to content

» «
Photo

How to mute car engine audio?

34 replies to this topic
Junior_Djjr
  • Junior_Djjr

    BMS - Brazilian Modding Studio

  • Members
  • Joined: 16 Dec 2011
  • Brazil

#31

Posted 10 December 2013 - 11:33 AM

So did you already find how to modify speed of vehicle sounds?

speed of sound? i think you got it wrong, i said "make to change the speed and sound of engine" :p
 

And about objects - you can attach them to car in way like extras are attached - create a copy of needed model as atomic and add it to vehicle clump. For me it is the best solution here,

interesting, tell more about this

i'm creating the "BMS Sound Shop" all with objects attachs, and some objects "moving-attaching"


Wesser
  • Wesser

    The complexity simplifier, the efficiency optimizer.

  • Feroci
  • Joined: 19 Aug 2006
  • Unknown
  • Contribution Award [Mods]

#32

Posted 10 December 2013 - 12:26 PM Edited by Wesser, 10 December 2013 - 01:30 PM.

I believe I found out what makes the vehicle's sound not being syncronized with the gear change. The issue lies onto those functions (possibly 0x006D0460, 0x006D0530 and 0x006D05E0) of CVehicle which increase and/or decrease m_iGear (CVehicle + 0x04B4). They do not reckon with the fourth (unordered) state of ?m_cEngineState (CVechileData + 0xA9). The first gear should be engaged only when the third state is set (on the basis of the engine sound).

Regarding the clump attaching, you can follow this script.

//Edit: Seemingly, RPM are at CVehicleData + 0x0148.

Junior_Djjr
  • Junior_Djjr

    BMS - Brazilian Modding Studio

  • Members
  • Joined: 16 Dec 2011
  • Brazil

#33

Posted 10 December 2013 - 02:19 PM Edited by Junior_Djjr, 10 December 2013 - 02:42 PM.

RPM = CVehicleData + 0x0148

PERFECT! EXACTLY! :B

i will start the tests...

 

about attaching... how so? how "create a copy of model as atomic"? and then, how to use this "atomic"?

 

edit: omg........... when i mute the car audio the rpm don't change...........

this "rpm" is a value from engine audio?... i mute the audio then don't returns value


Junior_Djjr
  • Junior_Djjr

    BMS - Brazilian Modding Studio

  • Members
  • Joined: 16 Dec 2011
  • Brazil

#34

Posted 10 December 2013 - 03:21 PM

ok with tests i see

thats is it, the "rpm" is from the state of sound engine, works in total time of audio, for example, i'm put the sound of bmx in elegy and then the elegy starts to change the gear more fast (when you can see in the suspension and sound) ..and the "rpm" is 0-5000, where the original sound of elegy is from 0-17000

 

really, now i'm need to get the total time of audio and search a way to make the car no audio and with "rpm", where the "rpm" is from state of audio (wtf? how? lol)

 

NEW ENGINE AUDIO SYSTEM CANCELED...

this is a sh*t, if any other people can try, tips: use the .wav audio to don't bug the loop of sounds, and use audio with separates rpms (i'm using the audio converted from forza) ...then only check the rpm and play/stops the audiostreams

 

anyway, thanks very much, i will use the "rpm" to create a turbo audio (no problems here :p )

 

 

...now, tell more about this "atomics" and "clump attaching"


DK22Pac
  • DK22Pac

  • Feroci
  • Joined: 12 Apr 2009
  • None
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]

#35

Posted 10 December 2013 - 05:41 PM

@Wesser
0x6D0460 void cTransmission::InitGearRatios(void)
0x6D0530 void cTransmission::CalculateGearForSimpleCar(float velocity, unsigned __int8 *pCurrrentGear) // NPC
0x6D05E0 float cTransmission::CalculateDriveAcceleration(float *pGasPedal, unsigned __int8 *pCurrentGear, float *pGearChangeCount, float *pSpeed, float *unk1, float *unk2, bool onGround, char handlingType) // player
field_148 must be WORD, right?
00000000 cVehicleAudio   struc ; (sizeof=0x24C)
00000000 .               CDummyAudio ?
0000007C field_7C        dw ?
0000007E                 db ? ; undefined
0000007F                 db ? ; undefined
00000080 m_properties    VehicleAudioProperties ?
000000A4 m_bEnabled      db ?
000000A5 m_bPlayerDriver db ?
000000A6 m_bPlayerPassenger db ?
000000A7 m_bVehicleRadioPaused db ?
000000A8 m_bSoundsStopped db ?
000000A9 m_nEngineState  db ?
000000AA field_AA        db ?
000000AB                 db ? ; undefined
000000AC field_AC        dd ?
000000B0 UnkModelFlag    db ?                    ; 1
000000B1                 db ? ; undefined
000000B2 m_wRainDropCounter dw ?                 ; if () > 3 () = 0
000000B4 field_B4        dw ?
000000B6                 db ? ; undefined
000000B7                 db ? ; undefined
000000B8 field_B8        dd ?
000000BC field_BC        db ?
000000BD m_bDisableHeliEngineSounds db ?
000000BE field_BE        db ?
000000BF m_bSirenOrAlarmPlaying db ?
000000C0 m_bHornPlaying  db ?
000000C1                 db ? ; undefined
000000C2                 db ? ; undefined
000000C3                 db ? ; undefined
000000C4 m_fSirenVolume  dd ?                    ; -100.0
000000C8 m_bModelWithSiren db ?
000000C9                 db ? ; undefined
000000CA                 db ? ; undefined
000000CB                 db ? ; undefined
000000CC m_dwBoatHitWaveLastPlayedTime dd ?
000000D0 field_D0        dd ?
000000D4 field_D4        dd ?
000000D8 m_fGeneralVehicleSoundVolume dd ?
000000DC m_wEngineDecelerateSoundBankId dw ?
000000DE m_wEngineAccelerateSoundBankId dw ?
000000E0 m_nEngineBankSlotId dw ?
000000E2 field_E2        dw ?
000000E4 m_aVehicleSounds CVehicleSound 12 dup(?)
00000144 field_144       dd ?
00000148 field_148       dw ?
0000014A field_14A       dw ?
0000014C field_14C       dw ?
0000014E field_14E       dw ?
00000150 field_150       dd ?
00000154 field_154       dw ?
00000156 field_156       dw ?
00000158 field_158       dd ?                    ; offset
0000015C m_wRoadNoiseSoundType dw ?
0000015E _pad0           db 2 dup(?)
00000160 m_pRoadNoiseSound dd ?                  ; offset
00000164 m_wFlatWheelSoundType dw ?
00000166 _pad1           db 2 dup(?)
00000168 m_pFlatWheelSound dd ?                  ; offset
0000016C field_16C       dw ?
0000016E                 db ? ; undefined
0000016F                 db ? ; undefined
00000170 field_170       dd ?                    ; offset
00000174                 db ? ; undefined
00000175                 db ? ; undefined
00000176                 db ? ; undefined
00000177                 db ? ; undefined
00000178 m_pHornTonSound dd ?                    ; offset
0000017C m_pSirenSound   dd ?                    ; offset
00000180 m_pPoliceSirenSound dd ?                ; offset
00000184 m_skiddingSoundMgr cVehicleSkiddingSoundMgr ?
0000022C field_22C       dd ?                    ; -1.0
00000230 field_230       dd ?                    ; -100.0
00000234 field_234       dd ?                    ; -1.0
00000238 field_238       dd ?
0000023C field_23C       dd ?                    ; 1.0
00000240 field_240       dd ?
00000244 m_bNitroSoundPresent db ?
00000245 field_245       db 3 dup(?)
00000248 field_248       dd ?                    ; -1.0
0000024C cVehicleAudio   ends




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users