How does melee work?[message #100895]
|
Tue, 23 March 2004 08:23
|
|
Ninth Hour |
|
Messages:33
Registered:January 2004 |
|
|
It's a question that I've been curious about for a long time. But now that the source is being analyzed, a definitive answer can be found.
We know how "to hit" percentages for ballistic attacks are determined. But how is hit probability determined for melee attacks?
Apparently, Dex and HTH (or knifing) skill affects chance to land a blow with fist or knife, but what's the actual formula/algorithm?
Just curious, if anyone has time to answer
Report message to a moderator
|
Private 1st Class
|
|
|
Re: How does melee work?[message #100896]
|
Tue, 23 March 2004 23:48
|
|
jurisk |
|
Messages:5
Registered:March 2004 |
|
|
Hope this helps a bit, it's a bit chaotic, but really just look at code from Weapons.c, it's all there.
Attack value is tripled effective dexterity + effective agility + strength + ten times experience level, modified by morale, fatigue, aiming, shock, etc., further modified by knifing skill bonus for knife attacks or martial arts and hth bonus for hth attacks. All this divided by 6.
Defense value is tripled effective agility + effective dexterity + strength + ten times experience level, plus other factos such as fatigue, etc.. This time it gets bonus from knifing and martial arts on knife defense, some more defence if we ourselves have a knife to parry with, and bonus from punches with hth or martial arts. All this divided by 6.
Then chance to hit is 67 + (attRating - defRating) / 3. Head harder by 20 points.
There's also a psycho bonus of 15 (before the divide by 6). HTH bonus is 15 and martial arts - 30. So overall martial arts seems better, since also the ninja attack always gets at least some hit.
Report message to a moderator
|
Private
|
|
|
|