std::shared_ptr<Person> victim;
bool hasvictim;
+ bool isplayerfriend;
float updatedelay;
float normalsupdatedelay;
Person();
Person(FILE*, int, unsigned);
- void skeletonLoad(bool clothes = false);
+ void skeletonLoad();
// convenience functions
inline Joint& joint(int bodypart) { return skeleton.joints[skeleton.jointlabels[bodypart]]; }
float getProportion(int part) const;
XYZ getProportionXYZ(int part) const;
+ void changeCreatureType(person_type type);
+
void CheckKick();
void CatchFire();
void DoBlood(float howmuch, int which);
void addClothes();
void doAI();
+
+ bool catchKnife();
+
+ bool hasWeapon() { return (weaponactive != -1); }
+ bool isPlayerControlled() { return (aitype == playercontrolled); }
+ bool isPlayerFriend() { return isplayerfriend; }
};
const int maxplayers = 10;