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

Go to the source code of this file.

Functions

void Draw_VaporizerBeam_trace_callback (vector start, vector hit, vector end)
 NET_HANDLE (TE_CSQC_VAPORBEAMPARTICLE, bool isNew)
void SendCSQCVaporizerBeamParticle (entity player, int hit)
void VaporizerBeam_Draw (entity this)
void W_RocketMinsta_Attack (entity actor,.entity weaponentity, int mode)
void W_RocketMinsta_Explosion (entity actor,.entity weaponentity, vector loc)
void W_RocketMinsta_Laser_Damage (entity this, entity directhitentity)
void W_RocketMinsta_Laser_Explode (entity this, entity directhitentity)
void W_RocketMinsta_Laser_Explode_use (entity this, entity actor, entity trigger)
void W_RocketMinsta_Laser_Touch (entity this, entity toucher)
void W_Vaporizer_Attack (Weapon thiswep, entity actor,.entity weaponentity)

Variables

float autocvar_cl_vaporizerbeam_colorboost = 0.7
float autocvar_cl_vaporizerbeam_lifetime = 0.8
bool autocvar_cl_vaporizerbeam_particle = false
bool autocvar_cl_vaporizerbeam_teamcolor = true
float Draw_VaporizerBeam_trace_callback_a
vector Draw_VaporizerBeam_trace_callback_rgb
float Draw_VaporizerBeam_trace_callback_rnd
string Draw_VaporizerBeam_trace_callback_tex
vector vorg1
vector vorg2

Function Documentation

◆ Draw_VaporizerBeam_trace_callback()

void Draw_VaporizerBeam_trace_callback ( vector start,
vector hit,
vector end )

Definition at line 31 of file vaporizer.qc.

32{
34 for (int i = 0; i < Draw_VaporizerBeam_trace_callback_a; ++i)
36 Draw_VaporizerBeam_trace_callback_rnd += (0.25 / 8) * vlen(hit - start);
37}
vector view_origin
Definition main.qh:109
void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg)
Definition draw.qh:11
const float DRAWFLAG_NORMAL
vector WarpZone_TransformOrigin(entity wz, vector v)
Definition common.qc:509
entity WarpZone_trace_transform
Definition common.qh:37
float vlen(vector v)
float min(float f,...)
vector
Definition self.qh:92
vector Draw_VaporizerBeam_trace_callback_rgb
Definition vaporizer.qc:28
string Draw_VaporizerBeam_trace_callback_tex
Definition vaporizer.qc:26
float Draw_VaporizerBeam_trace_callback_rnd
Definition vaporizer.qc:27
float Draw_VaporizerBeam_trace_callback_a
Definition vaporizer.qc:29

References Draw_CylindricLine(), Draw_VaporizerBeam_trace_callback_a, Draw_VaporizerBeam_trace_callback_rgb, Draw_VaporizerBeam_trace_callback_rnd, Draw_VaporizerBeam_trace_callback_tex, DRAWFLAG_NORMAL, min(), vector, view_origin, vlen(), WarpZone_trace_transform, and WarpZone_TransformOrigin().

Referenced by VaporizerBeam_Draw().

◆ NET_HANDLE()

NET_HANDLE ( TE_CSQC_VAPORBEAMPARTICLE ,
bool isNew )

Definition at line 70 of file vaporizer.qc.

