VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

Forum

Questions, builds, help and the odd argument. The mods and guides are out front.

Seat Leon Cupra |SH...
 
Notifications
Clear all

Seat Leon Cupra |SHIFT 2 SOUND SCRIPT|

3 Posts
2 Users
0 Reactions
2,130 Views
LesinCZ
(@lesincz_10333)
Active Member
Joined: 12 years ago
Posts: 7
Topic starter   [#516]

I have made a pretty engine sound (not big work ,but helps). The sounds are without Turbo sound but i can add it here if u want . Here is the link for complete sound pack http://streetlegalmods.com/downloads/game/sounds/Full-Shift-2-engine-sound-pack
Here is the script for block.java (works on every engine)

if (tab = the_car.getSfxTable(0))//on
{
tab.clear();
tab.addItem(new ResourceRef(EngineSoundPack:0x00000171r), 2000, 500.0, 2500.0, 0.3, 0.4);//200
tab.addItem(new ResourceRef(EngineSoundPack:0x00000172r), 3000, 2000.0, 3700.0, 0.5, 0.6);//3000
tab.addItem(new ResourceRef(EngineSoundPack:0x00000173r), 4000, 3000.0, 4700.0, 0.7, 0.8);//4000
tab.addItem(new ResourceRef(EngineSoundPack:0x00000174r), 5000, 4000.0, 5700.0, 0.9, 1.0);//5000
tab.addItem(new ResourceRef(EngineSoundPack:0x00000175r), 6000, 5000.0, 6700.0, 1.1, 1.2);//6000
tab.addItem(new ResourceRef(EngineSoundPack:0x00000176r), 7000, 6000.0, RPM_limit+600, 1.3, 1.4);//7000
tab.addItem(new ResourceRef(EngineSoundPack:0x00000169r), 8000, RPM_limit-600, 18000.0, 1.5, 1.6);//limmiter
}

		if (tab = the_car.getSfxTable(1))//off
		{
			tab.clear();
			tab.addItem(new ResourceRef(EngineSoundPack:0x0000016Ar), 1000,   500.0, 1250.0, 0.3, 0.4);//idle
			tab.addItem(new ResourceRef(EngineSoundPack:0x0000016Br), 4000,   750.0, 4000.0, 0.8, 0.5);//low
			tab.addItem(new ResourceRef(EngineSoundPack:0x0000016Cr), 6000,  2500.0, 5500.0, 1.0, 0.8);//mid
                            tab.addItem(new ResourceRef(EngineSoundPack:0x0000016Dr), 6500,  4500.0, 8000.0, 1.0, 1.8);//rumble
			tab.addItem(new ResourceRef(EngineSoundPack:0x0000016Fr), 7000,  5000.0, 18000.0, 1.3, 1.2);//high
		}

		if (tab = the_car.getSfxTable(2))
		{
			tab.clear();
			the_car.setSfxExhaustMinVol(0.9);

		}


   
Quote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Won't work in 99% of cases. You forgot to mention (link) which sound pack it is for.



   
ReplyQuote
LesinCZ
(@lesincz_10333)
Active Member
Joined: 12 years ago
Posts: 7
Topic starter  

thanks for the reminder



   
ReplyQuote
Share: