mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 15:19:14 +00:00
fix var crash
This commit is contained in:
parent
1647e20d20
commit
6a5af7d510
17
raw/scripts/bots_var_fix.gsc
Normal file
17
raw/scripts/bots_var_fix.gsc
Normal file
@ -0,0 +1,17 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\_utility;
|
||||
#include maps\mp\gametypes\_hud_util;
|
||||
#include maps\mp\bots\_bot_utility;
|
||||
|
||||
main()
|
||||
{
|
||||
replaceFunc( maps\mp\gametypes\_missions::mayProcessChallenges, ::mayProcessChallenges );
|
||||
}
|
||||
|
||||
mayProcessChallenges()
|
||||
{
|
||||
if ( self is_bot() )
|
||||
return false;
|
||||
|
||||
return ( level.rankedMatch );
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user