|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "log.qh"Go to the source code of this file.
Macros | |
| #define | BIT(n) |
| Only ever assign into the first 24 bits in QC (so max is BIT(23)). | |
| #define | BITS(n) |
| #define | BITSET(var, mask, flag) |
Enumerations | |
| enum | { OP_SET , OP_MIN , OP_MAX , OP_PLUS , OP_MINUS } |
Functions | |
| ERASEABLE bool | GiveBit (entity e,.int fld, int bit, int op, int val) |
| ERASEABLE bool | GiveValue (entity e,.int fld, int op, int val) |
| ERASEABLE int | lowestbit (int f) |
| ERASEABLE int | randombit (int bits) |
| ERASEABLE int | randombits (int bits, int k, bool error_return) |
| #define BIT | ( | n | ) |
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
QC converts the float to int, performs the bit operation, then converts it back. Assigning to the highest bits means some of the low ones might get lost due to float precision.
Definition at line 8 of file bits.qh.
Referenced by _entcs_send(), _GametypeFlags_FromGametype(), _WepSet_FromWeapon(), accuracy_add(), CA_CheckWinner(), CA_PreventStalemate(), ClientData_Send(), compressShotOrigin(), corner_send(), CPM_PM_Aircontrol(), CSQCModel_Hook_PostUpdate(), CSQCPlayer_ApplyBobbing(), CSQCPlayer_CalcRefdef(), ctf_DelayedInit(), ctf_FlagSetup(), Damage_DamageInfo(), decompressShotOrigin(), dom_spawnteams(), door_init_keys(), EliminatedPlayers_SendEntity(), Ent_WaypointSprite(), entcs_force_origin(), entcs_think(), g_clientmodel_dropbyspawnflags(), g_clientmodel_genericsendentity(), g_clientmodel_setcolormaptoactivator(), g_clientmodel_think(), g_model_setcolormaptoactivator(), get_team_list(), gettooltip(), GiveItems(), havocbot_goalrating_ons_controlpoints_attack(), HUD_Mod_CTF(), HUD_Physics(), HUD_StrafeHUD(), IL_INIT(), Inventory_Write(), Item_GiveTo(), kh_GetMissingTeams(), MapVote_Init(), MapVote_ReadMask(), MapVote_SendEntity(), MapVote_TouchMask(), MapVote_TouchVotes(), MapVote_Winner(), MapVote_WriteMask(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), Nagger_ReadyCounted(), Nagger_SendEntity(), Nagger_VoteChanged(), Nagger_VoteCountChanged(), nb_spawnteams(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), NumTeams(), ons_ControlPoint_CanBeLinked(), onslaught_updatelinks(), PlayerScore_Add(), PlayerScore_Clear(), PlayerScore_SendEntity(), PlayerScore_Set(), PM_check_specialcommand(), ReadEntcs(), relocate_spawnpoint(), Score_ClearAll(), ScoreInfo_Init(), SelectSpawnPoint(), set_dom_state(), setDependent_Check(), setDependentAND(), setDependentNOT(), setDependentOR(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), STATIC_INIT(), StatusEffects_Write(), SUB_UseTargets_Ex(), SurvivalStatuses_SendEntity(), tdm_DelayedInit(), Team_IndexToBit(), Team_TeamToBit(), TeamBalance_CheckAllowedTeams(), TeamScore_AddToTeam(), TeamScore_SendEntity(), tmayhem_DelayedInit(), TossGib(), trigger_common_write(), viewloc_PlayerPhysics(), W_GunAlign(), WarpZone_PostTeleportPlayer_Callback(), WarpZone_Touch(), WaypointSprite_Ping(), and WaypointSprite_UpdateTeamRadar().
| #define BITS | ( | n | ) |
Definition at line 9 of file bits.qh.
Referenced by Damage_DamageInfo(), dom_DelayedInit(), Ent_WaypointSprite(), entcs_attach(), freezetag_Initialize(), HUD_Physics(), kh_Initialize(), NET_HANDLE(), rc_SetLimits(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), STATIC_INIT(), tdm_DelayedInit(), TeamBalance_AutoBalanceBots(), tmayhem_DelayedInit(), and WaypointSprite_UpdateTeamRadar().
| #define BITSET | ( | var, | |
| mask, | |||
| flag ) |
Definition at line 11 of file bits.qh.
Referenced by corner_send(), CSQCModel_Hook_PostUpdate(), CSQCModel_Send(), CSQCPlayer_SetCamera(), GetPressedKeys(), Inventory_Write(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), PM_dodging_GetPressedKeys(), spawnfunc(), and StatusEffects_Write().
| anonymous enum |
Definition at line 85 of file bits.qh.
References entity(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, and OP_SET.
Referenced by GiveItems().
Definition at line 110 of file bits.qh.
References entity(), max(), min(), OP_MAX, OP_MIN, OP_MINUS, OP_PLUS, and OP_SET.
Definition at line 17 of file bits.qh.
Referenced by item_keys_keylist(), and spawnfunc().
Definition at line 28 of file bits.qh.
References random().
Referenced by randombits().
Definition at line 51 of file bits.qh.
References randombit().