71{
72 Net_Accept(vortex_beam);
73 setthink(this, SUB_Remove);
75 this.draw = VaporizerBeam_Draw;
76 if (isNew)
77 IL_PUSH(g_drawables, this);
78 this.drawmask = MASK_NORMAL;
79
80 this.vorg1 = ReadVector();
81 this.vorg2 = ReadVector();
82 this.cnt = ReadByte();
83 int myowner = ReadByte();
84 this.owner = playerslots[myowner - 1];
85 this.sv_entnum = myowner;
86
87 //pointparticles(EFFECT_VORTEX_MUZZLEFLASH, this.vorg1, normalize(this.vorg2 - this.vorg1) * 1000, 1);
88
90 {
93 : WEP_VAPORIZER.m_color;
94
96 WarpZone_TrailParticles_WithMultiplier(NULL, particleeffectnum(((this.cnt) ? EFFECT_VAPORIZER_BEAM_HIT : EFFECT_VAPORIZER_BEAM)), this.vorg1, this.vorg2, 1, PARTICLES_USECOLOR);
97 this.draw = func_null;
98 this.drawmask = MASK_NORMAL;
99 delete(this);
100 }
101
102 return true;
103}
float cnt
Definition powerups.qc:24
entity playerslots[255]
Definition main.qh:84
IntrusiveList g_drawables
Definition main.qh:91
entity owner
Definition main.qh:87
int sv_entnum
Definition main.qh:186
#define colormapPaletteColor(c, isPants)
Definition color.qh:5
float drawmask
vector particles_colormin
const float MASK_NORMAL
float time
float nextthink
vector particles_colormax
float PARTICLES_USECOLOR
void SUB_Remove(entity this)
Remove entity.
Definition defer.qh:13
#define particleeffectnum(e)
Definition effect.qh:3
int entcs_GetClientColors(int i)
Definition ent_cs.qh:115
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define ReadVector()
Definition net.qh:350
int ReadByte()
void WarpZone_TrailParticles_WithMultiplier(entity own, float eff, vector org, vector end, float f, int boxflags)
Definition common.qc:489
float bound(float min, float value, float max)
var void func_null()
#define NULL
Definition post.qh:14
#define setthink(e, f)
float autocvar_cl_vaporizerbeam_lifetime
Definition vaporizer.qc:23
bool autocvar_cl_vaporizerbeam_teamcolor
Definition vaporizer.qc:21
void VaporizerBeam_Draw(entity this)
Definition vaporizer.qc:40
bool autocvar_cl_vaporizerbeam_particle
Definition vaporizer.qc:22
vector vorg1
Definition vaporizer.qc:39
vector vorg2
Definition vaporizer.qc:39

References autocvar_cl_vaporizerbeam_lifetime, autocvar_cl_vaporizerbeam_particle, autocvar_cl_vaporizerbeam_teamcolor, bound(), cnt, colormapPaletteColor, drawmask, entcs_GetClientColors(), func_null(), g_drawables, IL_PUSH(), MASK_NORMAL, nextthink, NULL, owner, particleeffectnum, particles_colormax, particles_colormin, PARTICLES_USECOLOR, playerslots, ReadByte(), ReadVector, setthink, SUB_Remove(), sv_entnum, time, VaporizerBeam_Draw(), vector, vorg1, and WarpZone_TrailParticles_WithMultiplier().

◆ SendCSQCVaporizerBeamParticle()

void SendCSQCVaporizerBeamParticle ( entity player,
int hit )

Definition at line 8 of file vaporizer.qc.

9{
11 WriteHeader(MSG_BROADCAST, TE_CSQC_VAPORBEAMPARTICLE);
12 WriteVector(MSG_BROADCAST, w_shotorg);
13 WriteVector(MSG_BROADCAST, v);
16}
vector trace_endpos
#define WriteHeader(to, id)
Definition net.qh:265
vector WarpZone_UnTransformOrigin(entity wz, vector v)
Definition common.qc:544
void WriteByte(float data, float dest, float desto)
float MSG_BROADCAST
Definition menudefs.qc:55
#define etof(e)
Definition misc.qh:25
vector w_shotorg
Definition tracing.qh:19

References entity(), etof, MSG_BROADCAST, trace_endpos, vector, w_shotorg, WarpZone_trace_transform, WarpZone_UnTransformOrigin(), WriteByte(), and WriteHeader.

Referenced by W_Vaporizer_Attack().

◆ VaporizerBeam_Draw()

void VaporizerBeam_Draw ( entity this)

Definition at line 40 of file vaporizer.qc.

