From: Samual Lenks Date: Tue, 14 May 2013 02:22:37 +0000 (-0400) Subject: Cleanup X-Git-Tag: xonotic-v0.7.0~50^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=291008378675a3fb2bedd0f6383998d1b41aa216;p=xonotic%2Fxonotic-data.pk3dir.git Cleanup --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index fb3106c29..f60ad9765 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -713,6 +713,16 @@ void Ent_ReadSpawnPoint(float is_new) // entity for spawnpoint setsize(self, PL_MIN, PL_MAX); droptofloor(); + /*if(autocvar_cl_spawn_point_model) // needs a model first + { + self.mdl = "models/spawnpoint.md3"; + self.colormod = Team_ColorRGB(teamnum); + precache_model(self.mdl); + setmodel(self, self.mdl); + self.drawmask = MASK_NORMAL; + //self.movetype = MOVETYPE_NOCLIP; + //self.draw = Spawn_Draw; + }*/ if(autocvar_cl_spawn_point_particles) { switch(teamnum) @@ -725,16 +735,6 @@ void Ent_ReadSpawnPoint(float is_new) // entity for spawnpoint } self.draw = Spawn_Draw; } - /*if(autocvar_cl_spawn_point_model) // needs a model first - { - self.mdl = "models/spawnpoint.md3"; - self.colormod = Team_ColorRGB(teamnum); - precache_model(self.mdl); - setmodel(self, self.mdl); - self.drawmask = MASK_NORMAL; - //self.movetype = MOVETYPE_NOCLIP; - //self.draw = Spawn_Draw; - }*/ } //print(sprintf("Ent_ReadSpawnPoint(is_new = %d); origin = %s, team = %d, effect = %d\n", is_new, vtos(self.origin), teamnum, self.cnt)); @@ -757,10 +757,6 @@ void Ent_ReadSpawnEvent(float is_new) { float teamnum = GetPlayerColor(entnum - 1); - if(autocvar_cl_spawn_event_sound) - { - sound(self, CH_TRIGGER, "misc/spawn.wav", VOL_BASE, ATTN_NORM); - } if(autocvar_cl_spawn_event_particles) { switch(teamnum) @@ -772,6 +768,10 @@ void Ent_ReadSpawnEvent(float is_new) default: pointparticles(particleeffectnum("spawn_event_neutral"), self.origin, '0 0 0', 1); break; } } + if(autocvar_cl_spawn_event_sound) + { + sound(self, CH_TRIGGER, "misc/spawn.wav", VOL_BASE, ATTN_NORM); + } } } diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index a5bd4ee57..7d402ad83 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -100,10 +100,6 @@ void relocate_spawnpoint() e.solid = SOLID_TRIGGER; } - //self.send_spawn = -1; - //self.think = Spawn_Think; - //self.nextthink = time; - Net_LinkEntity(self, FALSE, 0, SpawnPoint_Send); }