Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » It seems that we need someone to hack into jaggedalliance2.com....
Re: It seems that we need someone to hack into jaggedalliance2.com....[message #101573]
|
Tue, 20 July 2004 11:04
|
|
Snap |
|
Messages:286
Registered:September 2000 Location: USA (by way of the Old Wo... |
|
|
Interesting. OK, I finally took a look at the source myself. Regarding the sight range penalty, judging by the comments in the code, it looks like they in fact did something different in UB (JA2.5), which was then ported back to JA2 Gold.
// Effects based on aiming & sight
// From for JA2.5: 3% bonus/penalty for each tile different from range NORMAL_RANGE.
// This doesn't provide a bigger bonus at close range, but stretches it out, making medium
// range less penalized, and longer range more penalized
iChance += 3 * ( NORMAL_RANGE - iSightRange ) / CELL_X_SIZE;
/*
if (iSightRange < NORMAL_RANGE)
{
// bonus to hit of 20% at point blank (would be 25% at range 0);
//at NORMAL_RANGE, bonus is 0
iChance += 25 * (NORMAL_RANGE - iSightRange) / NORMAL_RANGE;
}
else
{
// penalty of 2% / tile
iChance -= (iSightRange - NORMAL_RANGE) / 5;
}
*/ However, the old code still differs from what's on the site, which is something like this:
if (iSightRange > 5) iChance -= (iSightRange/CELL_X_SIZE - 5)*2; Now where does that come from? I couldn't find anything like that in the source.
Report message to a moderator
|
Master Sergeant
|
|
|
Goto Forum:
Current Time: Tue Jan 28 05:48:00 GMT+2 2025
Total time taken to generate the page: 0.00878 seconds
|