bot AI
I read the Perfect NPC tutorial and I created the bot, but how can I create the "AI". Make it run recognize enimies ect. as if it were a player?
My script to create the bots: Code:
Code:
engfunc(EngFunc_RunPlayerMove) |
Re: bot AI
Ok since Simon Logic has asked about something similar regarding Bots, I might release my work-in-progress script.
You will have to bare in mind its a work in progress and not complete, the main thing that myself and DevconeS want to implement is some form of easy to use navigation system. Don't assume you can't do much with it, since I've already created Football Bots for Football Mod (Formally known as SoccerMod). Its not great but hey, least they try and play football :mrgreen: |
Re: bot AI
I was thinking of using RunPLayerMove and when the volocety of the ent is zero (meaning they are running against a wall) make a 45 degree turn, and all the while of doing this check the aiming of said ent, if the ent aims at someone who is not of the team the ent is on to fire but I dont know how to make them fire AND this would be an extremely crude way to make a bot
|
Re: bot AI
Does this work: register_think("nca_bot","bot_think")
I'd be very :shock: if it does since 99% if not 100% of bot coders actually get it to work based on StartFrame. Code:
I'm unsure if our Team thing will work when you create a bot on NS since it has a Ready Room, not a standard menu for selecting a team. |
Re: bot AI
so by simply doing this:
Code:
|
Re: bot AI
Well that would make it spectator but that is the principle of it.
create_bot("Bob", 1) Would make Bob BOT (ROFL) spawn on the Terrorist team. |
Re: bot AI
lol wow thats ... um ... easy compared to what I was trying to do lol.
|
Re: bot AI
Like i said on the NCA's forum, this is pointless, you still have to make an entire AI, since this 'Playermove' of the 'create_bot' is only a copy of your own movements.
you could say that this 'bot' is just an controlable npc. |
Re: bot AI
realy didnt know that [/sarcasm] I want to learn how to code the AI, as I said earlier:
Quote:
|
Re: bot AI
I suggest you first take a study AI, and then start coding.
but if you do want to let them 'seach enemies', Let them spin arround, and look in get_user_aiming if there's a classname "player" in that field. |
| All times are GMT -4. The time now is 06:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.