convert line ends
[canaan.git] / prj / cam / src / deepc / motion / dpccrarm.cpp
bloba552fd9684b4d424a568b7a2683f1aba7184819c
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 #include <dpccrarm.h>
8 #include <crplyarm.h>
9 #include <dpccret.h> // for actor type
10 #include <mp.h>
12 #include <dbmem.h> // must be last included header
14 #define WRENCH_PHYS_RADIUS 0.15
16 static sCrPhysModOffset g_WrenchPhysOffsets[4] = \
18 { 3, 4, 0.22, WRENCH_PHYS_RADIUS},
19 { 3, 4, 0.47, WRENCH_PHYS_RADIUS},
20 { 3, 4, 0.74, WRENCH_PHYS_RADIUS},
21 { 3, 4, 1.0, WRENCH_PHYS_RADIUS},
24 static sCrPhysModOffsetTable g_WeaponPhysTable = \
26 4, g_WrenchPhysOffsets
30 // Joints
31 #define BUTT 0
32 #define SHLDR 1
33 #define ELBOW 2
34 #define WRIST 3
35 #define FINGER 4
37 // mapping from joint id to exposed joint enum
38 static int g_aArmJointMap[] =
40 -1,
41 -1,
42 -1,
43 -1,
45 -1,
47 -1,
49 -1,
51 -1,
53 -1,
54 -1,
55 -1,
56 -1,
57 -1,
58 -1,
59 -1,
60 -1,
61 -1,
64 // array of mappings from jointIDs -> parent jointIDs
65 static int g_aArmJointParents[] =
67 BUTT, // BUTT
68 BUTT, // SHLDR
69 SHLDR, // ELBOW
70 ELBOW, // WRIST
71 WRIST, // FINGER
74 static torso g_DefTorso={BUTT,-1,1,{SHLDR}};
75 static limb g_DefLimb={0,0,3,{SHLDR,ELBOW,WRIST,FINGER}};
77 const sCreatureDesc sCrDPCWrenchDesc = \
79 kDPCCRTYPE_PlayerLimb, // actor type
80 1, // num torsos
81 1, // num limbs
82 5, // num joints
83 "wrench_h", // default lengths filename
84 0, // number of phys models
86 NULL,
87 g_aArmJointParents, // joint parent mapping
88 g_aArmJointMap,
89 0, // num feet
90 NULL, // foot joints
91 &g_DefTorso, // default torso values (if lengths file not found)
92 &g_DefLimb, // default limb values (if lengths file not found)
93 kDPCCrWeap_NumWeapons, // number of weapons - this seems bogus?
94 &g_WeaponPhysTable, // weapon physics model offsets
95 FALSE, // is always ballistic
96 FALSE, // uses head tracking