I'm trying to code a Full Spectrum Warrior style mod in DP. Basically how the game play is that you control a squad of 4 bots which you can position tactically in places of cover (having cover where ever u go is always a good idea.) The problem I'm having i need to move the move cursor near a window and all the cursors lock into the best position lined up along the wall.
This is what FSW-style movement looks like:
http://s33.photobucket.com/albums/d75/G ... -58-51.flv
Here is a pic of a possible senarior

I've coded all the simple things such as the camera view and the bots(although they need some better brains) mainly i just need some help on the movement (getting them to line up along a wall near a corner if the cursor is near one.
Logically this is what I THINK i need to do:
Trace to wall
then get the length of the wall to the right/left
the prime spot is the first spot on the corner which can fit the dimensions of a player.
Then find the remaining spots to the right/left (evenly spaced)
BTW i just need to find the origins that i will be sending the bots to, "spots" = origin
Any idea how to do this or some psuedo code on how to make a FSW style movement.
Thanks,
Gif