Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
csqcprojectile.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CSQCProjectile (entity e, float clientanimate, float type, float docull)
void CSQCProjectile_Check (entity e)
void UpdateCSQCProjectile (entity e)
void UpdateCSQCProjectileAfterTeleport (entity e)

Variables

float csqcprojectile_clientanimate

Function Documentation

◆ CSQCProjectile()

void CSQCProjectile ( entity e,
float clientanimate,
float type,
float docull )

References entity().

◆ CSQCProjectile_Check()

void CSQCProjectile_Check ( entity e)

Definition at line 77 of file csqcprojectile.qc.

78{
79 if(e.csqcprojectile_clientanimate)
80 if(IS_ONGROUND(e))
81 if(e.origin != e.csqcprojectile_oldorigin)
83 e.csqcprojectile_oldorigin = e.origin;
84}
void UpdateCSQCProjectile(entity e)
#define IS_ONGROUND(s)
Definition movetypes.qh:16

References entity(), IS_ONGROUND, and UpdateCSQCProjectile().

Referenced by StartFrame().

◆ UpdateCSQCProjectile()

◆ UpdateCSQCProjectileAfterTeleport()

void UpdateCSQCProjectileAfterTeleport ( entity e)

Definition at line 119 of file csqcprojectile.qc.

120{
122 {
123 // send new origin data
124 e.SendFlags |= 0x01;
125 // send full data as the projectile may need resetting
126 // this is a workaround for client-side projectiles erroneously calling their SUB_Stop touch function occasionally
127 // when passing through a warpzone
128 e.SendFlags |= 2;
129 // mark as teleported
130 e.SendFlags |= 0x08;
131 }
132}

References CSQCProjectile_SendEntity(), entity(), and getSendEntity.

Referenced by TeleportPlayer(), and WarpZone_PostTeleportPlayer_Callback().

Variable Documentation

◆ csqcprojectile_clientanimate

float csqcprojectile_clientanimate

Definition at line 3 of file csqcprojectile.qh.

Referenced by CSQCProjectile_SendEntity(), and W_Devastator_Think().