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 71 of file csqcprojectile.qc.

72{
73 if(e.csqcprojectile_clientanimate)
74 if(IS_ONGROUND(e))
75 if(e.origin != e.csqcprojectile_oldorigin)
77 e.csqcprojectile_oldorigin = e.origin;
78}
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 114 of file csqcprojectile.qc.

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

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().