first commit
commit
5fa10eb47e
@ -0,0 +1,15 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 4thebadwolfsky
|
||||||
|
All Rights Reserved
|
||||||
|
Website: derauto.de
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
AddCSLuaFile()
|
||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
function SoundMaster.PlayerMoveIn()
|
||||||
|
LocalPlayer():EmitSound( "soundmaster/localplayer_ac/" .. table.Random({"0x130015D4","0x1A68325D"}) .. ".mp3")
|
||||||
|
end
|
||||||
|
function SoundMaster.Heartbeat()
|
||||||
|
LocalPlayer():EmitSound( "soundmaster/localplayer_ac/0x0D6E1C39.mp3")
|
||||||
|
end
|
@ -0,0 +1,343 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 Jonas Hogeback / UltimateRP
|
||||||
|
All Rights Reserved
|
||||||
|
Website: UltimateRP.net
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
--AC-Container
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
resource.AddFile("sound/soundmaster/ambient_ac/0xFAF134.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/ambient_ac/0xFAF135.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/ambient_ac/0xFAF136.wav")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x0C4E9EBF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x1B33E508.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x1F6744EF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x06DAFC36.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x08D657CA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x11AD297B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x098D81BF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x1114D0AA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x1544F0A7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/camera_ac/0x18809F85.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x00CED401.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x0DF65CA9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x0F481DDD.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x1AF0B69D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x1F56FF6A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x03E4DA2C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x15E86B1D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x18B930BF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x0450C95F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carcrash_ac/0x16387ED3.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/carexplosion_ac/0x0FEDCD9C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/carexplosion_ac/0x1D0B27DF.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x00B2F6BA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x00B6707B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x01B1AF7D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x01C13D68.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x01C6ACF5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x02ECC258.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x03B0EE67.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x09189558.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0A2FD124.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0B35D266.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0B3B27C4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0C253668.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0C2F3057.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0C33C56D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0C3B23C8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0C5AF52C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D075B8C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D13ED57.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D1921FC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D230E1D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D2DCE33.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0D55C45A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0DB1E637.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0DB666FB.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0DBE55BA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0DD6D19B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0E1C2849.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0E6FDE7D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0EBD19F8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0EC309A0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x0EC72038.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1A26BF1E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1AF1A2E8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1AF80920.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1B61EA9A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1B822B29.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1BF66406.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1C9FD0EC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1C9FE55F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1E45B1E0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1E5C624F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/collision_ac/0x1E9BFFE1.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x0A5C9984.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x0D62B5C8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x0F53B289.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x0FB8E45F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x1D58BD31.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x1E26013A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x1E730570.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x1F3BC0B9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x03B889B2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x10F96434.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x019BC825.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x123E16B5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x184F997B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x1540AF70.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/cash_register_ac/0x066777A9.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x0FD726C5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x0FF04137.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x1CAAEBB7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x1EBDAB40.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x089D93B2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x176EA717.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x181D66EA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x1038E2C4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086B8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086B9.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086BA.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086BB.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086BC.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/explosion_ac/0x081086BD.wav")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x00CA97EA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0AABA0E8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0B37A9F9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0B413B72.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0C16D0A2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0C44A41E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0D7E3CB9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0D91BBC2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0D116469.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0D605633.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0DEFB827.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0E7FD3A9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0E60F7B2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0E80F359.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0E786491.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0EFF1288.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0F5EE557.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0FB135B7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0FE5FB3B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1A21FC9A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1BA0D2AA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1D8FAE56.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1D00809C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1D745657.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1DCAE39B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1E941898.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1F7C4E84.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1F751A54.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1F577720.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1FADC6FF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1FC9FEEF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x02B6FC17.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x04E96C50.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x04F682A9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x05CA67D5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x05F84F3F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x006B8824.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x10E0BD2B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x11C3A2EB.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x11E10568.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x11F3FA3A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x13A0FD34.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x14BEEADC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x14DC0C22.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x14FC8069.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x15CC4ECC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x18F84D60.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x19A90AD1.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x19BCC627.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x023D93B4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x025EE67B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x033D89C9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x035D1645.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x042C9EAD.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x042FBD33.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0057EED0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x067C3776.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x094B1DA0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x100C996A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x103A752D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x114D1C55.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x115A0619.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x119BA8D7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x135A82A2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x146B3B83.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x152C8678.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x157FC6E1.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0189DF00.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0224A6B9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0240A96E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0256FE1D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0486E2DA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x0826AC8E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1018C2CC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1857EC2E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x17730A4F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x074729F7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1028679F.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1107976B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x1200589B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/0x06264583.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_1.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_3.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_6.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_10.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_11.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_12.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_13.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_14.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_15.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/BLIP_16.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/frontend_ac/RADIO_STATIC_LOOP.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/handcuffs_ac/0x03B5745A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/handcuffs_ac/0x15EEA224.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x0D6E1C39.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x1A68325D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x06D84612.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x073E8A8C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x0972C598.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x130015D4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/localplayer_ac/0x131731C0.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF124.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF125.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF126.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF127.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF128.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF129.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF130.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF131.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF132.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/player_ac/0xFAF133.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0E6.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0E7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0E8.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0E9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0E0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0EA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0EB.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0EC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0ED.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF0EE.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF101.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF102.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF103.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF104.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF105.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF106.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF107.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF108.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF109.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF10A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF10B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF10C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF10D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF10E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF110.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF111.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF112.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF113.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF114.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF115.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF116.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF117.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF118.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF119.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF120.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF121.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF122.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/step_ac/0xFAF123.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x03552660.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x03ECBDB5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x097531DA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x0A70157C.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x0E34BC18.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x119FC2F5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x129C3159.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x140F470D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x15B2EC01.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1645E267.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1B1BB6D3.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1C9F58ED.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1D1361CC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1D1519DC.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1F6B0AF7.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/vending_machine_ac/0x1F8DFFB8.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0AE528B0.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0B95F40B.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0CD31F62.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0E4D225D.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0E9A13A9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0E29F5C9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0E299616.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0FACE51E.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0FC1D5C5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x01E07D82.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x1C9EFEFF.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x1D8A3156.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x1E7AD9D5.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x1E805676.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x1F9684EA.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x05D20947.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x06B8CE61.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x11A57793.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x11E5A7BB.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x12ED6B95.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x0157C86A.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x16879DE0.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x16879DE1.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x139392D9.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/weather_ac/0x168348FE.mp3")
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
--Food
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
resource.AddFile("sound/soundmaster/food/yumyum.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/food/yumyum2.mp3")
|
||||||
|
|
||||||
|
resource.AddFile("sound/soundmaster/food/rulps1.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/food/rulps2.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/food/rulps3.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/food/rulps4.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/food/rulps5.mp3")
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
--Bought
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
resource.AddFile("sound/soundmaster/bought/cash.mp3")
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
--Essentials
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
resource.AddFile("sound/soundmaster/essentials/tear01.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/essentials/error01.mp3")
|
||||||
|
resource.AddFile("sound/soundmaster/essentials/success.wav")
|
||||||
|
resource.AddFile("sound/soundmaster/essentials/siren.wav")
|
||||||
|
|
||||||
|
MsgN(":::SoundMaster System geladen")
|
@ -0,0 +1,107 @@
|
|||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
soundtable = {}
|
||||||
|
function soundtable.Random(data)
|
||||||
|
math.randomseed(math.random(0,255)*5)
|
||||||
|
return table.Random(data)
|
||||||
|
end
|
||||||
|
/*
|
||||||
|
stepgravel = "0xFAF102","0xFAF103","0xFAF104","0xFAF105","0xFAF106"
|
||||||
|
stepsnow = "0xFAF107","0xFAF108","0xFAF109","0xFAF10A","0xFAF10B"
|
||||||
|
*/
|
||||||
|
//TODO: Unter-Wasser Sound ["rustsurvival/underwater_lp.wav"]
|
||||||
|
function SoundMaster.EntityEmitSound(t)
|
||||||
|
--MsgN(t.SoundName)
|
||||||
|
--MsgN(t.Entity)
|
||||||
|
/*if CLIENT and CleanDeathCam.Active then
|
||||||
|
return
|
||||||
|
end*/
|
||||||
|
if t.SoundName == "plats/elevator_move_loop1.wav" then t.SoundName = "common/null.wav" return true end
|
||||||
|
if t.SoundName == "ambient/water/underwater.wav" then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
--[[if t.SoundName == "vcmod/surface_grind.wav" then
|
||||||
|
return false
|
||||||
|
end--]]
|
||||||
|
if t.SoundName == "npc/scanner/scanner_photo1.wav" then
|
||||||
|
t.SoundName = "soundmaster/camera_ac/"..soundtable.Random({
|
||||||
|
"0x0C4E9EBF","0x1B33E508",
|
||||||
|
"0x1F6744EF","0x06DAFC36",
|
||||||
|
"0x08D657CA","0x11AD297B",
|
||||||
|
"0x098D81BF","0x1114D0AA",
|
||||||
|
})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if string.find(t.SoundName,"physics/") and CLIENT then
|
||||||
|
if string.find(t.SoundName,"physics/wood/wood_box_footstep") then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF118","0xFAF119","0xFAF120","0xFAF121","0xFAF122","0xFAF123"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if string.find(t.SoundName,"player/footsteps/") and CLIENT then
|
||||||
|
if LocalPlayer():WaterLevel() > 1 then return false end --Unter-Wasser schritte deaktivieren
|
||||||
|
local stub = string.sub(t.SoundName,18,-5)
|
||||||
|
stub = string.sub(stub,0,string.len(stub)-1)
|
||||||
|
if stub == "grass" then
|
||||||
|
t.SoundName = "player/newfootsteps/grass"..math.random(1,4)..".wav"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "metal" then
|
||||||
|
t.SoundName = "player/newfootsteps/metal"..math.random(1,5)..".wav"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "sand" then
|
||||||
|
t.SoundName = "player/newfootsteps/sand"..math.random(1,5)..".wav"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "wood" then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF118","0xFAF119","0xFAF120","0xFAF121","0xFAF122","0xFAF123"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "gravel" then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF102","0xFAF103","0xFAF104","0xFAF105","0xFAF106"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "dirt" then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF0E6","0xFAF0E7","0xFAF0E8","0xFAF0E9","0xFAF101"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "stone" or stub == "concrete" or stub == "tile" then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF10C","0xFAF10D","0xFAF10E","0xFAF110","0xFAF111","0xFAF112"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if stub == "slosh" or stub == "wade" then
|
||||||
|
t.SoundName = "soundmaster/step_ac/"..soundtable.Random({"0xFAF113","0xFAF114","0xFAF115","0xFAF116","0xFAF117"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if t.SoundName == "items/flashlight1.wav" then t.SoundName = "rustsurvival/flashlight_toggle.mp3" return true end
|
||||||
|
if IsValid(t.Entity) then
|
||||||
|
if t.Entity:IsVehicle() then
|
||||||
|
local replacements = {
|
||||||
|
["physics/metal/*"] = {
|
||||||
|
"0x00CED401","0x0DF65CA9",
|
||||||
|
"0x0F481DDD","0x1AF0B69D",
|
||||||
|
"0x1F56FF6A","0x03E4DA2C",
|
||||||
|
"0x15E86B1D","0x18B930BF",
|
||||||
|
"0x0450C95F","0x16387ED3",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for i,k in pairs(replacements) do
|
||||||
|
if string.find(t.SoundName,i) then
|
||||||
|
t.SoundName = "soundmaster/carcrash_ac/"..table.Random(k)..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if t.Entity == Entity(0) and string.find(t.SoundName,"explode") then
|
||||||
|
t.SoundName = "rustsurvival/ambient/a_explosion.mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
if t.Entity == Entity(0) and string.find(t.SoundName,"ambient") then t.SoundName = "common/null.wav" return true end
|
||||||
|
if t.Entity:IsVehicle() and string.find(t.SoundName,"explode") then
|
||||||
|
t.SoundName = "soundmaster/carexplosion_ac/"..soundtable.Random({"0x1D0B27DF","0x0FEDCD9C"})..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
hook.Add("EntityEmitSound","SoundMaster.EntityEmitSound",SoundMaster.EntityEmitSound)
|
@ -0,0 +1,27 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 Jonas Hogeback / UltimateRP
|
||||||
|
All Rights Reserved
|
||||||
|
Website: UltimateRP.net
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
|
||||||
|
-- SoundMaster.BoughtSound(Player(), Typ String, Mode String)
|
||||||
|
-- Example:
|
||||||
|
-- SoundMaster.BoughtSound(ply,"ca_ching", "local")
|
||||||
|
function SoundMaster.BoughtSound(activator,typ,mode)
|
||||||
|
-- Sound Type
|
||||||
|
if (typ == "ca_ching") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sound = "soundmaster/bought/cash.mp3"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Local or Global
|
||||||
|
if (mode == "global") then
|
||||||
|
activator:EmitSound(sound, 100, pitch)
|
||||||
|
elseif (mode == "local") then
|
||||||
|
activator:SendLua("LocalPlayer():EmitSound('"..sound.."', 100, "..pitch..")");
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,109 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 Jonas Hogeback / UltimateRP
|
||||||
|
All Rights Reserved
|
||||||
|
Website: UltimateRP.net
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
|
||||||
|
-- SoundMaster.TearSound(Player(), Typ String, Mode String)
|
||||||
|
-- Example:
|
||||||
|
-- SoundMaster.TearSound(ply,"tear01", "local")
|
||||||
|
|
||||||
|
function SoundMaster.TearSound(activator,typ,mode)
|
||||||
|
-- Sound Type
|
||||||
|
if (typ == "random") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sounds = {"soundmaster/essentials/tear01.mp3"}
|
||||||
|
sound = sounds[math.random(1, #sounds)]
|
||||||
|
end
|
||||||
|
|
||||||
|
if (typ == "tear01") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sound = "soundmaster/essentials/tear01.mp3"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Local or Global
|
||||||
|
if (mode == "global") then
|
||||||
|
activator:EmitSound(sound, 100, pitch)
|
||||||
|
elseif (mode == "local") then
|
||||||
|
activator:SendLua("LocalPlayer():EmitSound('"..sound.."', 100, "..pitch..")");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- SoundMaster.SuccessSound(Player(), Typ String, Mode String)
|
||||||
|
-- Example:
|
||||||
|
-- SoundMaster.SuccessSound(ply,"success", "local")
|
||||||
|
|
||||||
|
function SoundMaster.SuccessSound(activator,typ,mode)
|
||||||
|
-- Sound Type
|
||||||
|
if (typ == "random") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sounds = {"soundmaster/essentials/success.wav"}
|
||||||
|
sound = sounds[math.random(1, #sounds)]
|
||||||
|
end
|
||||||
|
|
||||||
|
if (typ == "success") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sound = "soundmaster/essentials/success.wav"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Local or Global
|
||||||
|
if (mode == "global") then
|
||||||
|
activator:EmitSound(sound, 100, pitch)
|
||||||
|
elseif (mode == "local") then
|
||||||
|
activator:SendLua("LocalPlayer():EmitSound('"..sound.."', 100, "..pitch..")");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- SoundMaster.ErrorSound(Player(), Typ String, Mode String)
|
||||||
|
-- Example:
|
||||||
|
-- SoundMaster.ErrorSound(ply,"error01", "local")
|
||||||
|
|
||||||
|
function SoundMaster.ErrorSound(activator,typ,mode)
|
||||||
|
-- Sound Type
|
||||||
|
if (typ == "random") then
|
||||||
|
pitch = math.random(70, 90)
|
||||||
|
sounds = {"soundmaster/essentials/error01.mp3"}
|
||||||
|
sound = sounds[math.random(1, #sounds)]
|
||||||
|
end
|
||||||
|
|
||||||
|
if (typ == "error01") then
|
||||||
|
pitch = math.random(70, 90)
|
||||||
|
sound = "soundmaster/essentials/error01.mp3"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Local or Global
|
||||||
|
if (mode == "global") then
|
||||||
|
activator:EmitSound(sound, 100, pitch)
|
||||||
|
elseif (mode == "local") then
|
||||||
|
activator:SendLua("LocalPlayer():EmitSound('"..sound.."', 100, "..pitch..")");
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- SoundMaster.SirenSound(Player(), Typ String, Mode String)
|
||||||
|
-- Example:
|
||||||
|
-- SoundMaster.SirenSound(ply,"siren", "local")
|
||||||
|
|
||||||
|
function SoundMaster.SirenSound(activator,typ,mode)
|
||||||
|
-- Sound Type
|
||||||
|
if (typ == "random") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sounds = {"soundmaster/essentials/siren.wav"}
|
||||||
|
sound = sounds[math.random(1, #sounds)]
|
||||||
|
end
|
||||||
|
|
||||||
|
if (typ == "siren") then
|
||||||
|
pitch = math.random(70, 130)
|
||||||
|
sound = "soundmaster/essentials/siren.wav"
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Local or Global
|
||||||
|
if (mode == "global") then
|
||||||
|
activator:EmitSound(sound, 100, pitch)
|
||||||
|
elseif (mode == "local") then
|
||||||
|
activator:SendLua("LocalPlayer():EmitSound('"..sound.."', 100, "..pitch..")");
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,34 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 Jonas Hogeback / UltimateRP
|
||||||
|
All Rights Reserved
|
||||||
|
Website: UltimateRP.net
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
|
||||||
|
function SoundMaster.EatSound(activator,rulps)
|
||||||
|
local sounds =
|
||||||
|
{
|
||||||
|
{"soundmaster/food/yumyum.mp3", 2.3},
|
||||||
|
{"soundmaster/food/yumyum2.mp3", 3}
|
||||||
|
}
|
||||||
|
|
||||||
|
local rand = math.random(1, #sounds)
|
||||||
|
activator:EmitSound(sounds[rand][1], 100, math.random(70, 130))
|
||||||
|
|
||||||
|
if rulps then
|
||||||
|
timer.Simple(sounds[rand][2],function()
|
||||||
|
local sounds = {
|
||||||
|
"soundmaster/food/rulps1.mp3",
|
||||||
|
"soundmaster/food/rulps2.mp3",
|
||||||
|
"soundmaster/food/rulps3.mp3",
|
||||||
|
"soundmaster/food/rulps4.mp3",
|
||||||
|
"soundmaster/food/rulps5.mp3"
|
||||||
|
}
|
||||||
|
local rand = math.random(1, #sounds)
|
||||||
|
activator:EmitSound(sounds[rand], 100, math.random(50, 130))
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,29 @@
|
|||||||
|
SoundMaster = SoundMaster or {}
|
||||||
|
function SoundMaster.EntityEmitSound(t)
|
||||||
|
if string.find(t.SoundName,"vehicles") then return end
|
||||||
|
--MsgN(t.SoundName)
|
||||||
|
--MsgN(t.Entity)
|
||||||
|
if IsValid(t.Entity) then
|
||||||
|
if t.SoundName == "plats/elevator_move_loop1.wav" then t.SoundName == "common/null.wav" return true end
|
||||||
|
if t.Entity == Entity(0) and string.find(t.SoundName,"ambient") then t.SoundName = "null.wav" return true end
|
||||||
|
if t.Entity:IsPlayer() and t.SoundName == "items/flashlight1.wav" then t.SoundName = "rustsurvival/flashlight_toggle.mp3" return true end
|
||||||
|
if t.Entity:IsVehicle() then
|
||||||
|
local replacements = {
|
||||||
|
["physics/metal/*"] = {
|
||||||
|
"0x00CED401","0x0DF65CA9",
|
||||||
|
"0x0F481DDD","0x1AF0B69D",
|
||||||
|
"0x1F56FF6A","0x03E4DA2C",
|
||||||
|
"0x15E86B1D","0x18B930BF",
|
||||||
|
"0x0450C95F","0x16387ED3",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for i,k in pairs(replacements) do
|
||||||
|
if string.find(t.SoundName,i) then
|
||||||
|
t.SoundName = "soundmaster/carcrash_ac/"..table.Random(k)..".mp3"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
hook.Add("EntityEmitSound","SoundMaster.EntityEmitSound",SoundMaster.EntityEmitSound)
|
@ -0,0 +1,26 @@
|
|||||||
|
/*---------------------------------------------------------—
|
||||||
|
CleanRP SoundMaster
|
||||||
|
|
||||||
|
Copyright © 2017 4thebadwolfsky
|
||||||
|
All Rights Reserved
|
||||||
|
Website: derauto.de
|
||||||
|
—-----------------------------------------------------------*/
|
||||||
|
AddCSLuaFile()
|
||||||
|
WeatherSounds = {}
|
||||||
|
WeatherSounds["thunder"] = {}
|
||||||
|
WeatherSounds["thunder"]["blitz"] = {"0x06B8CE61","0x11E5A7BB","0x139392D9"}
|
||||||
|
WeatherSounds["thunder"]["donner"] = {"0x168348FE","0x0CD31F62","0x05D20947","0x0157C86A"}
|
||||||
|
|
||||||
|
function SoundMaster.Thunderfar(p,a,b,v)
|
||||||
|
--sound.Play( "simpleweather/thunderfar" .. math.random( 1, 2 ) .. ".mp3",p,a,b,v)
|
||||||
|
sound.Play( "soundmaster/weather_ac/" .. table.Random(WeatherSounds["thunder"]["donner"]) .. ".mp3",p,a,b,v)
|
||||||
|
end
|
||||||
|
function SoundMaster.WindSound()
|
||||||
|
LocalPlayer():EmitSound("rustsurvival/ambient/a_windgust_light"..math.random(1,4)..".mp3")
|
||||||
|
end
|
||||||
|
function SoundMaster.ThunderLighning(p,a,b,v)
|
||||||
|
--sound.Play( "simpleweather/thunder" .. math.random( 1, 3 ) .. ".mp3",p,a,b,v)
|
||||||
|
--sound.Play( "simpleweather/lightning" .. math.random( 1, 4 ) .. ".mp3",p,a,b,v)
|
||||||
|
SoundMaster.Thunderfar(p,a,b,v)
|
||||||
|
sound.Play( "soundmaster/weather_ac/" .. table.Random(WeatherSounds["thunder"]["blitz"]) .. ".mp3",p,a,b,v)
|
||||||
|
end
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue