Slothman/Slothbot

This is a resource designed to allow scripts or gamemodes to insert a ped into the game that roughly simulates combat with a real player. Gamemodes can implement the bots as opponents to actual players or as teammates.

Features

Teamplay:
The bot is capable of identifying friend from foe

Map Navigation:
When the bot is placed in a map that has suitable pathways marked out (see below on how to do that) the bot will navigate the map, seeking out enemies. Without pathways, a bot can still think for itself, but wont move around as proficiently.

Aggressiveness:
Bots will attack any ped, player or bot that's not on it's team.

Cooperation:
Bots can automatically team up with teammates (either player or bot) by meeting up with them and sticking together

Advanced movement:
If there's obstacles blocking a bots path, the bot will attempt to get around or over it instead of just walking into a wall for eternity

Multiple modes of playing:

"hunting" - travel pathways until finding an enemy or teammate

"waiting" - stand still until an enemy of teammate comes into view

"guarding" - the bot will attack any enemy that comes within sight, but not move from its spawn position

"following" - the bot will follow a player or bot while attacking enemies

"chasing" - the bot will attack an enemy bot or player

Gamemode/Script integration:
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behavior.

EDF for map path creation:
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.

Server Events

onBotFindEnemy

This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players