*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1793 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Magnus 2006-01-06 01:35:11 +00:00
parent d6642e1d68
commit 61cc51f6fe
2 changed files with 15 additions and 0 deletions

View file

@ -483,6 +483,19 @@ void() PutClientInServer =
{ {
local entity spot; local entity spot;
if (self.class == 0 || self.team == 0)
{
setsize (self, VEC_HULL_MIN, VEC_HULL_MAX);
self.view_ofs = '0 0 22';
self.takedamage = DAMAGE_NO;
self.solid = SOLID_NOT;
spot = SelectSpawnPoint ();
self.origin = spot.origin + '0 0 1';
self.angles = spot.angles;
self.fixangle = TRUE; // turn this way immediately
return;
}
self.classname = "player"; self.classname = "player";
self.health = 100; self.health = 100;
self.takedamage = DAMAGE_AIM; self.takedamage = DAMAGE_AIM;
@ -1272,6 +1285,7 @@ void() PlayerPreThink =
self.regen = self.regen - 1; self.regen = self.regen - 1;
} }
stuffcmd(self, "v_idlescale 0\n");
self.cycle2 = time + 1; self.cycle2 = time + 1;
} }

View file

@ -179,6 +179,7 @@ void(entity targ, entity inflictor, entity attacker, float damage) T_Damage =
{ {
damage = 0; damage = 0;
sound (targ, CHAN_BODY, targ.armornoise, 1, ATTN_NORM); sound (targ, CHAN_BODY, targ.armornoise, 1, ATTN_NORM);
return;
} }
if (random()*4<=1) if (random()*4<=1)