.float digesting;\r
.float stomach_load;\r
.float weapon_delay;\r
-.float stat_eaten, stat_stomachload;\r
+.float stat_eaten, stat_stomachload, stat_digesting;\r
\r
// Fields\r
\r
addstat(STAT_LEADLIMIT, AS_FLOAT, stat_leadlimit);\r
addstat(STAT_BULLETS_LOADED, AS_INT, campingrifle_bulletcounter);\r
addstat(STAT_STOMACH_LOAD, AS_INT, stat_stomachload);\r
- addstat(STAT_STOMACH_DIGESTING, AS_INT, digesting);\r
+ addstat(STAT_STOMACH_DIGESTING, AS_INT, stat_digesting);\r
addstat(STAT_STOMACH_EATEN, AS_INT, stat_eaten);\r
\r
next_pingtime = time + 5;\r
void Vore()\r
{\r
// if we are free, show our stomach load on the HUD. Otherwise, show the predator's\r
- if(self.eater != self && self.eater.classname == "player")\r
+ if(self.eater.classname == "player")\r
{\r
self.stat_stomachload = self.eater.stomach_load;\r
+ self.stat_digesting = self.eater.digesting;\r
self.stat_eaten = num_for_edict(self.eater);\r
}\r
else\r
{\r
self.stat_stomachload = self.stomach_load;\r
+ self.stat_digesting = self.digesting;\r
self.stat_eaten = 0;\r
}\r
\r