2001-07-17 05:58:10 +00:00
|
|
|
// QW CenterPrinting hack
|
|
|
|
// these functions are only used if in normal quake
|
|
|
|
|
2001-07-23 20:52:47 +00:00
|
|
|
#include "defs.qh"
|
|
|
|
|
2001-07-17 05:58:10 +00:00
|
|
|
|
|
|
|
// replaces punchangle in QW
|
|
|
|
void(float psize, entity p) KickPlayer =
|
|
|
|
{
|
|
|
|
msg_entity = p;
|
|
|
|
if (psize > -3)
|
2001-07-23 20:52:47 +00:00
|
|
|
WriteByte (MSG_ONE, SVC_SMALLKICK);
|
2001-07-17 05:58:10 +00:00
|
|
|
else // (size < -3)
|
2001-07-23 20:52:47 +00:00
|
|
|
WriteByte (MSG_ONE, SVC_BIGKICK);
|
2001-07-17 05:58:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void() muzzleflash =
|
|
|
|
{
|
2001-07-23 20:52:47 +00:00
|
|
|
WriteByte (MSG_MULTICAST, SVC_MUZZLEFLASH);
|
|
|
|
WriteEntity (MSG_MULTICAST, self);
|
|
|
|
multicast (self.origin, MULTICAST_PVS);
|
2001-07-17 05:58:10 +00:00
|
|
|
};
|