maint: update for gsc-tool

This commit is contained in:
6arelyFuture 2024-03-20 12:42:06 +01:00
parent 4e32a6b95f
commit ec3f0cdb1a
Signed by: Future
GPG Key ID: FA77F074E98D98A5
2 changed files with 6 additions and 3 deletions

View File

@ -2,5 +2,6 @@
## What is this? ## What is this?
This is a collection of useful preprocessor directives that can be used by gsc-tool, Plutonium clients and XLabs clients. 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 GSC compilers that do not have a preprocessor.
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.

View File

@ -100,12 +100,14 @@
#define WAIT_ANY_RET(ent, ...) ent waittill_any_return( __VA_ARGS__ ) #define WAIT_ANY_RET(ent, ...) ent waittill_any_return( __VA_ARGS__ )
#endif #endif
#if !defined(TOOL)
#define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action ) #define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action )
#endif
/* Tweak as necessary. Can be return, continue or break */ /* Tweak as necessary. Can be return, continue or break */
#define CHK_ACTION continue #define CHK_ACTION continue
#if defined(IW4MP) || defined(IW5x) || defined(IW5) #if (defined(IW4MP) || defined(IW5x) || defined(IW5)) && !defined(TOOL)
#define BOT_CHK(ent) \ #define BOT_CHK(ent) \
if ( ent isTestClient() ) \ if ( ent isTestClient() ) \
{ \ { \