AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Full control over bots (https://forums.alliedmods.net/showthread.php?t=215082)

Backstabnoob 05-03-2013 13:28

Full control over bots
 
Never worked with bots before, therefore I'm making a thread with a few questions.

I'm sorry if any of the points were already discussed anywhere, however I've tried searching for this for the past few days on google and here on AM, but found nothing useful.


Because a amxx plugin AI is inefficient and hard to make, I decided to let a third party bot library handle the AI for me.

I'm going to make a mod where everyone plays on the side of the counter-terrorists, while AI enemies spawn all over the map with knives and similar weapons, trying to kill the CTs. Basically a survival mod based on waves.

The first question I have is:
How do I easily create a bot. Should I add them to the game as fake clients? That's stupid, because I'd have to hook the scoreboard message (if there's any) and hide the bots from it. If there's no other way than this, can I at least hide the bots from scoreboard as I said?

Next question;
Does the way of creating a bot affect how they act? For example, if I create an entity and make it a bot, is there any difference?


That's the two questions I have now. I'll ask some more when I'm mid developing the plugin.


Thanks for answers.

Bos93 05-03-2013 13:48

Re: Full control over bots
 
https://forums.alliedmods.net/showthread.php?t=95705


Quote:

As everyone knows, putting a fake bot in each team can prevent round end, but this way has a lot of disadvantage.
(1) take two server slots
(2) waste server resources to deal with server status. (kick bots when players reach some amount etc.)
(3) fake bot and real bot, what a mess!
Here, I'll show a new and hacky way to block round end without adding a stupid fake bot in each team.
This way is to block the roundend function in gamedll.

I think you have to do npc


PS
Sorry if I did not understand. My English is poor

Backstabnoob 05-03-2013 13:55

Re: Full control over bots
 
That's quite not what I need. I'm not looking for a fake bot, I need the bots to play the game.

bibu 05-03-2013 15:28

Re: Full control over bots
 
Hmm for some of the stuff you wanted, you would need to make it as entity (NPC). And for some other features you want, there was a BOT API, but the link is down.

http://forums.alliedmods.net/showthread.php?p=924972

Backstabnoob 05-03-2013 18:04

Re: Full control over bots
 
That library looks like it could be useful, anyone has it?

Backstabnoob 05-23-2013 17:06

Re: Full control over bots
 
bump


All times are GMT -4. The time now is 10:52.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.