' Wrote:Why the recommended Guard IFF/ID and cancel command.
Also, this shouldn't add a significant amount lag since its not spawning any additional NPCs, just changing the behaviour of ones that are already in space.
guard ID is nothing... it is just "extra" time spendt in killing NPCs, nothing more. And only posible cancel comand is thru chat but I wanna see you how are you typing comand during fight. Also you must count natural human idiocy... I dont think so ppl who intencionaly send NPC spam on you will bother himself to type stop comand.
And lag.... well any time someone with proper ID/tag cklick with mouse on targed, sys must do all calculations again... and again. Now imagine event, 10 vs 10.... 20 NPCs of both sides around and all those "if".
Lets go do some counts:
6x "if" - distance, tag of "attacker", tag of "victim", ID of "attacker", ID of "victim", time counter "on"
distance: distance of players: 20 asks, each player to enemy NPC: 20x 20 = 400, each player to own NPC: 400
confirmation of rest of "if": 20x 5 = 100 asks
change of target of all NPC:= 40 asks
togeather 860 asks per one click of both sides. Now imagine full server which is 200 ppl, 1/2 in fight (because fight with NPCs is fight too). Lagmachine.