Skip to content

Instantly share code, notes, and snippets.

@Fusselwurm
Created December 14, 2021 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fusselwurm/2d53d3d439dd09be1d0215896da99a0e to your computer and use it in GitHub Desktop.
Save Fusselwurm/2d53d3d439dd09be1d0215896da99a0e to your computer and use it in GitHub Desktop.
// für alle lösungen: vanilla stummschalten
class CfgWeapons {
class Default;
class CarHorn: Default {
drySound[] = {"",1,1};
};
};
// für say3d
class CfgSounds {
class XXX_CarHorn {
name = "Car Horn";
// filename, volume, pitch, distance (optional)
sound[] = { "a3\sounds_f\weapons\horns\MRAP_02_horn_2.wss", 1, 1, 200 };
// subtitle delay in seconds, subtitle text
titles[] = { 1, "*honk honk*" };
};
};
// für createSoundSource
class CfgVehicles {
class XXX_CarHorn {
sound = "XXX_CarHorn";
side = 4; // NEUTRAL
scope = 1; // protected
};
};
class CfgSFX {
class XXX_CarHorn
{
// sound0[] = { "a3\sounds_f\weapons\horns\MRAP_02_horn_2.wss", db-10, 1.0, 200, 1, 0, 0, 0}; // path to addon sound
// {soundPath, soundVolume, soundPitch, maxDistance, probability, minDelay, midDelay, maxDelay}
sound0[] = { "a3\sounds_f\weapons\horns\MRAP_02_horn_2.wss", db-0, 1.0, 200, 1, 0, 0, 0}; // path to addon sound
sounds[] = {sound0};
empty[] = {"", 0, 0, 0, 0, 0, 0, 0};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment