From ec3f0cdb1ac0587465c8a31935bce943fd3b5331 Mon Sep 17 00:00:00 2001 From: Future Date: Wed, 20 Mar 2024 12:42:06 +0100 Subject: [PATCH] maint: update for gsc-tool --- README.md | 5 +++-- _utility.gsh | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 16a3853..0c2a7c9 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,6 @@ ## What is this? -This is a collection of useful preprocessor directives that can be used by gsc-tool, Plutonium clients and XLabs clients. -It is also possible to use gsc-tool to expand these macros and produce a gsc file that is readable by older GSC compilers that do not have a preprocessor. \ No newline at end of file +This is a collection of useful preprocessor directives that can be used by gsc-tool, Plutonium clients and AlterWare clients. + +It is also possible to use gsc-tool to expand these macros and produce a gsc file that is readable by older compilers that do not have a preprocessor. diff --git a/_utility.gsh b/_utility.gsh index fdc5bb2..8985a4a 100644 --- a/_utility.gsh +++ b/_utility.gsh @@ -100,12 +100,14 @@ #define WAIT_ANY_RET(ent, ...) ent waittill_any_return( __VA_ARGS__ ) #endif +#if !defined(TOOL) #define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action ) +#endif /* Tweak as necessary. Can be return, continue or break */ #define CHK_ACTION continue -#if defined(IW4MP) || defined(IW5x) || defined(IW5) +#if (defined(IW4MP) || defined(IW5x) || defined(IW5)) && !defined(TOOL) #define BOT_CHK(ent) \ if ( ent isTestClient() ) \ { \