From a03212a064f6272a01bc0208e1da098637db1e6d Mon Sep 17 00:00:00 2001 From: 6arelyFuture Date: Fri, 31 May 2024 11:42:50 +0200 Subject: [PATCH] iw5: test guns --- iw5/scripts/mp/_utility.gsh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/iw5/scripts/mp/_utility.gsh b/iw5/scripts/mp/_utility.gsh index a7e5372..78c1bdb 100644 --- a/iw5/scripts/mp/_utility.gsh +++ b/iw5/scripts/mp/_utility.gsh @@ -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 )