ACE3/addons/fire/CfgSounds.hpp
johnb432 f45dff8a09
Fire - Mini-Rewrite (#9757)
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-06-22 15:07:36 -03:00

27 lines
649 B
C++

// weird ass concatenation syntax. PBO Project complains otherwise...
#define CONCAT(a,b) a####b
#define CREATE_SCREAM(no)\
class GVAR(DOUBLES(scream,no)) {\
name = QGVAR(CONCAT(scream,no));\
sound[] = {QPATHTOF(CONCAT(sounds\scream,no).ogg), QUOTE(db+8), 1};\
titles[] = {};\
}
class CfgSounds {
CREATE_SCREAM(1);
CREATE_SCREAM(2);
CREATE_SCREAM(3);
CREATE_SCREAM(4);
CREATE_SCREAM(5);
CREATE_SCREAM(6);
CREATE_SCREAM(7);
CREATE_SCREAM(8);
CREATE_SCREAM(9);
CREATE_SCREAM(10);
CREATE_SCREAM(11);
CREATE_SCREAM(12);
CREATE_SCREAM(13);
CREATE_SCREAM(14);
CREATE_SCREAM(15);
};