Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » CtH algorithm
CtH algorithm[message #101502] Sat, 10 July 2004 11:17 Go to next message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
Hey,

I thought this was asked before but I can't find it. I am not working with the source code myself, but I wonder if someone could post the chance to hit calculation code here?

Thanks.

Report message to a moderator

Master Sergeant
Re: CtH algorithm[message #101503] Sat, 10 July 2004 13:27 Go to previous messageGo to next message
defrog is currently offline defrog

 
Messages:235
Registered:March 2004
Location: Austria
its pretty big

for guns:
weapons.c
ln ~2425
UINT32 CalcChanceToHitGun(SOLDIERTYPE *pSoldier, UINT16 sGridNo, UINT8 ubAimTime, UINT8 ubAimPos )

for the rest:
weapons.c
ln ~3745
UINT32 CalcChanceHTH( SOLDIERTYPE * pAttacker,SOLDIERTYPE *pDefender, UINT8 ubAimTime, UINT8 ubMode )

Report message to a moderator

Sergeant 1st Class
Re: CtH algorithm[message #101504] Sun, 11 July 2004 11:57 Go to previous messageGo to next message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
OK, thanks. I think I'll stick with the information on the official JA2 site for now Smile

I am doing some research on shooting modeling and CtH.

Report message to a moderator

Master Sergeant
Re: CtH algorithm[message #101505] Mon, 12 July 2004 05:16 Go to previous messageGo to next message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
Here's a little article I wrote based on some CtH research.

Shooting Model

Report message to a moderator

Master Sergeant
Re: CtH algorithm[message #101506] Tue, 13 July 2004 20:29 Go to previous messageGo to next message
defrog is currently offline defrog

 
Messages:235
Registered:March 2004
Location: Austria
doesn't work

"This page is not available.
We're sorry, but this page is currently unavailable for viewing. "

Report message to a moderator

Sergeant 1st Class
Re: CtH algorithm[message #101507] Wed, 14 July 2004 06:01 Go to previous message
Snap is currently offline Snap

 
Messages:286
Registered:September 2000
Location: USA (by way of the Old Wo...
Sorry, I forgot that Geocities doesn't allow referrals. Here is a page from which you can access the article:

Shooting Model

Report message to a moderator

Master Sergeant
Previous Topic: Need confirmation: does the Throwing trait affect throwing knives or not?
Next Topic: cant run my compiled exe
Goto Forum:
  


Current Time: Sat Jan 25 11:54:19 GMT+2 2025

Total time taken to generate the page: 0.00986 seconds