WoutProvost / FCNPC-AI

A SA-MP library that adds a simple targeting and threat artificial intelligence system to the NPCs
MIT License
15 stars 4 forks source link

Additional way of aggroing with sound #16

Closed WoutProvost closed 1 year ago

WoutProvost commented 5 years ago
WoutProvost commented 4 years ago

Will be implemented with the following two requirements in mind:

WoutProvost commented 1 year ago

Some things I considered but decided not to implement. The reason for this is that the library is already occupying about 160MB. Using the weapon and vehicle categories below, this would bump it to about 200MB:

x = MAX_PLAYER independent fields
y = MAX_PLAYER dependent fields (except for HEARING fields)
z = HEARING fields (except for WEAPON and VEHICLE fields)
w = WEAPON fields
v = VEHICLE fields
MAX_PLAYERS = 1000
MAX_NPCS = MAX_PLAYERS = 1000
CELL_SIZE = Pawn uses 4 Bytes

memory = MAX_NPCS * (x + y * MAX_PLAYERS + z * MAX_PLAYERS + w * MAX_PLAYERS + v * MAX_PLAYERS) * CELL_SIZE
memory = 1000 * (5 + 33 * 1000 + 5 * 1000 + 6 * 1000 + 7 * 1000) * 4 Bytes
memory = 204.02 MB

Movement:

Weapons:

Vehicles: