Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
projectile.qh
Go to the documentation of this file.
1#pragma once
2
4
6
7entityclass(Projectile);
8classfield(Projectile).int traileffect;
9
10classfield(Projectile).vector iorigin1, iorigin2;
11classfield(Projectile).float spawntime;
12classfield(Projectile).vector trail_oldorigin;
13classfield(Projectile).float trail_oldtime;
14classfield(Projectile).float fade_time, fade_rate;
15
16classfield(Projectile).float alphamod;
17classfield(Projectile).int count; // set if clientside projectile
18classfield(Projectile).int cnt; // sound index
19classfield(Projectile).float gravity;
20classfield(Projectile).int snd_looping;
21classfield(Projectile).bool silent;
22
23void SUB_Stop(entity this, entity toucher);
24
26
28
29void Projectile_Draw(entity this);
30
31void loopsound(entity e, int ch, Sound samp, float vol, float attn);
32
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float cnt
Definition powerups.qc:24
float count
Definition powerups.qc:22
float gravity
Definition items.qh:17
float spawntime
Definition items.qh:16
int snd_looping
bool silent
vector iorigin1
#define entityclass(...)
Definition oo.qh:52
#define classfield(name)
Definition oo.qh:57
void Projectile_Draw(entity this)
Definition projectile.qc:80
void Projectile_DrawTrail(entity this, vector to)
Definition projectile.qc:30
bool autocvar_cl_projectiles_sloppy
Definition projectile.qh:5
fade_rate
Definition projectile.qh:14
iorigin2
Definition projectile.qh:10
void loopsound(entity e, int ch, Sound samp, float vol, float attn)
void Ent_RemoveProjectile(entity this)
void SUB_Stop(entity this, entity toucher)
Definition projectile.qc:18
void Projectile_ResetTrail(entity this, vector to)
Definition projectile.qc:24
vector
Definition self.qh:92
entity entity toucher
Definition self.qh:72
float fade_time
Definition common.qh:23