bodyparts separated
[k8-i-v-a-n.git] / src / game / bodyparts / bodypart_torso.cpp
blob3f0841291a1667b8dc43a4a9a3f8e2f83e940b46
1 #ifdef HEADER_PHASE
2 ITEM(torso, bodypart)
4 public:
5 virtual int GetBodyPartIndex() const;
6 virtual double GetRoughChanceToHit(double, double) const;
7 };
10 #else
14 int torso::GetBodyPartIndex() const { return TORSO_INDEX; }
18 double torso::GetRoughChanceToHit(double ToHitValue, double DodgeValue) const
20 return 1 / (DodgeValue / ToHitValue + 1);
22 #endif