by Rachael » Fri May 01, 2009 1:18 am
Okay.
As a friendly monster, do we prefer monsters as targets, in deathmatch, or do we prefer players? Those are the two easiest ways to code this thing, unless I can also code it so that it considers the player object itself among the monsters but that will be subject to distance checks, blockmap search, etc.
The fix I have in now prefers monsters - it searches for monsters first, and if it doesn't find any it does a fall-through to the normal player routine that unfriendly monsters use, but there is an additional check to make sure the monster is not attacking his master, or if he doesn't have one, any players at all.
Okay.
As a friendly monster, do we prefer monsters as targets, in deathmatch, or do we prefer players? Those are the two easiest ways to code this thing, unless I can also code it so that it considers the player object itself among the monsters but that will be subject to distance checks, blockmap search, etc.
The fix I have in now prefers monsters - it searches for monsters first, and if it doesn't find any it does a fall-through to the normal player routine that unfriendly monsters use, but there is an additional check to make sure the monster is not attacking his master, or if he doesn't have one, any players at all.