iw5: test guns
All checks were successful
Build / build-linux (push) Successful in 45s

This commit is contained in:
6arelyFuture 2024-05-31 11:42:50 +02:00
parent 6493347cd1
commit a03212a064

View File

@ -12,15 +12,25 @@
* /Zc:preprocessor is required with the MSVC compiler. * /Zc:preprocessor is required with the MSVC compiler.
*/ */
#ifdef IW4 #if defined(IW4)
#ifndef IW4MP #if !defined(IW4MP)
#define IW4MP #define IW4MP
#endif #endif
#ifndef IW4SP #if !defined(IW4SP)
#define IW4SP #define IW4SP
#endif #endif
#endif #endif
#if defined(IW4MP)
#define BOUNCES_DVAR "bg_bounces"
#elif defined(IW4SP) || defined(IW5x)
#define BOUNCES_DVAR "pm_bounces"
#elif defined(IW5)
#define BOUNCES_DVAR "sv_enableBounces"
#else /* Some people from XLabs decided to be creative with the names */
#define BOUNCES_DVAR "pm_bouncing"
#endif
#define TRUE 1 #define TRUE 1
#define FALSE 0 #define FALSE 0
@ -37,6 +47,7 @@
#define GENERIC_INIT \ #define GENERIC_INIT \
init() \ init() \
{ \ { \
setDvar( BOUNCES_DVAR, 1 ); \ /* Custom */
thread onPlayerConnect(); \ thread onPlayerConnect(); \
} }
@ -79,7 +90,7 @@
#define PRINT_FUNC_NAME print #define PRINT_FUNC_NAME print
#endif #endif
#ifdef _UTILITY_DEBUG #if defined(_UTILITY_DEBUG)
#define _VERIFY(cond, msg) \ #define _VERIFY(cond, msg) \
assertEx( cond, msg ) assertEx( cond, msg )