Chaosforge Forum

DoomRL => Discussion => Topic started by: rekenne on December 21, 2008, 18:26

Title: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: rekenne on December 21, 2008, 18:26
But I can't find it on the wiki. Does anyone know where I could find it?
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: rekenne on December 21, 2008, 18:49
... Also, is there one for the rate at which shotguns lose damage? >_>
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and dist
Post by: LockeCarnelia on December 21, 2008, 20:17
I'm pretty sure it's 5 points of damage per space away.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: rekenne on December 21, 2008, 20:40
I'm pretty sure it's not, because shotguns aren't useless past melee range. That, and I know the Combat shotty decays less badly and the SSG decays more badly than the shotgun. It's likely based exponentially.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and dist
Post by: LockeCarnelia on December 21, 2008, 21:34
It might be 5% over a space.  And I'm fairly sure the reason that Combat Shotties seem to decay less is because they have a tighter spread, but that's my humble opinion.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: Blade on December 22, 2008, 06:51
That was post of Malek, and and it had an attachment of shotguns chart. Type in "search" something like that.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: rekenne on December 22, 2008, 08:44
Aha!
Thank you. This chart is pure, pure sexiness.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and dist
Post by: LockeCarnelia on December 22, 2008, 10:23
Might wanna put up a link to it here, maybe make it a sticky for the chart.
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: Kornel Kisielewicz on December 22, 2008, 10:25
Shotguns

Damage := Max( Roll * (1.0 - Reduce * Max( 1, DistanceToTarget )), 1 );

Reduce values for common shotguns:
Normal 0.07
Double 0.1
Assault 0.05

ToHit:

ToHit := Item.ToHit;
if target is running then Decrement ToHit by 4
if (SpecialRoll( 10 + toHit - (distanceToTarget div 3 ) + iToHit) >= 0) then Target is hit.

Special Roll is :
function Roll( Value );
begin
  DieRoll := Dice(3,6);
  case DieRoll of
      3 : Exit(30);
      4 : Exit(20);
     17 : Exit(-20);
     18 : Exit(-30);
  end;
  Roll := Value - DieRoll;
end;

Yeah, simple ;]
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: rekenne on December 22, 2008, 10:46
GASP!
It is SACRED CODE!
I am not worthy! I AM NOT WORTHY!
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and dist
Post by: LockeCarnelia on December 22, 2008, 10:48
Hey, what do you know, I wasn't too far off with my 5% estimate. :D
Title: Re: I could have swore I saw a chart of chance to hit based on accuracy and distance
Post by: Kornel Kisielewicz on December 23, 2008, 06:23
rekenne :D