mirror of
https://github.com/diamante0018/PP-GSC.git
synced 2025-04-20 12:25:42 +00:00
feat: compat with gsc-tool
This commit is contained in:
parent
f4472e815d
commit
5c2f8155ce
@ -5,7 +5,8 @@
|
|||||||
* IW4MP: Multiplayer only
|
* IW4MP: Multiplayer only
|
||||||
* IW4SP: Singleplayer only
|
* IW4SP: Singleplayer only
|
||||||
* IW4: Generic
|
* IW4: Generic
|
||||||
* Usage with a C++20 (or a later standard) compliant preprocessor is required.
|
* TOOL: GSC-Tool mode
|
||||||
|
* Usage with a C++20 (or a later standard) compliant preprocessor may be required.
|
||||||
* /Zc:preprocessor is required with the MSVC compiler.
|
* /Zc:preprocessor is required with the MSVC compiler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -25,11 +26,13 @@
|
|||||||
/* IW4x MP has printConsole Built-in. __VA_OPT__ requires C++20 compliant preprocessor */
|
/* IW4x MP has printConsole Built-in. __VA_OPT__ requires C++20 compliant preprocessor */
|
||||||
/* Do not use the + to concatenate strings, let the GSC VM do it for you */
|
/* Do not use the + to concatenate strings, let the GSC VM do it for you */
|
||||||
/* Other clients will have print avaiable */
|
/* Other clients will have print avaiable */
|
||||||
|
#if !defined(TOOL)
|
||||||
#if defined(IW4MP)
|
#if defined(IW4MP)
|
||||||
#define PRINT(format, ...) printConsole( format __VA_OPT__(,) __VA_ARGS__ )
|
#define PRINT(format, ...) printConsole( format __VA_OPT__(,) __VA_ARGS__ )
|
||||||
#else
|
#else
|
||||||
#define PRINT(format, ...) print( format __VA_OPT__(,) __VA_ARGS__ )
|
#define PRINT(format, ...) print( format __VA_OPT__(,) __VA_ARGS__ )
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Use Cbuf. Should use the + to concatenate strings prior to using this */
|
/* Use Cbuf. Should use the + to concatenate strings prior to using this */
|
||||||
#if defined(IW5) || defined(IW5x) || defined(T4)
|
#if defined(IW5) || defined(IW5x) || defined(T4)
|
||||||
@ -71,7 +74,9 @@
|
|||||||
#define WAIT_END(ent, msg) ent waittillmatch( msg, "end" )
|
#define WAIT_END(ent, msg) ent waittillmatch( msg, "end" )
|
||||||
|
|
||||||
/* defined in common_scripts\utility */
|
/* defined in common_scripts\utility */
|
||||||
|
#if !defined(TOOL)
|
||||||
#define WAIT_ANY_RET(ent, ...) ent waittill_any_return( __VA_ARGS__ )
|
#define WAIT_ANY_RET(ent, ...) ent waittill_any_return( __VA_ARGS__ )
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action )
|
#define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user