41{
42 //draw either the old v2.3 beam or the new beam
44
45 string tex = (this.cnt)
46 ? "particles/gauntletbeam"
47 : "particles/lgbeam";
48 vector rgb = WEP_VAPORIZER.m_color;
50 rgb = colormapPaletteColor(entcs_GetClientColors(this.sv_entnum - 1) & 0x0F, true);
51
53
54 float fail = this.nextthink - time;
55
62
63 /*if (!MUTATOR_CALLHOOK(Particles_VaporizerBeam, this.vorg1, this.vorg2))
64 if (autocvar_cl_particles_oldvortexbeam)
65 WarpZone_TrailParticles_WithMultiplier(NULL, particleeffectnum(EFFECT_VORTEX_BEAM_OLD), this.vorg1, this.vorg2, 1, PARTICLES_USEALPHA | PARTICLES_USEFADE);
66 else
67 WarpZone_TrailParticles_WithMultiplier(NULL, particleeffectnum(EFFECT_VORTEX_BEAM), this.vorg1, this.vorg2, 1, PARTICLES_USEALPHA | PARTICLES_USEFADE);*/
68}
float particles_alphamax
float particles_alphamin
float particles_fade
void WarpZone_TraceBox_ThroughZone(vector org, vector mi, vector ma, vector end, float nomonsters, entity forent, entity zone, WarpZone_trace_callback_t cb)
Definition common.qc:212
#define MOVE_NOTHING
Definition common.qh:33
string string_null
Definition nil.qh:9
void Draw_VaporizerBeam_trace_callback(vector start, vector hit, vector end)
Definition vaporizer.qc:31
float autocvar_cl_vaporizerbeam_colorboost
Definition vaporizer.qc:24

References autocvar_cl_vaporizerbeam_colorboost, autocvar_cl_vaporizerbeam_teamcolor, bound(), cnt, colormapPaletteColor, Draw_VaporizerBeam_trace_callback(), Draw_VaporizerBeam_trace_callback_a, Draw_VaporizerBeam_trace_callback_rgb, Draw_VaporizerBeam_trace_callback_rnd, Draw_VaporizerBeam_trace_callback_tex, entcs_GetClientColors(), entity(), MOVE_NOTHING, nextthink, NULL, particles_alphamax, particles_alphamin, particles_fade, string_null, sv_entnum, time, vector, vorg1, and WarpZone_TraceBox_ThroughZone().

Referenced by NET_HANDLE().

◆ W_RocketMinsta_Attack()

void W_RocketMinsta_Attack ( entity actor,
.entity weaponentity,
int mode )

Definition at line 222 of file vaporizer.qc.

