Author | Message |
GramzoV
Posts: 4
Location: Ukraine Occupation: Age: V$: |
#1 2015-12-27 00:35 |
Hello. My English is not very good, I will be brief. I need some kind of help in scripting.
1. What "dynodata."'s are there? I mean like: dynodata.P_turbo_waste, dynodata.mixture_ratio, dynodata.maxHP. What else do you know? 2.Is there a way to change "gear_up" sound from engineBlock.java like ignition or nos in a code below? if (tab = the_car.getSfxTable(2)) { tab.clear(); the_car.setSfxExhaustMinVol(0.9); the_car.setNitroSFX( new ResourceRef(Shift2_Sounds:0x000000ACr), 2000.0); } } SFX_ignition = Shift2_Sounds:0x00000132r; sfx_starter_rpm = 500.0; SFX_trans_fwd = Shift2_Sounds:0x000000EBr; rpm_trans_fwd = 2000.0; Part car = getCarRef(); if( car instanceof Chassis ) { ((Chassis)car).SFX_trans_fwd = SFX_trans_fwd; ((Chassis)car).rpm_trans_fwd = rpm_trans_fwd; ((Chassis)car).SFX_trans_rev = SFX_trans_rev; ((Chassis)car).rpm_trans_rev = rpm_trans_rev; ((Chassis)car).SFX_ignition = SFX_ignition; ((Chassis)car).sfx_starter_rpm = sfx_starter_rpm; } Thanks in advance ) |
|
RedCarDriver
Posts: 1211
Location: United States Arizona Occupation: it's complicated... more complicated than my relationships Age: 30 V$: 86310 |
#2 2015-12-27 01:22 |
Download the complete Java sources and search for Dynodata.java. You should be able to see what it uses.
Also, you're close, but not quite. In the engine block source code, it should be: the_car.SFX_trans_fwd = [REPLACE WITH YOUR SOUND EFFECT TYPEID]; the_car.rpm_trans_fwd = [REPLACE WITH AN RPM NUMBER FROM 1 to 10000]; the_car.SFX_trans_rev = [REPLACE WITH YOUR SOUND EFFECT TYPEID]; the_car.rpm_trans_rev = [REPLACE WITH AN RPM NUMBER FROM 1 to 10000]; the_car.SFX_ignition = [REPLACE WITH YOUR SOUND EFFECT TYPEID]; the_car.sfx_starter_rpm = [REPLACE WITH AN RPM NUMBER FROM 1 to 10000]; |
|
|
|
GramzoV
Posts: 4
Location: Ukraine Occupation: Age: V$: |
#3 2015-12-27 01:43 |
Thanks for reply )
Also, you're close, but not quite. In the engine block source code, it should be:Maybe you're right), but in my case it worked, but I only used ignition the_car.setSfxExhaustMinVol(0.1); } } SFX_ignition = Forza_sound_pack:0x00000042r; sfx_starter_rpm = 50.0; Part car = getCarRef(); if( car instanceof Chassis ) { ((Chassis)car).SFX_ignition = SFX_ignition; ((Chassis)car).sfx_starter_rpm = sfx_starter_rpm; } What do you think about some kind of setsfx thing for gear_up? Is it real to add some thing like that to the game? ps Download sources, is now digging. Thanks for the tip) This post was edited by GramzoV (2015-12-27 11:33, ago) |
|
RedCarDriver
Posts: 1211
Location: United States Arizona Occupation: it's complicated... more complicated than my relationships Age: 30 V$: 86310 |
#4 2015-12-27 05:06 |
Cool, glad you got it working!
I don't think there's a way to change the shifting sound, sadly. If I could, I'd make a sequential gearbox. (That, and the shift speed can't be changed either.) |
|
|