- e.owner = prey; // owned by the prey\r
- e.enemy = self; // enemy is the predator\r
- e.think = Vore_SwallowModel_Think;\r
- e.nextthink = time;\r
+ prey.swallow_model.owner = prey; // owned by the prey\r
+ prey.swallow_model.enemy = self; // enemy is the predator\r
+ prey.swallow_model.think = Vore_SwallowModel_Think;\r
+ prey.swallow_model.nextthink = time;\r
+ }\r
+\r
+ // if the model or skin of the prey's swallow model don't match those of our current predator, change them\r
+ string swallow_mdl;\r
+ swallow_mdl = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_swallow.md3"); // 4 is the extension length\r
+ if(prey.swallow_model.model != swallow_mdl)\r
+ setmodel(prey.swallow_model, swallow_mdl);\r
+ if(prey.swallow_model.skin != self.skin)\r
+ prey.swallow_model.skin = self.skin;\r