From: MirceaKitsune Date: Sun, 10 Jul 2011 17:32:39 +0000 (+0300) Subject: Change how the swallow model is attached and applied X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=b4579bd170884b30ebeb02bc8ab6f103e8f800a2;p=voretournament%2Fvoretournament.git Change how the swallow model is attached and applied --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 5f16c965..c44b4de9 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -202,9 +202,8 @@ void Vore_AutoDigest(entity e) void Vore_SwallowModel_Think() { //update the necessary angles to match our view - self.angles_x = self.owner.angles_x; - self.view_ofs = self.owner.view_ofs; - self.alpha = self.owner.cvar_cl_vore_stomachmodel; + //self.angles_x = self.owner.angles_x; + //self.view_ofs = self.owner.view_ofs; // if our swallow progress is gone, the swallow model must also go if(!self.owner.swallow_progress_prey) @@ -233,7 +232,11 @@ void Vore_SwallowModel_Update(entity prey) prey.swallow_model.scale = self.scale; // apply the properties of the prey - prey.swallow_model.aiment = prey; + prey.swallow_model.viewmodelforclient = prey; + prey.swallow_model.effects |= EF_NOGUNBOB; + prey.swallow_model.alpha = prey.cvar_cl_vore_stomachmodel; + prey.swallow_model.colormap = prey.colormap; + prey.swallow_model.glowmod = prey.glowmod; prey.swallow_model.owner = prey; // owned by the prey prey.swallow_model.think = Vore_SwallowModel_Think;