1
0
Fork 0
forked from fte/fteqw

*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1799 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Magnus 2006-01-06 02:19:28 +00:00
parent a613214e54
commit 7a6a56b7b1
3 changed files with 7 additions and 2 deletions

View file

@ -860,7 +860,7 @@ void() PlayerDeathThink =
local float forward; local float forward;
self.modelindex = modelindex_dead; self.modelindex = modelindex_dead;
self.solid = SOLID_NOT;
if ((self.flags & FL_ONGROUND)) if ((self.flags & FL_ONGROUND))
{ {

View file

@ -783,7 +783,10 @@ void() spike_touch =
{ {
WriteByte (MSG_MULTICAST, SVC_TEMPENTITY); WriteByte (MSG_MULTICAST, SVC_TEMPENTITY);
if (self.classname == "wizspike") if (self.classname == "wizspike")
{
T_Damage (other, self, self.owner, 9+random()18);
WriteByte (MSG_MULTICAST, TE_WIZSPIKE); WriteByte (MSG_MULTICAST, TE_WIZSPIKE);
}
else if (self.classname == "knightspike") else if (self.classname == "knightspike")
WriteByte (MSG_MULTICAST, TE_KNIGHTSPIKE); WriteByte (MSG_MULTICAST, TE_KNIGHTSPIKE);
else else

View file

@ -325,7 +325,7 @@ void() wiz_death1 =[ $death1, wiz_death2 ] {
self.velocity_x = -200 + 400*random(); self.velocity_x = -200 + 400*random();
self.velocity_y = -200 + 400*random(); self.velocity_y = -200 + 400*random();
self.velocity_z = 100 + 100*random(); self.velocity_z = 100 + 100*random();
self.flags = self.flags - (self.flags & FL_ONGROUND); self.movetype = MOVETYPE_TOSS;
sound (self, CHAN_VOICE, "wizard/wdeath.wav", 1, ATTN_NORM); sound (self, CHAN_VOICE, "wizard/wdeath.wav", 1, ATTN_NORM);
}; };
void() wiz_death2 =[ $death2, wiz_death3 ] {}; void() wiz_death2 =[ $death2, wiz_death3 ] {};
@ -346,6 +346,8 @@ void() wiz_die =
ThrowGib ("progs/gib2.mdl", -10); ThrowGib ("progs/gib2.mdl", -10);
ThrowGib ("progs/gib2.mdl", -10); ThrowGib ("progs/gib2.mdl", -10);
ThrowGib ("progs/gib2.mdl", -10); ThrowGib ("progs/gib2.mdl", -10);
ThrowGib ("progs/gib3.mdl", -10);
ThrowGib ("progs/gib1.mdl", -10);
return; return;
} }