]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Moved clothes loop to Person, got rid of globals tintr,tintg,tintb
[lugaru.git] / Source / Person.h
index 9f5e7298b898116cac45c6a42a35c282ad105e6d..2f0a6ca982b5482f973f192956ab036f064f62b6 100644 (file)
@@ -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;