\r
void W_ReloadedAndReady()\r
{\r
+ // if we are inside the stomach, don't allow reloading, and schedule the weapon to reload once when we're out\r
+ if(self.predator.classname == "player")\r
+ {\r
+ self.clip_load = self.weapon_load[self.weapon] = -1;\r
+ w_ready(); // don't keep executing each frame\r
+ return;\r
+ }\r
+\r
// finish the reloading process, and do the ammo transfer\r
\r
self.clip_load = self.old_clip_load; // restore the ammo counter, in case we still had ammo in the weapon before reloading\r
\r
void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, string sent_sound)\r
{\r
+ // if we are inside the stomach, don't allow reloading\r
+ if(self.predator.classname == "player")\r
+ return;\r
+\r
// set global values to work with\r
self.reload_ammo_min = sent_ammo_min;\r
self.reload_ammo_amount = sent_ammo_amount;\r
if(self.ammo_fuel >= 1) // we only have one weapon in VT, so nothing else to switch to if we're out of ammo\r
weapon_action(self.weapon, WR_RELOAD);\r
}\r
- else if not(self.clip_load < 0) // we're currently reloading\r
+ else if not(self.clip_load < 0) // we're not currently reloading\r
{\r
if (self.BUTTON_ATCK)\r
{\r