223{
224 makevectors(actor.v_angle);
225
226 entity proj;
227 int laser_count = max(1, autocvar_g_rm_laser_count);
228 int total = (mode == 0) ? laser_count : 1;
229 Sound snd = (mode == 0) ? SND_CRYLINK_FIRE : SND_ELECTRO_FIRE2; // WEAPONTODO multiple references to other weapons here!
230 W_SetupShot_ProjectileSize(actor, weaponentity, '0 0 -3', '0 0 -3', false, 2, snd, CH_WEAPON_A, autocvar_g_rm_laser_damage, WEP_ELECTRO.m_id);
231
232 // uses electro effects
233 W_MuzzleFlash(WEP_ELECTRO, actor, weaponentity, w_shotorg, w_shotdir);
234
235 for (int counter = 0; counter < total; ++counter)
236 {
237 proj = new(plasma_prim);
238 proj.owner = proj.realowner = actor;
239 proj.bot_dodge = true;
240 proj.bot_dodgerating = autocvar_g_rm_laser_damage;
243 proj.nextthink = time + autocvar_g_rm_laser_lifetime;
245 proj.projectiledeathtype = WEP_ELECTRO.m_id;
246 proj.weaponentity_fld = weaponentity;
247 setorigin(proj, w_shotorg);
248
249 proj.rm_laser_count = total;
250
251 //W_SetupProjectileVelocity(proj, autocvar_g_rm_laser_speed, spread * (rndspread ? random() : 1) * autocvar_g_rm_laser_speed);
252
254 if (mode == 0)
255 {
257 //W_SETUPPROJECTILEVELOCITY(proj, g_balance_minstanex_laser);
258 proj.velocity = (w_shotdir + (((counter + 0.5) / total) * 2 - 1) * v_right * spread) * cvar("g_rm_laser_speed");
259 proj.velocity.z += cvar("g_rm_laser_zspread") * (random() - 0.5);
260 }
261 else
262 proj.velocity = w_shotdir * autocvar_g_rm_laser_speed;
263 proj.velocity = W_CalculateProjectileVelocity(actor, actor.velocity, proj.velocity, true);
264 proj.angles = vectoangles(proj.velocity);
266 setsize(proj, '0 0 -3', '0 0 -3');
267 proj.flags = FL_PROJECTILE;
268 IL_PUSH(g_projectiles, proj);
269 IL_PUSH(g_bot_dodge, proj);
270 proj.missile_flags = MIF_SPLASH;
271
273
274 MUTATOR_CALLHOOK(EditProjectile, actor, proj);
275 }
276}
IntrusiveList g_bot_dodge
Definition api.qh:150
#define MUTATOR_CALLHOOK(id,...)
Definition base.qh:143
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int FL_PROJECTILE
Definition constants.qh:85
vector v_right
void CSQCProjectile(entity e, float clientanimate, int type, float docull)
float cvar(string name)
float random(void)
vector vectoangles(vector v)
float max(float f,...)
void set_movetype(entity this, int mt)
Definition movetypes.qc:4
const int MOVETYPE_BOUNCEMISSILE
Definition movetypes.qh:140
#define makevectors
Definition post.qh:21
const int PROJECTILE_ROCKETMINSTA_LASER
#define settouch(e, f)
Definition self.qh:73
void adaptor_think2use_hittype_splash(entity this)
Definition common.qc:106
const int MIF_SPLASH
Definition common.qh:46
IntrusiveList g_projectiles
Definition common.qh:58
#define PROJECTILE_MAKETRIGGER(e)
Definition common.qh:34
const int CH_WEAPON_A
Definition sound.qh:7
float autocvar_g_rm_laser_spread_random
float autocvar_g_rm_laser_spread
float autocvar_g_rm_laser_lifetime
float autocvar_g_rm_laser_count
float autocvar_g_rm_laser_damage
float autocvar_g_rm_laser_speed
vector W_CalculateProjectileVelocity(entity actor, vector pvelocity, vector mvelocity, float forceAbsolute)
Definition tracing.qc:174
vector w_shotdir
Definition tracing.qh:20
#define W_SetupShot_ProjectileSize(ent, wepent, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype)
Definition tracing.qh:30
void W_RocketMinsta_Laser_Explode_use(entity this, entity actor, entity trigger)
Definition vaporizer.qc:207
void W_RocketMinsta_Laser_Touch(entity this, entity toucher)
Definition vaporizer.qc:212
void W_MuzzleFlash(Weapon thiswep, entity actor,.entity weaponentity, vector shotorg, vector shotdir)
Definition all.qc:715

References adaptor_think2use_hittype_splash(), autocvar_g_rm_laser_count, autocvar_g_rm_laser_damage, autocvar_g_rm_laser_lifetime, autocvar_g_rm_laser_speed, autocvar_g_rm_laser_spread, autocvar_g_rm_laser_spread_random, CH_WEAPON_A, CSQCProjectile(), cvar(), entity(), FL_PROJECTILE, g_bot_dodge, g_projectiles, IL_PUSH(), makevectors, max(), MIF_SPLASH, MOVETYPE_BOUNCEMISSILE, MUTATOR_CALLHOOK, PROJECTILE_MAKETRIGGER, PROJECTILE_ROCKETMINSTA_LASER, random(), set_movetype(), setthink, settouch, time, v_right, vectoangles(), W_CalculateProjectileVelocity(), W_MuzzleFlash(), W_RocketMinsta_Laser_Explode_use(), W_RocketMinsta_Laser_Touch(), W_SetupShot_ProjectileSize, w_shotdir, and w_shotorg.

◆ W_RocketMinsta_Explosion()

void W_RocketMinsta_Explosion ( entity actor,
.entity weaponentity,
vector loc )

Definition at line 108 of file vaporizer.qc.

