mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 16:43:21 +00:00
l4d2_autobotcrown: Check if bot has a shotgun
This commit is contained in:
parent
162748a055
commit
c6bcdde8c1
2 changed files with 3 additions and 1 deletions
Binary file not shown.
|
@ -136,7 +136,9 @@ public Action Timer_BotControlTimer(Handle hdl) {
|
||||||
//Check if bot has a valid shotgun, with ammo (probably can skip: bot mostly will be full).
|
//Check if bot has a valid shotgun, with ammo (probably can skip: bot mostly will be full).
|
||||||
if(GetClientHealth(bot) > 40) {
|
if(GetClientHealth(bot) > 40) {
|
||||||
char wpn[32];
|
char wpn[32];
|
||||||
if(GetClientWeapon(bot, wpn, sizeof(wpn)) && StrEqual(wpn, "weapon_autoshotgun") || StrEqual(wpn, "weapon_shotgun_spas")) {
|
if(GetClientWeapon(bot, wpn, sizeof(wpn)) &&
|
||||||
|
StrEqual(wpn, "weapon_autoshotgun") || StrEqual(wpn, "weapon_shotgun_spas")
|
||||||
|
) {
|
||||||
GetClientAbsOrigin(bot, botPosition);
|
GetClientAbsOrigin(bot, botPosition);
|
||||||
|
|
||||||
for(int i = 0; i < WitchList.Length; i++) {
|
for(int i = 0; i < WitchList.Length; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue