View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 05-06-2014 , 16:03   Re: [TF2] Simple Ghost
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
Command_KillBot would kill any simple_bots in the map. Could cause issues.

Also the ghost think is quite redundant.
You have a think for each ghost, but within that think instead of finding every one around the 1 ghost and scare the players it find everyone around all of the simple_bots and scares them.

so if there was 5 active ghosts (visible) and 32 active players all alive and playing it would do:
FindByClassname 5 time per think
and would check the distance away from a ghost and a player 5*32 times, that's alot of unneeded math.

If my math is right anyways..
Fixed the too many loops thing.
Not so sure about how to fix not removing other simple_bot's
__________________
Pelipoika is offline