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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old November 28th, 2007, 02:27 PM
Mobhack's Avatar

Mobhack Mobhack is online now
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,988
Thanks: 482
Thanked 1,922 Times in 1,250 Posts
Mobhack is on a distinguished road
Default Re: OOBs way out of whack?

looking at the code, the line that does the accuracy adjustment is in the middle of the various spaghetti code. (It is not something I had looked at, ever, so is likely to be in its original place!). Various adjustments for movement and target size etc came after the percentage divider.

In my test scenario, US bazookas were opening up at about 14% shot 1 hit chance. Cranking their preference setting to 30% to-hit only lowered that to 10-11%.

So I commented out that line, copied it to the end of the accuracy-determination spaghetti, and the to-hits went to 6-7% first-shot. Not 30%, but these numbers get modified elsewhere in the spaghetti, by things like leader ratings and all that jazz, so determining precise values, even with the code to hand, is nigh impossible. (And we still get folks who want the "tables" ).

Note to self - if I ever write a wargame engine from the ground-up, make it table based, just like normal tabletop rules!.

Solution to make the code behave as end users would expect, is to move that line to where I did, it seems.

Good catch! - something we all had assumed was working in the original SSI code, was not.

Cheers
Andy
Reply With Quote
 

Bookmarks


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 08:52 AM.


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