mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
Fixed possible scr_errors
This commit is contained in:
parent
52196f6b8d
commit
7a9045741a
@ -62,7 +62,6 @@ getRemoteVersion()
|
|||||||
{
|
{
|
||||||
request = httpGet( "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/version.txt" );
|
request = httpGet( "https://raw.githubusercontent.com/ineedbots/iw4x_waypoints/master/version.txt" );
|
||||||
request waittill( "done", success, data );
|
request waittill( "done", success, data );
|
||||||
request destroy();
|
|
||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
return undefined;
|
return undefined;
|
||||||
@ -103,7 +102,6 @@ getLinesFromUrl(url)
|
|||||||
|
|
||||||
request = httpGet( url );
|
request = httpGet( url );
|
||||||
request waittill( "done", success, data );
|
request waittill( "done", success, data );
|
||||||
request destroy();
|
|
||||||
|
|
||||||
if (!success)
|
if (!success)
|
||||||
return result;
|
return result;
|
||||||
|
@ -591,6 +591,9 @@ reload_thread()
|
|||||||
|
|
||||||
cur = self getCurrentWEapon();
|
cur = self getCurrentWEapon();
|
||||||
|
|
||||||
|
if (cur == "" || cur == "none")
|
||||||
|
return;
|
||||||
|
|
||||||
if(IsWeaponClipOnly(cur) || !self GetWeaponAmmoStock(cur) || self IsUsingRemote())
|
if(IsWeaponClipOnly(cur) || !self GetWeaponAmmoStock(cur) || self IsUsingRemote())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -1209,7 +1212,7 @@ aim()
|
|||||||
if (canADS)
|
if (canADS)
|
||||||
self thread pressAds();
|
self thread pressAds();
|
||||||
|
|
||||||
if(curweap == "at4_mp" && entIsVehicle(self.bot.target.entity) && self.stingerStage != 2)
|
if(curweap == "at4_mp" && entIsVehicle(self.bot.target.entity) && (!IsDefined( self.stingerStage ) || self.stingerStage != 2))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (trace_time > reaction_time)
|
if (trace_time > reaction_time)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user