|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "casings.qh"#include <common/replicate.qh>#include <common/util.qh>#include <common/physics/movetypes/movetypes.qh>#include "rubble.qh"Go to the source code of this file.
Functions | |
| void | Casing_Damage (entity this, float thisdmg, int hittype, vector org, vector thisforce) |
| void | Casing_Delete (entity this) |
| void | Casing_Draw (entity this) |
| void | Casing_Touch (entity this, entity toucher) |
| classfield (Casing) .float alpha | |
| entityclass (Casing) | |
| NET_HANDLE (casings, bool isNew) | |
| REPLICATE (cvar_cl_casings, bool, "cl_casings") | |
| REPLICATE (cvar_r_drawviewmodel, int, "r_drawviewmodel") | |
| Sound | SND_BRASS_RANDOM () |
| Sound | SND_CASINGS_RANDOM () |
| SOUND (BRASS1, W_Sound("brass1")) | |
| SOUND (BRASS2, W_Sound("brass2")) | |
| SOUND (BRASS3, W_Sound("brass3")) | |
| SOUND (CASINGS1, W_Sound("casings1")) | |
| SOUND (CASINGS2, W_Sound("casings2")) | |
| SOUND (CASINGS3, W_Sound("casings3")) | |
| void | SpawnCasing (vector vel, vector ang, int casingtype, entity casingowner,.entity weaponentity) |
Definition at line 147 of file casings.qc.
References entity(), org, UNSET_ONGROUND, vector, and velocity.
Referenced by NET_HANDLE().
Definition at line 61 of file casings.qc.
References entity().
Referenced by NET_HANDLE().
Definition at line 66 of file casings.qc.
References alpha, ALPHA_MIN_VISIBLE, autocvar_cl_casings_sloppy, autocvar_cl_casings_ticrate, bound(), cnt, drawmask, entity(), IS_ONGROUND, Movetype_Physics_MatchTicrate(), renderflags, time, and trace_startsolid.
Referenced by NET_HANDLE().
Definition at line 113 of file casings.qc.
References ATTEN_LARGE, CH_SHOTS, entity(), nextthink, Q3SURFACEFLAG_NOIMPACT, silent, SND_BRASS_RANDOM(), SND_CASINGS_RANDOM(), SOLID_BSP, sound, state, time, toucher, trace_dphitq3surfaceflags, trace_ent, vdist, velocity, and VOL_BASE.
Referenced by NET_HANDLE().
| entityclass | ( | Casing | ) |
| NET_HANDLE | ( | casings | , |
| bool | isNew ) |
Definition at line 155 of file casings.qc.
References autocvar_chase_active, autocvar_cl_casings_bronze_time, autocvar_cl_casings_maxcount, autocvar_cl_casings_shell_time, autocvar_cl_gunoffset, Casing_Damage(), Casing_Delete(), Casing_Draw(), Casing_Touch(), CasingsNGibs, decompressShortVector(), g_drawables, IL_PUSH(), LimitedChildrenRubble(), ListNewChildRubble(), MASK_NORMAL, MOVETYPE_BOUNCE, NULL, prandomvec(), ReadByte(), ReadVector, set_movetype(), setmodel, settouch, SOLID_TRIGGER, time, v_forward, v_right, and v_up.
| Sound SND_BRASS_RANDOM | ( | ) |
Definition at line 103 of file casings.qc.
References floor(), prandom(), and REGISTRY_GET.
Referenced by Casing_Touch().
| Sound SND_CASINGS_RANDOM | ( | ) |
Definition at line 109 of file casings.qc.
References floor(), prandom(), and REGISTRY_GET.
Referenced by Casing_Touch().
| SOUND | ( | BRASS1 | , |
| W_Sound("brass1") | ) |
| SOUND | ( | BRASS2 | , |
| W_Sound("brass2") | ) |
| SOUND | ( | BRASS3 | , |
| W_Sound("brass3") | ) |
| SOUND | ( | CASINGS1 | , |
| W_Sound("casings1") | ) |
| SOUND | ( | CASINGS2 | , |
| W_Sound("casings2") | ) |
| SOUND | ( | CASINGS3 | , |
| W_Sound("casings3") | ) |
| void SpawnCasing | ( | vector | vel, |
| vector | ang, | ||
| int | casingtype, | ||
| entity | casingowner, | ||
| .entity | weaponentity ) |
Definition at line 17 of file casings.qc.
References ang, checkpvs(), compressShortVector(), CS_CVAR, entity(), FOREACH_CLIENT, IS_SPEC, msg_entity, MSG_ONE, org, sound_allowed(), spawnorigin, v_forward, v_right, v_up, vector, WriteByte(), WriteHeader, and WriteShort().
Referenced by W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_Rifle_FireBullet(), and W_Shotgun_Attack().