Making Bots Take No Damage

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Making Bots Take No Damage

Post by The Jackal »

OK this is what I am doing.

I am making a NO Crossing Mod for SH Malta map (I know there aren't many SH fans here) and I placed 2 bots on the main bridge [ I call my bots T3s]. So far they are doing a good job of shooting people. But some issues arose.

1. The Game message when you get killed by a bot is incomplete. It says "The Jackal was shot in the " - that's it!

2. The T3 are taking health damage from players. I do not want that. I want them to just force snipers to keep their heads down and stay off the bridges. How do I go about getting them to be immune from damage?

Help a poor newbie out! :shock:

PS: How can I load a pix here for you to see?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Did you actually use jvbots? Or did you spawn 2 bots directly from the map script?
Image
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

I used two from the map scripts.

Don't want them to smart for their own good. Just kill players that can't hide and snipe. Or go close to the river/bridge area.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

In that case, simply type:
local.bot nodamage
Image
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

Thanks JV. I was typing loca.bot.nodamage - told ya I was a newbie.

Hey could you look at my other thread on a message script. Alcoholic give me a cool script. But its not working either. Let's deal with that there. This is for bots!

Is there anything I can do about the game message when the bot kills?
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

Hey I forgot this also.

Is there anyway I can tell these two T3 bots not to hunt free-spectator?
They keep trying to kill spectators - who told them to kill spectators? Not me.
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

try adding this thread somewhere: (you'll have to call it yourself under prespawn)

Code: Select all

antispec:

     while (1)
     {
          wait 0.5
          for (local.i = 1; local.i <= $player.size; local.i++)
          {
               wait 0.05
               local.guy = $player[local.i]
               if (local.guy.dmteam == "spectator")
               {
                    local.guy.threatbias = ignoreme
               }
               else
               {
                    local.guy.threatbias = 0
               }
          }
     }
     end
:wink:
User avatar
The Jackal
Sergeant Major
Posts: 101
Joined: Wed May 07, 2003 10:09 am
Contact:

Post by The Jackal »

Thank man. You really should think about a name change though. I am tired of telling people Alcoholic helped me. How bad must I be to have a drunk helping me?

:shock:

What about the incomplete death message I am getting. Is it fixable?
Post Reply