|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Classes | |
| class | Callback |
| Callbacks may be added to zero or more callback chains. More... | |
| class | CallbackChain |
| Callback chains contain zero or more callbacks. More... | |
| class | CallbackChain::CallbackNode |
| class | Mutator |
Typedefs | |
| using | mutatorfunc_t = bool(int) |
Enumerations | |
| enum | { MUTATOR_REMOVING , MUTATOR_ADDING , MUTATOR_ROLLING_BACK } |
Functions | |
| void | _mutPrintFail (string cb, string func) |
| bool | Mutator_Add (Mutator mut) |
| void | Mutator_Remove (Mutator mut) |
| bool | Mutator_SendEntity (entity this, entity to, int sf) |
| server mutators activate corresponding client mutators for all clients | |
| NET_HANDLE (Mutator, bool isNew) | |
| void | NET_Mutator_Remove (entity this) |
| void | RegisterCallbacks () |
| void | RegisterHooks () |
| STATIC_INIT (Mutators) | |
| STATIC_INIT_LATE (Mutators) | |
Variables | |
| bool | CallbackChain_ReturnValue |
| const int | CBC_ORDER_ANY = 4 |
| const int | CBC_ORDER_EXCLUSIVE = 3 |
| const int | CBC_ORDER_FIRST = 1 |
| const int | CBC_ORDER_LAST = 2 |
| bool | m_added |
| bool | mutator_log = false |
| #define _MUTATOR_CALLBACK | ( | name, | |
| func ) |
| #define _MUTATOR_CALLHOOK | ( | id, | |
| ... ) |
| #define _MUTATOR_HANDLE_PARAMS | ( | type, | |
| id ) |
| #define _MUTATOR_HANDLE_POPOUT | ( | type, | |
| id ) |
| #define _MUTATOR_HANDLE_POPTMP | ( | type, | |
| id ) |
| #define _MUTATOR_HANDLE_PREPARE | ( | type, | |
| id ) |
| #define _MUTATOR_HANDLE_PUSHOUT | ( | type, | |
| id ) |
| #define _MUTATOR_HANDLE_PUSHTMP | ( | type, | |
| id ) |
| #define _MUTATOR_HOOKABLE | ( | id, | |
| params ) |
Definition at line 130 of file base.qh.
| #define _MUTATOR_IS_ENABLED | ( | this | ) |
| #define _REGISTER_MUTATOR | ( | id, | |
| dependence, | |||
| cname ) |
Definition at line 280 of file base.qh.
| #define MUTATOR_ADD | ( | name | ) |
| #define MUTATOR_CALLHOOK | ( | id, | |
| ... ) |
Definition at line 143 of file base.qh.
Referenced by accuracy_isgooddamage(), AnnouncerOption(), AppendItemcodes(), bot_fixcount(), bot_shouldattack(), buff_Touch(), buffs_BuffModel_Customize(), bumblebee_gunner_enter(), bumblebee_gunner_exit(), calculate_player_respawn_time(), ChatBubbleThink(), CheatImpulse(), CheckRules_World(), ClientCommand_spectate(), ClientConnect(), ClientDisconnect(), ClientInit_SendEntity(), ClientKill_Now(), ClientKill_TeamChange(), CommonCommand_editmob(), CopyBody(), CSQCModel_AutoTagIndex_Apply(), CSQCPlayer_ModelAppearance_Apply(), Damage(), DecodeLevelParms(), Draw_GrapplingHook(), Draw_ShowNames(), DrawReticle(), Drop_Special_Items(), fireBullet_falloff(), FireGrapplingHook(), FixClientCvars(), FixPlayermodel(), formatmessage(), frag_centermessage_override(), GameCommand(), GameLogInit(), get_model_parameters(), GetCvars(), GetPlayerLimit(), GetPressedKeys(), getrecords(), GetResourceLimit(), GiveFrags(), GiveResource(), GiveResourceWithLimit(), GrapplingHookThink(), havocbot_aim(), havocbot_chooserole(), HUD_Contents(), HUD_Crosshair(), HUD_Damage(), HUD_Draw(), HUD_InfoMessages(), HUD_Physics(), HUD_Powerups(), HUD_RaceTimer(), HUD_Radar(), HUD_Score(), HUD_StrafeHUD(), HUD_Vote(), IMPULSE(), Item_IsDefinitionAllowed(), Item_Model(), Item_RespawnCountdown(), Item_ScheduleRespawnIn(), Item_Sound(), Item_Touch(), KillPlayerForTeamChange(), LocalCommand_hud(), M_Model(), MainWindow_configureMainWindow(), Monster_Damage(), monster_dropitem(), Monster_FindTarget(), Monster_Miniboss_Setup(), Monster_Move(), Monster_Remove(), Monster_Respawn_Check(), Monster_Spawn_Setup(), Monster_ValidTarget(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_damage(), nade_translocate_boom(), NET_HANDLE(), NET_HANDLE(), NET_HANDLE(), net_handle_ServerWelcome(), NextLevel(), Obituary(), Physics_UpdateStats(), player_anim(), player_powerups(), player_regen(), Player_SetTeamIndex(), PlayerDamage(), PlayerJump(), PlayerPreThink(), PlayerScore_Add(), PlayerScore_Clear(), PlayerUseKey(), PM_ClientMovement_UpdateStatus(), Portal_TeleportPlayer(), PRECACHE(), PutClientInServer(), PutObserverInServer(), PutPlayerInServer(), race_SendTime(), RandomItems_GetRandomItemClassName(), readlevelcvars(), readplayerstartcvars(), ReadyRestart(), reset_map(), sandbox_Database_Save(), sandbox_ObjectFunction_Think(), Say(), Scoreboard_AccuracyStats_WouldDraw(), Scoreboard_Draw(), Scoreboard_ItemStats_WouldDraw(), Scoreboard_WouldDraw(), SendWelcomeMessage(), SetChangeParms(), SetDefaultAlpha(), SetNewParms(), SetResource(), skeleton_loadinfo(), Spawn_Score(), spawnfunc(), Spectate(), SpectateCopy(), SpectateNext(), SpectatePrev(), spritelookupcolor(), spritelookupicon(), spritelookuptext(), StartFrame(), StartItem(), SV_OnEntityPreSpawnFunction(), SV_ParseClientCommand(), sys_phys_update(), TakeResource(), TakeResourceWithLimit(), TeamBalance_CheckAllowedTeams(), TeamBalance_FindBestTeams(), TeamBalance_GetPlayerForTeamSwitch(), TeamBalance_GetTeamCounts(), turret_checkfire(), turret_fire(), turret_fusionreactor_firecheck(), turret_initialize(), turret_think(), turret_validate_target(), URI_Get_Callback(), vehicle_initialize(), vehicles_enter(), vehicles_exit(), vehicles_touch(), View_EventChase(), viewmodel_draw(), VoteCommand_parse(), W_Arc_Attack_Bolt(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), W_DecreaseAmmo(), W_Devastator_Attack(), W_Devastator_DoRemoteExplode(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_HLAC_Attack(), W_HLAC_Attack2(), W_Hook_Attack2(), W_IsWeaponThrowable(), W_MineLayer_Attack(), W_Model(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), W_PlayStrengthSound(), W_Porto_Attack(), W_PrepareExplosionByDamage(), W_Reload(), W_RocketMinsta_Attack(), W_Seeker_Fire_Flac(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), W_Sound(), W_ThrowWeapon(), W_WeaponRateFactor(), W_WeaponSpeedFactor(), want_weapon(), WantEventchase(), WaypointSprite_Customize(), WaypointSprite_SendEntity(), weapon_defaultspawnfunc(), weaponLocked(), weaponUseForbidden(), and WinningCondition_Scores().
| #define MUTATOR_HOOK | ( | cb, | |
| func, | |||
| order ) |
Definition at line 354 of file base.qh.
| #define MUTATOR_HOOKABLE | ( | id, | |
| params ) |
| #define MUTATOR_HOOKFUNCTION | ( | ... | ) |
| #define MUTATOR_HOOKFUNCTION_2 | ( | mut, | |
| cb ) |
Definition at line 339 of file base.qh.
| #define MUTATOR_HOOKFUNCTION_3 | ( | mut, | |
| cb, | |||
| order ) |
Definition at line 342 of file base.qh.
| #define MUTATOR_IS_ENABLED | ( | this | ) |
Definition at line 193 of file base.qh.
Referenced by bumblebee_pilot_frame(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), player_powerups(), RandomItems_ReplaceMapItem(), and RandomItems_SpawnLootItem().
| #define MUTATOR_ONADD if (mode == MUTATOR_ADDING) |
Definition at line 309 of file base.qh.
Referenced by REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), and REGISTER_MUTATOR().
| #define MUTATOR_ONREMOVE if (mode == MUTATOR_REMOVING) |
Definition at line 310 of file base.qh.
Referenced by REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), and REGISTER_MUTATOR().
| #define MUTATOR_ONROLLBACK_OR_REMOVE if (mode == MUTATOR_REMOVING || mode == MUTATOR_ROLLING_BACK) |
Definition at line 311 of file base.qh.
Referenced by REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), and REGISTER_MUTATOR().
| #define MUTATOR_REMOVE | ( | name | ) |
| #define MUTATOR_RETURNVALUE CallbackChain_ReturnValue |
Definition at line 328 of file base.qh.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| #define MUTATOR_STATIC | ( | ) |
Definition at line 313 of file base.qh.
Referenced by REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), and REGISTER_MUTATOR().
| #define REGISTER_MUTATOR | ( | ... | ) |
Definition at line 295 of file base.qh.
Referenced by REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), REGISTER_MUTATOR(), and REGISTER_MUTATOR().
| #define REGISTER_MUTATOR_2 | ( | id, | |
| dependence ) |
| #define REGISTER_MUTATOR_3 | ( | id, | |
| dependence, | |||
| cname ) |
| using mutatorfunc_t = bool(int) |
| anonymous enum |
| Enumerator | |
|---|---|
| MUTATOR_REMOVING | |
| MUTATOR_ADDING | |
| MUTATOR_ROLLING_BACK | |
Definition at line 237 of file base.qh.
References backtrace, error, LOG_TRACEF, MUTATOR_ADDING, mutator_log, MUTATOR_ROLLING_BACK, Mutator_SendEntity(), and Net_LinkEntity().
Referenced by STATIC_INIT_LATE().
Definition at line 260 of file base.qh.
References backtrace, error, LOG_TRACEF, mutator_log, MUTATOR_REMOVING, and Net_UnlinkEntity().
Referenced by NET_Mutator_Remove().
server mutators activate corresponding client mutators for all clients
Definition at line 200 of file base.qh.
References entity(), MSG_ENTITY, registered_id, WriteHeader, and WriteString().
Referenced by Mutator_Add().
Definition at line 217 of file base.qh.
References FOREACH, LOG_WARNF, make_pure, mutator_log, NET_Mutator_Remove(), netname, ReadString, and WITH.
Definition at line 210 of file base.qh.
References entity(), FOREACH, mutator_log, Mutator_Remove(), netname, and WITH.
Referenced by NET_HANDLE().
| void RegisterCallbacks | ( | ) |
| void RegisterHooks | ( | ) |
| STATIC_INIT | ( | Mutators | ) |
Definition at line 299 of file base.qh.
References RegisterCallbacks(), and RegisterHooks().
| STATIC_INIT_LATE | ( | Mutators | ) |
Definition at line 305 of file base.qh.
References _MUTATOR_IS_ENABLED, FOREACH, and Mutator_Add().
| bool CallbackChain_ReturnValue |
Definition at line 15 of file base.qh.
Referenced by CallbackChain::CallbackChain_Call().
| const int CBC_ORDER_ANY = 4 |
Definition at line 13 of file base.qh.
Referenced by CallbackChain::CallbackChain_Add(), and CallbackChain::CallbackChain_Remove().
| const int CBC_ORDER_EXCLUSIVE = 3 |
Definition at line 12 of file base.qh.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| const int CBC_ORDER_FIRST = 1 |
Definition at line 10 of file base.qh.
Referenced by CallbackChain::CallbackChain_Add(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| const int CBC_ORDER_LAST = 2 |
Definition at line 11 of file base.qh.
Referenced by CallbackChain::CallbackChain_Add(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 189 of file base.qh.
Referenced by Mutator_Add(), Mutator_Remove(), NET_HANDLE(), and NET_Mutator_Remove().