2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 // $Header: r:/t2repos/thief2/src/dark/crzombie.c,v 1.4 1998/10/23 01:49:18 CCAROLLO Exp $
7 // XXX this could really a DLL. just contains humanoid-specific data
11 #include <drkcret.h> // to get actor type definition
13 #include <dbmem.h> // must be last included header
15 #define HUMANOID_PHYS_RADIUS 1.0
17 #define SWORD_PHYS_RADIUS 0.3
19 static sCrPhysModOffset g_SwordPhysOffsets
[] = \
21 { 14, 16, 0.75, SWORD_PHYS_RADIUS
},
22 { 14, 16, 0.5, SWORD_PHYS_RADIUS
},
23 { 15, 17, 0.75, SWORD_PHYS_RADIUS
},
24 { 17, 17, 0, SWORD_PHYS_RADIUS
},
27 static sCrPhysModOffsetTable g_WeaponPhysTable
= \
29 sizeof(g_SwordPhysOffsets
)/sizeof(g_SwordPhysOffsets
[0]), g_SwordPhysOffsets
33 static sCrPhysModOffset g_aZomPhysModOffsets
[] = \
65 // mapping from joint id to exposed joint enum
66 static int g_aZomJointMap
[] =
92 // array of mappings from jointIDs -> parent jointIDs
93 static int g_aZomJointParents
[] =
117 static torso g_aDefTorsos
[2]= {\
118 {BUTT
,-1,3,{LHIP
,RHIP
,ABDOMEN
}},
119 {ABDOMEN
,0,3,{LSHLDR
,RSHLDR
,NECK
}},
122 static limb g_aDefLimbs
[5]= {\
123 {0,1,3,{LHIP
,LKNEE
,LANKLE
,LTOE
}},
124 {0,1,3,{RHIP
,RKNEE
,RANKLE
,RTOE
}},
125 {1,0,3,{LSHLDR
,LELBOW
,LWRIST
,LFINGER
}},
126 {1,0,3,{RSHLDR
,RELBOW
,RWRIST
,RFINGER
}},
130 static int g_FootJoints
[2]={ LANKLE
, RANKLE
};
132 const sCreatureDesc sCrZombieDesc
= \
134 kDATYPE_Humanoid
, // actor type
138 "expzom", // default lengths filename
139 2, // number of phys models
140 HUMANOID_PHYS_RADIUS
, // default phys radius
141 g_aZomPhysModOffsets
, // array of phys model offsets
142 g_aZomJointParents
, // joint parent mapping
145 g_FootJoints
, // foot joints
146 g_aDefTorsos
, // default torso values (if lengths file not found)
147 g_aDefLimbs
, // default limb values (if lengths file not found)
148 kDCrWeap_NumWeapons
, // number of weapons
149 &g_WeaponPhysTable
, // weapon physics model offsets
150 FALSE
, // always ballistic
151 TRUE
, // uses head tracking