SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 11/01/2014, 09:24 PM   #1
Matz
Huge Clucker
 
Matz's Avatar
 
Join Date: Apr 2011
Location: Istanbul
Posts: 249
Reputation: 142
Cool Artificial Intelligence (Dueller Bot/NPC)

Artificial Intelligence

Info:

- This is a test version of the script and is very messy, sorry about that. I may update the files for it. You'll need FCNPC plugin in order to use it.

- Video will explain what does it do:

Video:

NPC:

[ame]http://www.youtube.com/watch?v=CvS0a6NWpWY[/ame]

Possible fixation to gain lag shoot for NPCs:

[ame]http://www.youtube.com/watch?v=t5oKSs-EOIM[/ame]

Some Commands:

- /bot add
- /bot delete
- /bot duel <bot id>

Credits:

OrMisicL for FCNPC plugin.
Attached Files
File Type: amx gm.amx (50.5 KB, 606 views)
File Type: pwn source.pwn (16.6 KB, 1341 views)

Last edited by Matz; 12/01/2014 at 01:06 PM.
Matz is offline   Reply With Quote
Old 11/01/2014, 09:26 PM   #2
LeGGGeNNdA
High-roller
 
LeGGGeNNdA's Avatar
 
Join Date: Sep 2012
Location: Durres, Albania.
Posts: 1,316
Reputation: 362
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Lol its pretty nice, good job
LeGGGeNNdA is offline   Reply With Quote
Old 11/01/2014, 09:30 PM   #3
Matz
Huge Clucker
 
Matz's Avatar
 
Join Date: Apr 2011
Location: Istanbul
Posts: 249
Reputation: 142
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Quote:
Originally Posted by LeGGGeNNdA View Post
Lol its pretty nice, good job
Thanks.

Edit: Added source.
Matz is offline   Reply With Quote
Old 11/01/2014, 11:33 PM   #4
Passout
Banned
 
Join Date: Jul 2010
Posts: 217
Reputation: 17
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Awesome job im gonna test it right now!
Passout is offline   Reply With Quote
Old 12/01/2014, 03:45 AM   #5
Swisher
Big Clucker
 
Join Date: Dec 2013
Posts: 100
Reputation: 1
Default Re: Artificial Intelligence (Dueller Bot/NPC)

I just tested this

/bot add = works
/bot delete id = works
/bot duel id = invalid bodygaurd


??


awesome fs
but needs fix
__________________

Deathmatch/Freeroam/Roleplay/Cops/Robbers/Minigames/Race
NOW RUNNING 0.3z !
Swisher is offline   Reply With Quote
Old 12/01/2014, 03:47 AM   #6
AaronKillz
Huge Clucker
 
AaronKillz's Avatar
 
Join Date: Jul 2012
Posts: 241
Reputation: 25
Default Re: Artificial Intelligence (Dueller Bot/NPC)

This is actually really cool, thanks.
AaronKillz is offline   Reply With Quote
Old 12/01/2014, 04:00 AM   #7
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,885
Reputation: 1337
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Looks pretty funny but I don't approve of your update loop, you should have a loop for each NPC and there is a few reasons.

1.) Prevent all NPC updates from being in sync (looks more natural)
2.) Allows you to more easily organize your NPC's actions
3.) Allows you to create several NPC classes

Some suggestions.

1.) Implement NPC states this is very very useful because you can sequence multiple states in the update loop
2.) Use ZCMD I don't care if you have 1 command just do it
3.) Your update time is probably too fast
4.) You shouldn't need an update rate of 30 it's a waste of bandwidth

Other problems

This will be prone to being attacked with fake OnPayerGiveDamage() messages so in it's current state really isn't reliable for anything more than shits and giggles on a home server.
Pottus is offline   Reply With Quote
Old 12/01/2014, 07:17 AM   #8
EmpireSk
Huge Clucker
 
EmpireSk's Avatar
 
Join Date: Jul 2013
Location: Slovakia
Posts: 356
Reputation: 10
Default Re: Artificial Intelligence (Dueller Bot/NPC)

WOW :O :O Good Job
__________________
<a href="http://www.game-state.com/82.208.17.10:27193/"><img src="http://www.game-state.com/82.208.17.10:27193/560x95_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>
EmpireSk is offline   Reply With Quote
Old 12/01/2014, 09:00 AM   #9
nGen.SoNNy
Gangsta
 
nGen.SoNNy's Avatar
 
Join Date: Sep 2009
Location: Romania
Posts: 929
Reputation: 69
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Make a better version of this and transform it into Zombie Minigame :P
__________________
If i've helped you, please click
nGen.SoNNy is offline   Reply With Quote
Old 12/01/2014, 09:15 AM   #10
J4mmyHD
Huge Clucker
 
J4mmyHD's Avatar
 
Join Date: Oct 2012
Location: United Kingdom
Posts: 274
Reputation: 42
Default Re: Artificial Intelligence (Dueller Bot/NPC)

Awsome!
J4mmyHD is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you think artificial intelligence/emotions are possible SourceCode Everything and Nothing 17 11/12/2011 01:20 PM
Artificial intelligence (AI) Related roleplayman Everything and Nothing 5 29/12/2008 08:08 AM


All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.