Page 1 of 1

Making Bots Take No Damage

Posted: Thu Aug 28, 2003 5:22 am
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?

Posted: Thu Aug 28, 2003 6:09 am
by jv_map
Did you actually use jvbots? Or did you spawn 2 bots directly from the map script?

Posted: Thu Aug 28, 2003 7:58 am
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.

Posted: Thu Aug 28, 2003 8:09 am
by jv_map
In that case, simply type:
local.bot nodamage

Posted: Thu Aug 28, 2003 8:24 am
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?

Posted: Thu Aug 28, 2003 12:36 pm
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.

Posted: Fri Aug 29, 2003 12:23 am
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:

Posted: Fri Aug 29, 2003 3:31 am
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?