Raised This Month: $ Target: $400
 0% 

Full control over bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-03-2013 , 13:28   Full control over bots
Reply With Quote #1

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.
Backstabnoob is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-03-2013 , 13:48   Re: Full control over bots
Reply With Quote #2

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
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-03-2013 , 13:55   Re: Full control over bots
Reply With Quote #3

That's quite not what I need. I'm not looking for a fake bot, I need the bots to play the game.
Backstabnoob is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-03-2013 , 15:28   Re: Full control over bots
Reply With Quote #4

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
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-03-2013 , 18:04   Re: Full control over bots
Reply With Quote #5

That library looks like it could be useful, anyone has it?
Backstabnoob is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-23-2013 , 17:06   Re: Full control over bots
Reply With Quote #6

bump
Backstabnoob is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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