X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=2f0a6ca982b5482f973f192956ab036f064f62b6;hb=ff29f47f799d99cec7c2a6aa2cf818da2b931fc5;hp=9f5e7298b898116cac45c6a42a35c282ad105e6d;hpb=5509b55dbc13227bdc7b97f2934fa71dad02cc66;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 9f5e729..2f0a6ca 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -128,6 +128,7 @@ public: float permanentdamage; float superpermanentdamage; float lastcollide; + /* Seems to be 0 = alive, 1 = unconscious, 2 = dead */ int dead; float jumppower; @@ -271,10 +272,12 @@ public: int num_weapons; int weaponids[4]; + /* Key of weaponids which is the weapon in hand, if any. -1 otherwise. + * Always 0 or -1 as activeweapon is moved to position 0 when taken */ int weaponactive; int weaponstuck; + /* 0 or 1 to say if weapon is stuck in the front or the back */ int weaponstuckwhere; - int weaponwhere; int numwaypoints; XYZ waypoints[90]; @@ -393,6 +396,11 @@ public: void setAnimation(int); void DoAnimations(); void RagDoll(bool checkcollision); + + void takeWeapon (int weaponId); + + bool addClothes(const int& clothesId); + void addClothes(); }; const int maxplayers = 10;