Hit Recovery and Block Speed Break Points
#15
Ruvanal,Jun 20 2003, 08:34 PM Wrote:The second question is where in the files is this information stored at?  .COF? .DCC?
Ruvanal,

It's in AnimData.D2. It's a hash table wich holds frame count + other info about the current animation mode. To keep things simple, open it up with a hex editor and search for the record you want. The records have the same name as the .cof files (they are found from the .cof file names, actually):

first 2 letters = char class token, from plrtype.txt (or montype.txt/objtype.txt, wichever is appropriate)

Name Token
Amazon AM
Sorceress SO
Necromancer NE
Paladin PA
Barbarian BA
Expansion
Druid DZ
Assassin AI

next 2 letters = mode token, from plrmode.txt (or monmode.txt/objmode.txt)

Name Token
Death DT
Neutral NU
Walk WL
Run RN
Get Hit GH
Town Neutral TN
Town Walk TW
Attack1 A1
Attack2 A2
Block BL
Cast SC
Throw TH
Kick KK
Skill1 S1
Skill2 S2
Skill3 S3
Skill4 S4
Dead DD
Sequence GH*
Knock back GH*

Last 3 letters = weapon class code (at least for players and monsters)

HTH = Hand to Hand; fists, or kick mode and weapon class = bow, stf, ht1, ht2, xbw, 2hs or 2ht)
BOW = Bow
1HS = 1 Hand Swing; 1 handed Axes, clubs, 1 handed hammers, maces, orbs, scepters, 1 handed swords (and 2h swords worn in 1 hand), throwing axes, wands.
1HT = 1 Hand Thrust; Javelins, Knifes, Throwing Knifes.
STF = Staff; 2 handed axes, 2 handed hammers, pole axes, staves.
2HS = 2 Hand Swing; 2 handed swords
2HT = 2 Hand Thrust; Spears
XBW = Crossbow
1JS = Left Jab Right Swing; Left arm = 1HS and right arm = 1HT
1JT = Left Jab Right Thrust; Dual weilding 1HT weapons
1SS = Left Swing Right Swing; Dual weilding 1HS weapons
1ST = Left Swing Right Thrust
HT1 = One Hand-to-Hand; Claws
HT2 = Two Hand-to-Hand; Dual weilding claws

I think i got that right. Monsters should always use whatever weapon class is in BaseW in monstats.txt.

Once you have found the correct record, its structure is like this:

byte offset = description

+00 = name
+08 = frame count
+12 = anim speed
+16 - +144 = one byte for each frame, 'frame tags' I think its called. You can probably find more detailed info at the Keep, but 1-2 means server update and 1-3 is client update.

tommi,

Werebear get hit has anim speed = 184, and block = 200.
Reply


Messages In This Thread
Hit Recovery and Block Speed Break Points - by Hammerman - 06-23-2003, 08:15 PM

Forum Jump:


Users browsing this thread: 9 Guest(s)