109{
110 if (accuracy_canbegooddamage(actor))
111 accuracy_add(actor, WEP_DEVASTATOR, autocvar_g_rm_damage, 0, 0); // add to fired
112
113 entity dmgent = spawn();
114 dmgent.owner = dmgent.realowner = actor;
115 setorigin(dmgent, loc);
116 RadiusDamage(dmgent, actor,
120 NULL,
121 NULL,
123 WEP_DEVASTATOR.m_id | HITTYPE_SPLASH,
124 weaponentity,
125 NULL
126 );
127
128 delete(dmgent);
129}
void accuracy_add(entity this, Weapon w, float fired, float hit, float real)
update accuracy stats
Definition accuracy.qc:102
bool accuracy_canbegooddamage(entity attacker)
if damage were to occur, would accuracy_isgooddamage be able to return true?
Definition accuracy.qc:154
#define spawn
float RadiusDamage(entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype,.entity weaponentity, entity directhitentity)
Definition damage.qc:943
const int HITTYPE_SPLASH
Definition all.qh:30
float autocvar_g_rm_radius
float autocvar_g_rm_damage
Definition sv_instagib.qh:9
float autocvar_g_rm_force
float autocvar_g_rm_edgedamage

References accuracy_add(), accuracy_canbegooddamage(), autocvar_g_rm_damage, autocvar_g_rm_edgedamage, autocvar_g_rm_force, autocvar_g_rm_radius, entity(), HITTYPE_SPLASH, NULL, RadiusDamage(), spawn, and vector.

Referenced by W_Vaporizer_Attack().

◆ W_RocketMinsta_Laser_Damage()

void W_RocketMinsta_Laser_Damage ( entity this,
entity directhitentity )

Definition at line 176 of file vaporizer.qc.

177{
178 int laser_count = max(1, this.rm_laser_count);
179 float laser_force = autocvar_g_rm_laser_force / laser_count;
180 float laser_damage = autocvar_g_rm_laser_damage / laser_count;
181 RadiusDamage(this, this.realowner,
182 laser_damage,
183 laser_damage,
185 NULL,
186 NULL,
187 laser_force,
189 this.weaponentity_fld,
190 directhitentity
191 );
192}
int projectiledeathtype
Definition common.qh:21
float autocvar_g_rm_laser_radius
float autocvar_g_rm_laser_force
entity realowner
int rm_laser_count
Definition vaporizer.qh:72
entity weaponentity_fld

References autocvar_g_rm_laser_damage, autocvar_g_rm_laser_force, autocvar_g_rm_laser_radius, entity(), max(), NULL, projectiledeathtype, RadiusDamage(), realowner, rm_laser_count, and weaponentity_fld.

Referenced by W_RocketMinsta_Laser_Explode(), and W_RocketMinsta_Laser_Touch().

◆ W_RocketMinsta_Laser_Explode()

void W_RocketMinsta_Laser_Explode ( entity this,
entity directhitentity )

Definition at line 194 of file vaporizer.qc.

195{
196 if (directhitentity.takedamage == DAMAGE_AIM
197 && IS_PLAYER(directhitentity) && DIFF_TEAM(this.realowner, directhitentity) && !IS_DEAD(directhitentity)
198 && IsFlying(directhitentity))
199 Send_Notification(NOTIF_ONE, this.realowner, MSG_ANNCE, ANNCE_ACHIEVEMENT_ELECTROBITCH);
200
201 this.event_damage = func_null;
202 this.takedamage = DAMAGE_NO;
203 W_RocketMinsta_Laser_Damage(this, directhitentity);
204 delete(this);
205}
bool IsFlying(entity this)
Definition player.qc:843
#define IS_DEAD(s)
Definition player.qh:244
#define IS_PLAYER(s)
Definition player.qh:242
void Send_Notification(NOTIF broadcast, entity client, MSG net_type, Notification net_name,...count)
Definition all.qc:1573
const int DAMAGE_NO
Definition subs.qh:79
const int DAMAGE_AIM
Definition subs.qh:81
float takedamage
Definition subs.qh:78
#define DIFF_TEAM(a, b)
Definition teams.qh:242
void W_RocketMinsta_Laser_Damage(entity this, entity directhitentity)
Definition vaporizer.qc:176

References DAMAGE_AIM, DAMAGE_NO, DIFF_TEAM, entity(), func_null(), IS_DEAD, IS_PLAYER, IsFlying(), realowner, Send_Notification(), takedamage, and W_RocketMinsta_Laser_Damage().

