Official Soldat Forums
Soldat Maps & Mapmaking => Bot Forum => Topic started by: CaptainFail on November 22, 2009, 01:34:08 pm
-
I wanted to make my own little Mod (zombies) when I'm bored and waiting to join games. But I made bots with Flamer and Flame Arrow then Chainsaw as primary and the never use Flamer/Flame Arrow. Is there a way to make it so they always use Flamer and Flame Arrow? Never Mind, I had to remove a weapon. Also I want to be able to use Admin commands like /pred and /flamer, but all i can do is /kill and /ban. How can I make admin commands like /pred and /flamer?
Ty for people who help :D
-
I don't mess with bots very much so I can't provide much insight into your bot problem, but you might want to try searching in our bot forum (http://forums.soldat.pl/index.php?board=21.0) as it's possible that the issue has been raised and resolved already. If not, you're free to make a topic about it there.
As for custom commands like /pred and /flamer, you'll need to load scripts onto your server for that. You can try searching the scripting releases (http://forums.soldat.pl/index.php?board=41.0) forum to see if anybody's created something similar already, or you can try making it yourself (see the stickies here (http://forums.soldat.pl/index.php?board=40.0) if you're new to Soldat scripting). Note that you can't run scripts on non-dedicated servers (iirc).
Good luck.
-
In the event that you are running a dedicated server, and are prepared to run a script, check out my FunAdmin script.
http://soldatcentral.com/index.php?page=script&f=12
:D
If you want to have pred, type /pred <player id>, and that player will become invisible.
If you want to spawn a flamer, type /spawn 11 <player id>, and that person will receive a flamer. Note that, in both cases, if you don't specify a <player id>, then the action will be performed on yourself.
-
Where do i put that script for my mod?
-
You put the FunAdmin folder into the scripts folder of your server. Then, you open up server.ini in the folder of your server, and change the value of Scripting from 0 to 1.