iw5: test guns #4

Merged
Future merged 3 commits from iw5/test-guns into main 2024-05-31 09:59:14 +00:00
Showing only changes of commit a03212a064 - Show all commits

View File

@ -12,15 +12,25 @@
* /Zc:preprocessor is required with the MSVC compiler.
*/
#ifdef IW4
#ifndef IW4MP
#if defined(IW4)
#if !defined(IW4MP)
#define IW4MP
#endif
#ifndef IW4SP
#if !defined(IW4SP)
#define IW4SP
#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 FALSE 0
@ -37,6 +47,7 @@
#define GENERIC_INIT \
init() \
{ \
setDvar( BOUNCES_DVAR, 1 ); \ /* Custom */
thread onPlayerConnect(); \
}
@ -79,7 +90,7 @@
#define PRINT_FUNC_NAME print
#endif
#ifdef _UTILITY_DEBUG
#if defined(_UTILITY_DEBUG)
#define _VERIFY(cond, msg) \
assertEx( cond, msg )