Referenced by W_RocketMinsta_Laser_Explode_use().

◆ W_RocketMinsta_Laser_Explode_use()

void W_RocketMinsta_Laser_Explode_use ( entity this,
entity actor,
entity trigger )

Definition at line 207 of file vaporizer.qc.

208{
209 W_RocketMinsta_Laser_Explode(this, trigger); // we probably don't want trigger used here, but this matches closest to old behaviour
210}
void W_RocketMinsta_Laser_Explode(entity this, entity directhitentity)
Definition vaporizer.qc:194

References entity(), and W_RocketMinsta_Laser_Explode().

Referenced by W_RocketMinsta_Attack().

◆ W_RocketMinsta_Laser_Touch()

void W_RocketMinsta_Laser_Touch ( entity this,
entity toucher )

Definition at line 212 of file vaporizer.qc.

213{
215 //W_RocketMinsta_Laser_Explode ();
217 delete(this);
218}
entity entity toucher
Definition self.qh:72
#define PROJECTILE_TOUCH(e, t)
Definition common.qh:28

References entity(), PROJECTILE_TOUCH, toucher, and W_RocketMinsta_Laser_Damage().

Referenced by W_RocketMinsta_Attack().

◆ W_Vaporizer_Attack()

void W_Vaporizer_Attack ( Weapon thiswep,
entity actor,
.entity weaponentity )

Definition at line 131 of file vaporizer.qc.

132{
133 bool flying = IsFlying(actor); // do this BEFORE to make the trace values from FireRailgunBullet last
134 float vaporizer_damage = (WEP_CVAR_PRI(WEP_VAPORIZER, damage) > 0) ? WEP_CVAR_PRI(WEP_VAPORIZER, damage) : 10000;
135
136 W_SetupShot(actor, weaponentity, true, 0, SND_Null, CH_WEAPON_A, vaporizer_damage, thiswep.m_id);
137 // handle sound separately so we can change the volume
138 // added bonus: no longer plays the strength sound (strength gives no bonus to instakill anyway)
139 sound(actor, CH_WEAPON_A, SND_VAPORIZER_FIRE, VOL_BASE * 0.8, ATTEN_NORM);
140
141 yoda = 0;
142 impressive_hits = 0;
144 vaporizer_damage,
145 true,
146 WEP_CVAR_PRI(WEP_VAPORIZER, force),
147 WEP_CVAR_PRI(WEP_VAPORIZER, damagefalloff_mindist),
148 WEP_CVAR_PRI(WEP_VAPORIZER, damagefalloff_maxdist),
149 WEP_CVAR_PRI(WEP_VAPORIZER, damagefalloff_halflife),
150 WEP_CVAR_PRI(WEP_VAPORIZER, damagefalloff_forcehalflife),
151 thiswep.m_id
152 );
153
154 // do this now, as goodhits is disabled below
156 W_MuzzleFlash(thiswep, actor, weaponentity, w_shotorg, normalize(v - w_shotorg));
158
159 if (yoda && flying)
160 Send_Notification(NOTIF_ONE, actor, MSG_ANNCE, ANNCE_ACHIEVEMENT_YODA);
161 if (impressive_hits && actor.vaporizer_lasthit)
162 {
163 Send_Notification(NOTIF_ONE, actor, MSG_ANNCE, ANNCE_ACHIEVEMENT_IMPRESSIVE);
164 impressive_hits = 0; // only every second time
165 }
166
167 actor.vaporizer_lasthit = impressive_hits;
168
169 if (autocvar_g_rm
171 W_RocketMinsta_Explosion(actor, weaponentity, trace_endpos);
172
173 W_DecreaseAmmo(thiswep, actor, ((autocvar_g_instagib) ? 1 : WEP_CVAR_PRI(WEP_VAPORIZER, ammo)), weaponentity);
174}
int m_id
Definition weapon.qh:43
float Q3SURFACEFLAG_SKY
float trace_dphitq3surfaceflags
float Q3SURFACEFLAG_NOIMPACT
float yoda
Definition damage.qh:48
int impressive_hits
Definition damage.qh:49
vector normalize(vector v)
const float VOL_BASE
Definition sound.qh:36
const float ATTEN_NORM
Definition sound.qh:30
#define sound(e, c, s, v, a)
Definition sound.qh:52
float autocvar_g_rm
Definition sv_instagib.qh:8
bool autocvar_g_instagib
float ammo
Definition sv_turrets.qh:43
void FireRailgunBullet(entity this,.entity weaponentity, vector start, vector end, float bdamage, bool headshot_notify, float bforce, float mindist, float maxdist, float halflifedist, float forcehalflifedist, int deathtype)
Definition tracing.qc:231
#define W_SetupShot(ent, wepent, antilag, recoil, snd, chan, maxdamage, deathtype)
Definition tracing.qh:34
void SendCSQCVaporizerBeamParticle(entity player, int hit)
Definition vaporizer.qc:8
void W_RocketMinsta_Explosion(entity actor,.entity weaponentity, vector loc)
Definition vaporizer.qc:108
#define WEP_CVAR_PRI(wep, name)
Definition all.qh:338
int max_shot_distance
Definition weapon.qh:245
void W_DecreaseAmmo(Weapon wep, entity actor, float ammo_use,.entity weaponentity)

