From: MirceaKitsune Date: Sat, 30 Jul 2011 12:14:39 +0000 (+0300) Subject: Some code and code comment arrangements for the last change X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2bd6cab3c39fc21baefbcbdfab573834e6b61965;p=voretournament%2Fvoretournament.git Some code and code comment arrangements for the last change --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 6e333e1d..78dbfd28 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -669,12 +669,12 @@ void Vore() Vore_AutoTaunt(); - // wash the goo away from players once they leave the stomach if(!self.stat_eaten) - if(stov(cvar_string("g_vore_regurgitatecolor_release"))) if(self.colormod) if(self.colormod != '1 1 1') { + // wash the goo away from players once they leave the stomach + if(stov(cvar_string("g_vore_regurgitatecolor_release"))) if(cvar("g_vore_regurgitatecolor_release_fade")) { self.colormod_x += cvar("g_vore_regurgitatecolor_release_fade") * frametime; @@ -688,12 +688,12 @@ void Vore() self.colormod_z = 1; } + // constant particles falling off dirty players if(cvar("g_vore_regurgitatecolor_particles")) if(self.regurgitatecolor_particles_tick < time) { pointparticles(particleeffectnum("vore_regurgitate_constant"), self.origin, '0 0 0', 1); - self.regurgitatecolor_particles_tick = time + cvar("g_vore_regurgitatecolor_particles") * vlen(self.colormod); - dprint(strcat(ftos(cvar("g_vore_regurgitatecolor_particles") * vlen(self.colormod)), " --------\n")); + self.regurgitatecolor_particles_tick = time + cvar("g_vore_regurgitatecolor_particles") * vlen(self.colormod); // particle time depends on how dirty the player is } }