Jump to content

Shooting at bots

Pending 1.5.3

Perfectangel01

Posted

Since the update Ive noticed the bradleys are shooting at bots randomly

shaitobu

Posted

On 3/20/2025 at 8:33 PM, Perfectangel01 said:

Since the update Ive noticed the bradleys are shooting at bots randomly

Do you mean default rust NPCs or are they from any Plugin?

Perfectangel01

Posted

18 hours ago, shaitobu said:

Do you mean default rust NPCs or are they from any Plugin?

Botrespawn bots

shaitobu

Posted

On 3/20/2025 at 8:33 PM, Perfectangel01 said:

Since the update Ive noticed the bradleys are shooting at bots randomly

randomly means sometimes or always? coincidence?

shaitobu

Posted

On 3/25/2025 at 4:21 PM, Perfectangel01 said:

Botrespawn bots

bump

KingSizeKevin

Posted

I fixed the issue with this addition of code:

 

        private object CanBradleyApcTarget(BradleyAPC apc, BasePlayer player)
        {
            // First check if it's a BotReSpawn NPC
            if (player is NPCPlayer npc && BotReSpawn?.Call<bool>("IsBotReSpawn", npc) == true)
            {
                return false; // Prevent targeting BotReSpawn NPCs
            }

            // Original player targeting logic
            if (controller?.currentAPC != apc || !player.userID.IsSteamId())
                return null;

            return CanInteractWith(player, apc) ? controller.apcSettings.Behavior.AlwaysShoot ? true : (object)null : false;
        }
 

1.8m

Downloads

Total number of downloads.

8.4k

Customers

Total customers served.

126.5k

Files Sold

Total number of files sold.

2.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.