.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old August 19th, 2013, 02:28 PM

Warmonger Warmonger is offline
Corporal
 
Join Date: Mar 2012
Posts: 91
Thanks: 6
Thanked 1 Time in 1 Post
Warmonger is on a distinguished road
Default Re: Suggestion for more options

I like PKH's suggestion. Here's an example of how it could work.

For example, assume friendly unit A has targeted enemy unit 1 at a range of 5 hexes. Enemy unit 2 moves into A's LOS at a range of 8 hexes; A would not fire at 2 since it is farther. Enemy unit 3 pops up 3 hexes from A; A MAY fire at 3 since it is closer. Enemy unit 4 shows up adjacent to A; A would fire at unit 4.

Units appearing adjacent would be fired on 100% of the time if visible, same as now. Units closer than the current target could be handled by an algorithm which would make it more probable to fire the closer the the appearing unit is to the firing unit. Per the example: divide 100 by the range of the current target minus 1 (100 / (5 - 1) = 25). So each hex closer would have a 25% chance of being fired at; a unit at a range of 3 would have a 50% chance of being fired at, at a range of 2 a 75% chance.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.