iw5: remove gsc-tool hacks #3

Merged
Future merged 5 commits from iw5/more-cursed-macros into main 2024-04-08 12:19:51 +00:00
2 changed files with 2 additions and 13 deletions

View File

@ -14,19 +14,10 @@ GENERIC_INIT;
_ON_PLAYER_CNCT_BEGIN
#if defined(TOOL)
waittillframeend;
#endif
BOT_CHK( player );
#if defined(TOOL)
player notifyOnPlayerCommand( "save_pos", "+reload" );
player notifyOnPlayerCommand( "load_saved_pos", "+activate" );
#else
PLAYER_NOTIFY_CMD( player, "save_pos", "+reload" );
PLAYER_NOTIFY_CMD( player, "load_saved_pos", "+activate" );
#endif
player thread jumper();
player thread displaySpeed();

View File

@ -135,14 +135,12 @@
#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
#define PLAYER_NOTIFY_CMD(ent, str, action) ent notifyOnPlayerCommand( str, action )
/* Tweak as necessary. Can be return, continue or break */
#define CHK_ACTION continue
#if (defined(IW4MP) || defined(IW5x) || defined(IW5)) && !defined(TOOL)
#if (defined(IW4MP) || defined(IW5x) || defined(IW5))
#define BOT_CHK(ent) \
if ( ent isTestClient() ) \
{ \