mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-23 20:52:29 +00:00
22 lines
453 B
C++
22 lines
453 B
C++
// QW CenterPrinting hack
|
|
// these functions are only used if in normal quake
|
|
|
|
#include "defs.qh"
|
|
|
|
|
|
// replaces punchangle in QW
|
|
void(float psize, entity p) KickPlayer =
|
|
{
|
|
msg_entity = p;
|
|
if (psize > -3)
|
|
WriteByte (MSG_ONE, SVC_SMALLKICK);
|
|
else // (size < -3)
|
|
WriteByte (MSG_ONE, SVC_BIGKICK);
|
|
};
|
|
|
|
void() muzzleflash =
|
|
{
|
|
WriteByte (MSG_MULTICAST, SVC_MUZZLEFLASH);
|
|
WriteEntity (MSG_MULTICAST, self);
|
|
multicast (self.origin, MULTICAST_PVS);
|
|
};
|