I want to play a looping sound using a CSoundPatch, but the sound refuses to play if the distance is larger than roughly 2500 units. How would I increase this range?
This is my code at the moment.
[lua] self.Entity.Horn = CreateSound( self.Entity, Sound( “car/horn.wav” ) )
self.Entity.Horn:SetSoundLevel( 0.27 ) --0.27 = SNDLVL_GUNFIRE
The sound loops and I want to stop it later, so I have to use CSoundPatch. However, when the entity is too far away, the sound doesn’t play. Any ideas?