Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » How does melee work?
How does melee work?[message #100895] Tue, 23 March 2004 08:23 Go to next message
Ninth Hour is currently offline 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 Go to previous messageGo to next message
jurisk is currently offline 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
Re: How does melee work?[message #100897] Tue, 30 March 2004 11:41 Go to previous message
Chris Camfield is currently offline Chris Camfield

 
Messages:68
Registered:February 2000
Location: Toronto, Ontario
Martial arts gets more of a bonus to hit, but hand-to-hand guys get a better damage bonus (except when it comes to the ninja attack), I think.

Report message to a moderator

Corporal
Previous Topic: Where to watch for patch/update releases?
Next Topic: Faster Game via Compiler Optimizations
Goto Forum:
  


Current Time: Sat Jan 25 09:02:57 GMT+2 2025

Total time taken to generate the page: 0.00782 seconds