Official Soldat Forums
Soldat Maps & Mapmaking => Bot Forum => Topic started by: mxyzptlk on May 28, 2007, 04:56:59 pm
-
How do you make bots only use one weapon?
I am trying to make "Weapon challenge bots", but they don't always use their designated weapons.
How do you make them do this?
Date Posted: May 18, 2007, 05:26:00 PM
please, can anyone help?
-
as far as i know know cannot be done
not even with scripting
-
Forceweapon only works on human players...
But maybe you can use scripting to send a message to arsse which in turn spawns a bot that has your weapon as its favorite weapon. I'm not sure though, never tried it.
-
What about boogieman and zombie bots? how do they do it?
-
A few weapons are hard-coded for their bots to always use. The Barrett M82A1, Combat Knife, Chainsaw, and M72 LAW are among these few. The only way you could achieve this with other weapons would be through scripting, I guess (or just flip the weapon attributes around via a WM)
-
Like I said before, you can't use forceweapon on bots. I would have a lot of uses for it (especially for testing purposes) but sadly it simply doesn't work. If enforcing weapons using bot files is also hard coded, and they don't exclusively use a specific weapon when you set it as favorite, then I guess it's currently not possible.
-
A few weapons are hard-coded for their bots to always use. The Barrett M82A1, Combat Knife, Chainsaw, and M72 LAW are among these few. The only way you could achieve this with other weapons would be through scripting, I guess (or just flip the weapon attributes around via a WM)
But my sniper bot and my law bot don't work, neither of them. My zombie bot works only sometimes.
-
Yeah, I also tried to make a LAW'ing bot but it doesn't work. Tried all sorts of combinations for the weapons name, it still picked an auto. The only weapons that works are "Chainsaw" and "Hands". I haven't got any other weapon working.
-
Don't forget knife!
-
But my sniper bot and my law bot don't work, neither of them. My zombie bot works only sometimes.
I have no idea, then... actually, I do know that some other characteristics of bots can affect it indirectly, including possibly even color scheme. Check it on a different bot and see.
-
It might be that I set grenade frequency max, accuracy max...
-
how cant ,see the default bots..u guys kinda kinding...try without the second wep all shoot accauary 100& :P
-
I found it an annoying problem. I hope it can be fixed too.
I could only get the Chainsaw, Knife, LAW and Hands to be permanently used by a Bot.
Actually, the only way is by scripting I guess. You have to force them to use a weapon, probably by changing their current gun to the gun they are supposed to use probably. I saw a server where the bot could use a Aug all the time (zombie server btw), another server where a bot could always used Barrett, a server with Flamer zombies. though initially when the server starts the bot may tend to keep switching weapons non-stop, and when they spawn they will reload before they attack.
how cant ,see the default bots..u guys kinda kinding...try without the second wep all shoot accauary 100& :P
And what are you talking about? I don't understand.
-
Oh, wow. This was a huge necro.
Maybe it could be fixed by adding a variable to the bot file, like "Fav. Primary %:" and "Fav. Secondary %;".
-
Just disable all the other weapons for the bot. It'll stop him from using anything but the weapon you want him to use.
-
Just disable all the other weapons for the bot. It'll stop him from using anything but the weapon you want him to use.
but how do u do that?
-
Necroe'd again, good one. Sheesh.
And you do it by scripting BTW.