Xonotic
|
#include "util.qh"
Go to the source code of this file.
Variables | |
float | FindConnectedComponent_processing |
float | lengthLogTable [128] |
float | shutdown_running |
string | to_execute_next_frame |
string | wordwrap_buffer |
const string | XENCODE_2 = "xX" |
const string | XENCODE_22 = "0123456789abcdefABCDEF" |
Definition at line 2044 of file util.qc.
References blink_synced().
Referenced by HUD_HealthArmor(), HUD_Mod_Keepaway(), HUD_Mod_KH(), and Item_ItemsTime_Allow().
ERASEABLE float blink_synced | ( | float | base, |
float | range, | ||
float | freq, | ||
float | start_time, | ||
int | start_pos | ||
) |
Definition at line 406 of file util.qc.
References error(), floor(), invertLengthLog(), vectoangles(), vector(), and vlen().
Referenced by STATIC_INIT().
Definition at line 696 of file util.qc.
References cvar_set(), cvar_string(), entity(), g_saved_cvars, IL_EACH, IL_PUSH(), LOG_INFOF, LOG_TRACE, new_pure, and strzone().
Referenced by _MapInfo_Parse_Settemp(), CampaignPreInit(), CSQCPlayer_PostUpdate(), CSQCPlayer_Remove(), GameCommand_bot_cmd(), GameCommand_setbots(), GenericCommand_settemp(), NET_HANDLE(), REGISTER_MUTATOR(), View_EventChase(), and View_Ortho().
int cvar_settemp_restore | ( | ) |
Definition at line 736 of file util.qc.
References classname, cvar_set(), entity(), find(), FOREACH_ENTITY_CLASS, LOG_INFOF, NULL, and print().
Referenced by DoNextMapOverride(), GenericCommand_settemp_restore(), and MapInfo_LoadMap().
Definition at line 1143 of file util.qc.
References bound(), DEATH_IS, HITTYPE_ARMORPIERCE, v, and vector().
Referenced by NET_HANDLE(), TrueAimCheck(), and W_Model().
void depthfirst | ( | entity | start, |
.entity | up, | ||
.entity | downleft, | ||
.entity | right, | ||
void(entity, entity) | funcPre, | ||
void(entity, entity) | funcPost, | ||
entity | pass | ||
) |
Definition at line 281 of file util.qc.
References count_ordinal(), entity(), floor(), SFL_HIDE_ZERO, SFL_RANK, and SFL_TIME.
Referenced by forAllDescendants(), and GameCommand().
Definition at line 206 of file util.qc.
References draw_currentSkin, strcat(), strlen(), and substring().
Referenced by draw_BorderPicture(), draw_ButtonPicture(), draw_Picture(), draw_PictureSize(), draw_PreloadPicture(), draw_PreloadPictureWithFlags(), draw_setMousePointer(), draw_VertButtonPicture(), and MapVote_DrawMapItem().
void execute_next_frame | ( | ) |
Definition at line 1612 of file util.qc.
References localcmd, and strfree.
Referenced by CSQC_UpdateView(), m_draw(), and StartFrame().
Definition at line 845 of file util.qc.
References IS_DIGIT, IS_HEXDIGIT, strlen(), strstrofs, and substring().
Referenced by getWrappedLine(), getWrappedLineLen(), and minigame_getWrappedLine().
void FindConnectedComponent | ( | entity | e, |
.entity | fld, | ||
findNextEntityNearFunction_t | nxt, | ||
isConnectedFunction_t | iscon, | ||
entity | pass | ||
) |
Definition at line 1630 of file util.qc.
References AnglesTransform_FromAngles(), AnglesTransform_FromVAngles(), AnglesTransform_ToAngles(), AnglesTransform_ToVAngles(), bound(), CONTENT_EMPTY, CONTENT_LAVA, CONTENT_SKY, CONTENT_SLIME, CONTENT_SOLID, CONTENT_WATER, DPCONTENTS_BODY, DPCONTENTS_LAVA, DPCONTENTS_NODROP, DPCONTENTS_OPAQUE, DPCONTENTS_SKY, DPCONTENTS_SLIME, DPCONTENTS_SOLID, DPCONTENTS_WATER, entity(), ERASEABLE, error(), fixedmakevectors, fixedvectoangles2, gettagindex, gettaginfo, intermission_running, IS_PLAYER, max(), min(), MOVETYPE_FLY, MOVETYPE_FOLLOW, MOVETYPE_NONE, NULL, PROJECTILE_MAKETRIGGER, set_movetype(), setorigin(), SOLID_NOT, strcat(), strunzone(), strzone(), substring(), TC, Team_ColorCode(), teamplay, to, v_forward, v_right, v_up, vector(), and vlen().
Referenced by LinkDoors().
Definition at line 485 of file util.qc.
References argv(), floor(), ftos(), REGISTRY_GET, stof(), strcat(), strlen(), substring(), tokenize_console, and WEP_FLAG_SPECIALATTACK.
Referenced by W_FixWeaponOrder().
Definition at line 1245 of file util.qc.
References ftos(), and strcat().
Referenced by get_model_parameters(), UpdatePlayerSounds(), and XonoticPlayerModelSelector_loadModels().
Definition at line 1258 of file util.qc.
References car(), cdr(), fgets(), FILE_READ, fopen(), get_model_datafilename(), get_model_parameters_age, get_model_parameters_bone_aim, get_model_parameters_bone_aimweight, get_model_parameters_bone_upperbody, get_model_parameters_bone_weapon, get_model_parameters_desc, get_model_parameters_fixbone, get_model_parameters_hidden, get_model_parameters_modelname, get_model_parameters_modelskin, get_model_parameters_name, get_model_parameters_sex, get_model_parameters_species, get_model_parameters_weight, MAX_AIM_BONES, MUTATOR_CALLHOOK, SPECIES_ALIEN, SPECIES_ANIMAL, SPECIES_HUMAN, SPECIES_RESERVED, SPECIES_ROBOT_RUSTY, SPECIES_ROBOT_SHINY, SPECIES_ROBOT_SOLID, stof(), strcat(), string_null, and substring().
Referenced by player_getspecies(), skeleton_loadinfo(), and XonoticPlayerModelSelector_loadModels().
vector get_shotvelocity | ( | vector | myvel, |
vector | mydir, | ||
float | spd, | ||
float | newton_style, | ||
float | mi, | ||
float | ma | ||
) |
Definition at line 1081 of file util.qc.
References bound(), solve_quadratic(), and vector().
Referenced by W_CalculateProjectileVelocity().
string getcurrentmod | ( | ) |
Definition at line 1191 of file util.qc.
References argv(), cvar_string(), and tokenize_console.
Referenced by resolvemod().
string getWrappedLine | ( | float | w, |
vector | theFontSize, | ||
textLengthUpToWidth_widthFunction_t | tw | ||
) |
Definition at line 880 of file util.qc.
References find_last_color_code(), getWrappedLine_remaining, strcat(), string_null, strlen(), substring(), and textLengthUpToWidth().
Referenced by GameTypeVote_DrawGameTypeItem(), InfoMessages_drawstring(), Label_draw(), Label_recalcPositionWithText(), m_tooltip(), rewrapCampaign(), and XonoticTextBox_setText().
string getWrappedLineLen | ( | float | w, |
textLengthUpToLength_lenFunction_t | tw | ||
) |
Definition at line 918 of file util.qc.
References find_last_color_code(), getWrappedLine_remaining, strcat(), string_null, strlen(), substring(), and textLengthUpToLength().
Referenced by Say().
Definition at line 343 of file util.qc.
References floor().
Referenced by compressShortVector().
Definition at line 972 of file util.qc.
References MapInfo_Type_ToString(), strcat(), string_null, strlen(), strstrofs, and substring().
Referenced by Cmd_Scoreboard_SetFields(), and SV_OnEntityPreSpawnFunction().
Definition at line 527 of file util.qc.
References argv(), strcat(), strlen(), substring(), and tokenize_console.
Referenced by W_NameWeaponOrder(), and W_NumberWeaponOrder().
Definition at line 1203 of file util.qc.
References car(), cdr(), ERASEABLE, strlen(), and substring().
Referenced by _MapInfo_Parse_Settemp().
Definition at line 1620 of file util.qc.
References strcat(), and strcpy.
Referenced by GenericCommand_nextframe().
vector solve_shotdirection | ( | vector | myorg, |
vector | myvel, | ||
vector | eorg, | ||
vector | evel, | ||
float | spd, | ||
float | newton_style | ||
) |
Definition at line 1018 of file util.qc.
References normalize(), solve_quadratic(), and vector().
STATIC_INIT | ( | compressShortVector | ) |
Definition at line 438 of file util.qc.
References compressShortVector(), cvar(), decompressShortVector(), entity(), ftos(), LOG_FATALF, LOG_TRACE, trace_fraction, vector(), and vtos().
Definition at line 540 of file util.qc.
References argv(), MapInfo_Get_ByName(), MapInfo_Map_maxs, MapInfo_Map_mins, mapname, MOVE_WORLDONLY, NULL, strcasecmp, strcat(), strcpy, strlen(), substring(), tokenize_console, trace_endpos, trace_startsolid, vector(), and world.
Referenced by WeaponsList_MoveDown_Click(), WeaponsList_MoveUp_Click(), XonoticPlayList_mouseDrag(), and XonoticWeaponsList_mouseDrag().
float textLengthUpToLength | ( | string | theText, |
float | maxWidth, | ||
textLengthUpToLength_lenFunction_t | w | ||
) |
Definition at line 809 of file util.qc.
References checkColorCode(), floor(), strlen(), substring(), and vector().
Referenced by getWrappedLineLen(), PlayerPreThink(), and textShortenToLength().
float textLengthUpToWidth | ( | string | theText, |
float | maxWidth, | ||
vector | theSize, | ||
textLengthUpToWidth_widthFunction_t | w | ||
) |
Definition at line 773 of file util.qc.
References checkColorCode(), floor(), strlen(), substring(), and vector().
Referenced by draw_TextLengthUpToWidth(), getWrappedLine(), minigame_getWrappedLine(), and textShortenToWidth().
string textShortenToLength | ( | string | theText, |
float | maxWidth, | ||
textLengthUpToLength_lenFunction_t | tw | ||
) |
Definition at line 964 of file util.qc.
References strcat(), substring(), and textLengthUpToLength().
string textShortenToWidth | ( | string | theText, |
float | maxWidth, | ||
vector | theFontSize, | ||
textLengthUpToWidth_widthFunction_t | tw | ||
) |
Definition at line 956 of file util.qc.
References strcat(), substring(), and textLengthUpToWidth().
Referenced by Draw_ShowNames(), draw_TextShortenToWidth(), HUD_Chat(), HUD_Quickmenu_DrawEntry(), minigame_drawcolorcodedstring_trunc(), minigame_drawstring_trunc(), Scoreboard_DrawOthers(), Scoreboard_FixColumnWidth(), and Scoreboard_Rankings_Draw().
Definition at line 1376 of file util.qc.
References prvm_language, and substring().
Referenced by _getcommandkey(), and XonoticKeyBinder_drawListBoxItem().
Definition at line 170 of file util.qc.
References entity(), NULL, sprint(), strcat(), to, wordwrap_buffer, wordwrap_buffer_put(), and wordwrap_cb().
Referenced by STATIC_INIT().
Definition at line 165 of file util.qc.
References strcat().
Referenced by wordwrap().
Definition at line 215 of file util.qc.
References strlen(), strunzone(), strzone(), and substring().
Referenced by STATIC_INIT(), and wordwrap().
Definition at line 1546 of file util.qc.
References strlen(), strstrofs, and substring().
Definition at line 1531 of file util.qc.
References floor(), strcat(), and substring().
string to_execute_next_frame |
string wordwrap_buffer |
Definition at line 163 of file util.qc.
Referenced by wordwrap().