++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Nov 10, 2014 3:22 pm Post subject: |
|
|
In the most simplest form, you can think of it like this:
1. instruction for reading player health (to give bot intelligence so that shooting a dead player does not occur and cycling through targets is possible)
2. instruction for handling player coordinates (for reading target locations)
3. instruction for handling cross hair/reticle coordinates (for targeting player coordinate locations)
4. instruction for firing weapon automatically
You can improve on this a lot, but it may require a greater understanding. Such things, as, line of sight (e.g. don't fire if target is behind an object), and precision targeting (e.g. head shots only) and advanced targeting (e.g. shoot at closest player first, relative to hero location) etc..
I doubt you'll find a good tutorial on this.
|
|