|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "tuba.qh"Go to the source code of this file.
Macros | |
| #define | MAX_TUBANOTES 32 |
| #define | TUBA_STARTNOTE(i, n) |
Functions | |
| void | Ent_TubaNote_StopSound (entity this) |
| void | Ent_TubaNote_Think (entity this) |
| void | Ent_TubaNote_UpdateSound (entity this) |
| NET_HANDLE (ENT_CLIENT_TUBANOTE, bool isNew) | |
| PRECACHE (Tuba) | |
| void | tubasound (entity e, bool restart) |
| int | W_Tuba_GetNote (entity pl, int hittype) |
| bool | W_Tuba_HasPlayed (entity pl,.entity weaponentity, string melody, int instrument, bool ignorepitch, float mintempo, float maxtempo) |
| void | W_Tuba_NoteOff (entity this) |
| void | W_Tuba_NoteOn (entity actor,.entity weaponentity, float hittype) |
| bool | W_Tuba_NoteSendEntity (entity this, entity to, int sf) |
| void | W_Tuba_NoteThink (entity this) |
Variables | |
| const int | TUBA_INSTRUMENTS = 3 |
| vector | tuba_lastnotes [MAX_TUBANOTES] |
| float | tuba_lastnotes_cnt |
| float | tuba_lastnotes_last |
| const int | TUBA_MAX = 27 |
| const int | TUBA_MIN = -18 |
| entity | tuba_note |
| int | Tuba_PitchStep |
| float | tuba_smoketime |
| #define MAX_TUBANOTES 32 |
Definition at line 8 of file tuba.qc.
Referenced by W_Tuba_HasPlayed(), and W_Tuba_NoteOff().
| #define TUBA_STARTNOTE | ( | i, | |
| n ) |
Definition at line 433 of file tuba.qc.
Referenced by PRECACHE(), and tubasound().
Definition at line 491 of file tuba.qc.
References autocvar_cl_tuba_fadetime, CH_TUBA_SINGLE, enemy, entity(), frametime, nextthink, sound, time, and tubasound().
Referenced by NET_HANDLE().
Definition at line 512 of file tuba.qc.
References autocvar_cl_tuba_volume, bound(), enemy, entity(), tuba_instrument, tubasound(), and VOL_BASE.
Referenced by NET_HANDLE().
| NET_HANDLE | ( | ENT_CLIENT_TUBANOTE | , |
| bool | isNew ) |
Definition at line 527 of file tuba.qc.
References enemy, Ent_TubaNote_StopSound(), Ent_TubaNote_Think(), Ent_TubaNote_UpdateSound(), ReadByte(), ReadVector, setthink, time, tuba_instrument, tuba_note, and Tuba_PitchStep.
| PRECACHE | ( | Tuba | ) |
Definition at line 577 of file tuba.qc.
References autocvar_cl_tuba_pitchstep, checkextension(), LOG_WARN, precache_sound(), pymod(), TUBA_INSTRUMENTS, TUBA_MAX, TUBA_MIN, Tuba_PitchStep, and TUBA_STARTNOTE.
Definition at line 441 of file tuba.qc.
References _sound, autocvar_cl_tuba_attenuation, CH_TUBA_SINGLE, cos(), entity(), M_PI_2, pymod(), sin(), speed2, string_null, TUBA_MAX, TUBA_MIN, Tuba_PitchStep, and TUBA_STARTNOTE.
Referenced by Ent_TubaNote_Think(), and Ent_TubaNote_UpdateSound().
Definition at line 141 of file tuba.qc.
References CS(), entity(), HITTYPE_SECONDARY, movement, NUM_TEAM_2, NUM_TEAM_4, PHYS_INPUT_BUTTON_CROUCH, PHYS_INPUT_BUTTON_JUMP, and teamplay.
Referenced by W_Tuba_NoteOn().
| bool W_Tuba_HasPlayed | ( | entity | pl, |
| .entity | weaponentity, | ||
| string | melody, | ||
| int | instrument, | ||
| bool | ignorepitch, | ||
| float | mintempo, | ||
| float | maxtempo ) |
Definition at line 13 of file tuba.qc.
References argv(), entity(), floor(), max(), MAX_TUBANOTES, min(), stof(), tokenize_console, tuba_lastnotes, tuba_lastnotes_cnt, and vector.
Referenced by trigger_magicear_processmessage().
Definition at line 104 of file tuba.qc.
References bound(), bprint(), cnt, entity(), MAX_TUBANOTES, NULL, owner, spawnshieldtime, strcat(), string_null, time, trigger_magicear_processmessage_forallears(), tuba_instrument, tuba_lastnotes, tuba_lastnotes_cnt, tuba_lastnotes_last, tuba_note, vec3, and weaponentity_fld.
Referenced by W_Tuba_NoteOn(), and W_Tuba_NoteThink().
Definition at line 266 of file tuba.qc.
References entity(), gettaginfo, HITTYPE_BOUNCE, HITTYPE_SECONDARY, HITTYPE_SOUND, Net_LinkEntity(), NULL, org, radius, RadiusDamage(), Send_Effect(), setthink, time, tuba_instrument, tuba_note, tuba_smoketime, v_forward, v_right, v_up, vector, W_SetupShot, W_Tuba_GetNote(), W_Tuba_NoteOff(), W_Tuba_NoteSendEntity(), W_Tuba_NoteThink(), W_WeaponRateFactor(), and WEP_CVAR.
Definition at line 209 of file tuba.qc.
References cnt, entity(), MSG_ENTITY, msg_entity, MSG_ONE, origin, realowner, sound_allowed(), tuba_instrument, WriteByte(), WriteChar(), and WriteHeader.
Referenced by W_Tuba_NoteOn().
Definition at line 231 of file tuba.qc.
References autocvar_snd_soundradius, entity(), fabs(), FOREACH_CLIENT, IS_REAL_CLIENT, max(), nextthink, normalize(), origin, realowner, SendFlags, teleport_time, time, vector, vlen(), W_Tuba_NoteOff(), and WEP_CVAR.
Referenced by W_Tuba_NoteOn().
| const int TUBA_INSTRUMENTS = 3 |
Definition at line 437 of file tuba.qc.
Referenced by PRECACHE().
| vector tuba_lastnotes[MAX_TUBANOTES] |
Definition at line 11 of file tuba.qc.
Referenced by W_Tuba_HasPlayed(), and W_Tuba_NoteOff().
| float tuba_lastnotes_cnt |
Definition at line 10 of file tuba.qc.
Referenced by W_Tuba_HasPlayed(), and W_Tuba_NoteOff().
| float tuba_lastnotes_last |
Definition at line 9 of file tuba.qc.
Referenced by W_Tuba_NoteOff().
| const int TUBA_MAX = 27 |
Definition at line 436 of file tuba.qc.
Referenced by PRECACHE(), and tubasound().
| const int TUBA_MIN = -18 |
Definition at line 435 of file tuba.qc.
Referenced by PRECACHE(), and tubasound().
| entity tuba_note |
Definition at line 5 of file tuba.qc.
Referenced by bot_cmd_debug_assert_canfire(), NET_HANDLE(), W_Tuba_NoteOff(), and W_Tuba_NoteOn().
| int Tuba_PitchStep |
Definition at line 439 of file tuba.qc.
Referenced by NET_HANDLE(), PRECACHE(), and tubasound().
| float tuba_smoketime |
Definition at line 6 of file tuba.qc.
Referenced by W_Tuba_NoteOn().