mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
ll
This commit is contained in:
@ -13,11 +13,6 @@ is_bot()
|
||||
return ((isDefined(self.pers["isBot"]) && self.pers["isBot"]) || (isDefined(self.pers["isBotWarfare"]) && self.pers["isBotWarfare"]) || isSubStr( self.guid, "bot" ));
|
||||
}
|
||||
|
||||
entIsVehicle(ent)
|
||||
{
|
||||
return (ent.classname == "script_vehicle" || ent.model == "vehicle_uav_static_mp" || ent.model == "vehicle_ac130_coop");
|
||||
}
|
||||
|
||||
/*
|
||||
Returns how much the bot is ads'ing all the way.
|
||||
*/
|
||||
@ -167,19 +162,6 @@ GetThreat()
|
||||
return self.bot.target.entity;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if the given weapon is full auto.
|
||||
*/
|
||||
WeaponIsFullAuto(weap)
|
||||
{
|
||||
weaptoks = strtok(weap, "_");
|
||||
|
||||
assert(isDefined(weaptoks[0]));
|
||||
assert(isString(weaptoks[0]));
|
||||
|
||||
return !isDefined(level.bots_nonfullautoguns[weaptoks[0]]);
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if the bot has a script enemy.
|
||||
*/
|
||||
@ -201,6 +183,34 @@ IsBotKnifing()
|
||||
return self.bot.knifing;
|
||||
}
|
||||
|
||||
getBotVelocity()
|
||||
{
|
||||
return self.bot.velocity;
|
||||
}
|
||||
|
||||
isWeaponPrimary(weap)
|
||||
{
|
||||
return (maps\mp\gametypes\_weapons::isPrimaryWeapon(weap) || maps\mp\gametypes\_weapons::isAltModeWeapon(weap));
|
||||
}
|
||||
|
||||
entIsVehicle(ent)
|
||||
{
|
||||
return (ent.classname == "script_vehicle" || ent.model == "vehicle_uav_static_mp" || ent.model == "vehicle_ac130_coop");
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if the given weapon is full auto.
|
||||
*/
|
||||
WeaponIsFullAuto(weap)
|
||||
{
|
||||
weaptoks = strtok(weap, "_");
|
||||
|
||||
assert(isDefined(weaptoks[0]));
|
||||
assert(isString(weaptoks[0]));
|
||||
|
||||
return !isDefined(level.bots_nonfullautoguns[weaptoks[0]]);
|
||||
}
|
||||
|
||||
IsDefusing()
|
||||
{
|
||||
return (isDefined(self.isDefusing) && self.isDefusing);
|
||||
@ -234,11 +244,6 @@ IsStunned()
|
||||
return (isdefined(self.concussionEndTime) && self.concussionEndTime > gettime());
|
||||
}
|
||||
|
||||
getBotVelocity()
|
||||
{
|
||||
return self.bot.velocity;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns if we are beingArtilleryShellshocked
|
||||
*/
|
||||
|
Reference in New Issue
Block a user