References ammo, ATTEN_NORM, autocvar_g_instagib, autocvar_g_rm, CH_WEAPON_A, entity(), FireRailgunBullet(), impressive_hits, IsFlying(), Weapon::m_id, max_shot_distance, normalize(), Q3SURFACEFLAG_NOIMPACT, Q3SURFACEFLAG_SKY, Send_Notification(), SendCSQCVaporizerBeamParticle(), sound, trace_dphitq3surfaceflags, trace_endpos, vector, VOL_BASE, W_DecreaseAmmo(), W_MuzzleFlash(), W_RocketMinsta_Explosion(), W_SetupShot, w_shotdir, w_shotorg, WarpZone_trace_transform, WarpZone_UnTransformOrigin(), WEP_CVAR_PRI, and yoda.

Variable Documentation

◆ autocvar_cl_vaporizerbeam_colorboost

float autocvar_cl_vaporizerbeam_colorboost = 0.7

Definition at line 24 of file vaporizer.qc.

Referenced by VaporizerBeam_Draw().

◆ autocvar_cl_vaporizerbeam_lifetime

float autocvar_cl_vaporizerbeam_lifetime = 0.8

Definition at line 23 of file vaporizer.qc.

Referenced by NET_HANDLE().

◆ autocvar_cl_vaporizerbeam_particle

bool autocvar_cl_vaporizerbeam_particle = false

Definition at line 22 of file vaporizer.qc.

Referenced by NET_HANDLE().

◆ autocvar_cl_vaporizerbeam_teamcolor

bool autocvar_cl_vaporizerbeam_teamcolor = true

Definition at line 21 of file vaporizer.qc.

Referenced by NET_HANDLE(), and VaporizerBeam_Draw().

◆ Draw_VaporizerBeam_trace_callback_a

float Draw_VaporizerBeam_trace_callback_a

Definition at line 29 of file vaporizer.qc.

Referenced by Draw_VaporizerBeam_trace_callback(), and VaporizerBeam_Draw().

◆ Draw_VaporizerBeam_trace_callback_rgb

vector Draw_VaporizerBeam_trace_callback_rgb

Definition at line 28 of file vaporizer.qc.

Referenced by Draw_VaporizerBeam_trace_callback(), and VaporizerBeam_Draw().

◆ Draw_VaporizerBeam_trace_callback_rnd

float Draw_VaporizerBeam_trace_callback_rnd

Definition at line 27 of file vaporizer.qc.

Referenced by Draw_VaporizerBeam_trace_callback(), and VaporizerBeam_Draw().

◆ Draw_VaporizerBeam_trace_callback_tex

string Draw_VaporizerBeam_trace_callback_tex

Definition at line 26 of file vaporizer.qc.

Referenced by Draw_VaporizerBeam_trace_callback(), and VaporizerBeam_Draw().

◆ vorg1

vector vorg1

Definition at line 39 of file vaporizer.qc.

Referenced by NET_HANDLE(), and VaporizerBeam_Draw().

◆ vorg2

vector vorg2

Definition at line 39 of file vaporizer.qc.