This commit is contained in:
Your Name
2020-08-18 15:03:40 -06:00
parent 0106fab764
commit a130a9ecb0
4 changed files with 39 additions and 31 deletions

View File

@ -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
*/