Use Write*V and WriteBytes, instead of antique bloated functions. ;)

This commit is contained in:
Ragnvald Maartmann-Moe IV 2003-03-03 05:28:13 +00:00
parent e472c6b935
commit 888337527e
2 changed files with 4 additions and 12 deletions

View file

@ -42,12 +42,8 @@
else { else {
sound (s, CHAN_WEAPON, "player/axhit2.wav", 1, ATTN_NORM); sound (s, CHAN_WEAPON, "player/axhit2.wav", 1, ATTN_NORM);
WriteByte (MSG_MULTICAST, SVC_TEMPENTITY); WriteBytes (MSG_MULTICAST, SVC_TEMPENTITY, TE_GUNSHOT, 3.0);
WriteByte (MSG_MULTICAST, TE_GUNSHOT); WriteCoordV (MSG_MULTICAST, org);
WriteByte (MSG_MULTICAST, 3);
WriteCoord (MSG_MULTICAST, org_x);
WriteCoord (MSG_MULTICAST, org_y);
WriteCoord (MSG_MULTICAST, org_z);
multicast (org, MULTICAST_PVS); multicast (org, MULTICAST_PVS);
} }
} }

View file

@ -3,11 +3,7 @@
void(vector org, float damage) SpawnBlood = void(vector org, float damage) SpawnBlood =
{ {
WriteByte (MSG_MULTICAST, SVC_TEMPENTITY); WriteBytes (MSG_MULTICAST, SVC_TEMPENTITY, TE_BLOOD, 1.0);
WriteByte (MSG_MULTICAST, TE_BLOOD); WriteCoordV (MSG_MULTICAST, org);
WriteByte (MSG_MULTICAST, 1);
WriteCoord (MSG_MULTICAST, org_x);
WriteCoord (MSG_MULTICAST, org_y);
WriteCoord (MSG_MULTICAST, org_z);
multicast (org, MULTICAST_PVS); multicast (org, MULTICAST_PVS);
}; };