|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/mutators/base.qh>Go to the source code of this file.
Macros | |
| #define | EV_AbortSpeedrun(i, o) |
| called when a speedrun is aborted and the player is teleported back to start position | |
| #define | EV_AccuracyTargetValid(i, o) |
| called when a target is checked for accuracy | |
| #define | EV_AddedPlayerScore(i, o) |
| #define | EV_AddPlayerScore(i, o) |
| #define | EV_AllowMobButcher(i, o) |
| called when an admin tries to kill all monsters return 1 to prevent spawning | |
| #define | EV_AllowMobSpawning(i, o) |
| called when a player tries to spawn a monster return 1 to prevent spawning NOTE: requires reason if disallowed | |
| #define | EV_AllowRocketJumping(i, o) |
| Allows disabling or enabling rocket jumping independently of balance, use the parameter to force a preferred setting. | |
| #define | EV_AutoJoinOnConnection(i, o) |
| returns true if client should be put as player on connection | |
| #define | EV_Bot_FixCount(i, o) |
| called when player triggered kill (or is changing teams), return error to not do anything | |
| #define | EV_BotShouldAttack(i, o) |
| called when a bot checks a target to attack return false to allow the bot to attack the target (inverted logic) | |
| #define | EV_BuffModel_Customize(i, o) |
| #define | EV_BuffTouch(i, o) |
| called at when a buff is touched. | |
| #define | EV_CalculateRespawnTime(i, o) |
| return true to skip respawn time calculations | |
| #define | EV_ChatMessage(i, o) |
| called when sending a chat message, ret argument can be changed to prevent the message | |
| #define | EV_ChatMessageTo(i, o) |
| return true to prevent sending a chat (private, team or regular) message from reaching a certain player | |
| #define | EV_CheckRules_World(i, o) |
| #define | EV_ClientCommand_FloodControl(i, o) |
| please read EV_SV_ParseClientCommand description before using return true to skip flood control on the given command | |
| #define | EV_ClientCommand_Spectate(i, o) |
| #define | EV_ClientConnect(i, o) |
| called at when a player connect | |
| #define | EV_ClientDisconnect(i, o) |
| called when a player disconnects | |
| #define | EV_ClientKill(i, o) |
| called when player triggered kill (or is changing teams), return error to not do anything | |
| #define | EV_ClientKill_Now(i, o) |
| called when player is about to be killed during kill command or changing teams | |
| #define | EV_ClientObituary(i, o) |
| called when showing an obituary for the player. | |
| #define | EV_CopyBody(i, o) |
| called when creating a clone of the player (usually for corpses that stay after the player has re-spawned) | |
| #define | EV_CustomizeWaypoint(i, o) |
| called every frame. | |
| #define | EV_Damage_Calculate(i, o) |
| called to adjust damage and force values which are applied to the player, used for e.g. | |
| #define | EV_DropSpecialItems(i, o) |
| #define | EV_EditProjectile(i, o) |
| can edit any "just fired" projectile | |
| #define | EV_FilterItem(i, o) |
| checks if the current item may be spawned (.items may be read and written to, as well as the ammo_ fields) return error to request removal | |
| #define | EV_FilterItemDefinition(i, o) |
| Check if items having the given definition are allowed to spawn. | |
| #define | EV_FireBullet_Hit(i, o) |
| called when a bullet has hit a target | |
| #define | EV_FixClientCvars(i, o) |
| #define | EV_FixPlayermodel(i, o) |
| #define | EV_ForbidDropCurrentWeapon(i, o) |
| returns true if dropping the current weapon shall not be allowed at any time including death | |
| #define | EV_ForbidPlayerScore_Clear(i, o) |
| returns 1 if clearing player score shall not be allowed | |
| #define | EV_ForbidRandomStartWeapons(i, o) |
| called when player spawns to determine whether to give them random start weapons. | |
| #define | EV_ForbidSpawn(i, o) |
| return true to prevent a spectator/observer to spawn as player | |
| #define | EV_ForbidThrowCurrentWeapon(i, o) |
| returns true if throwing the current weapon shall not be allowed | |
| #define | EV_ForbidWeaponUse(i, o) |
| return true to prevent weapon use for a player | |
| #define | EV_FormatMessage(i, o) |
| called when formatting a chat message to replace fancy functions | |
| #define | EV_FragCenterMessage(i, o) |
| allows overriding the frag centerprint messages | |
| #define | EV_FusionReactor_ValidTarget(i, o) |
| called when a fusion reactor is validating its target | |
| #define | EV_GetCvars(i, o) |
| is meant to call GetCvars_handle* for cvars this mutator needs from the client, e.g.: MUTATOR_HOOKFUNCTION(mymutator, GetCvars) { GetCvars_handleFloat(this, store, s, f, cvar_mycvar, "mycvar"); return false; } Usually you can just use REPLICATE instead of this hook, e.g.: REPLICATE(cvar_mycvar, int, "mycvar"); NOTE: requesting cvar values (get_cvars_f 0) is deprecated | |
| #define | EV_GetModelParams(i, o) |
| Called when getting the global parameters for a model. | |
| #define | EV_GetPlayerLimit(i, o) |
| Called when a player is trying to join, argument is the number of players allowed to join the match. | |
| #define | EV_GetPlayerStatus(i, o) |
| #define | EV_GetPressedKeys(i, o) |
| TODO change this into a general PlayerPostThink hook? | |
| #define | EV_GetRecords(i, o) |
| #define | EV_GetResourceLimit(i, o) |
| Called when the amount of entity resources changes. | |
| #define | EV_GiveFragsForKill(i, o) |
| called when someone was fragged by "self", and is expected to change frag_score to adjust scoring for the kill | |
| #define | EV_GiveResource(i, o) |
| Called when entity is being given some resource. | |
| #define | EV_GiveResourceWithLimit(i, o) |
| Called when entity is being given some resource with specified limit. | |
| #define | EV_GrappleHookThink(i, o) |
| #define | EV_HavocBot_Aim(i, o) |
| return true to use your own aim target (or none at all) | |
| #define | EV_HavocBot_ChooseRole(i, o) |
| #define | EV_HelpMePing(i, o) |
| called whenever a player uses impulse 33 (help me) in impulse.qc normally help me ping uses .waypointsprite_attachedforcarrier, but if your mutator uses something different then you can handle it in a special manner using this hook | |
| #define | EV_Item_RespawnCountdown(i, o) |
| called when an item is about to respawn | |
| #define | EV_Item_ScheduleRespawn(i, o) |
| return true to show a waypoint while the item is spawning | |
| #define | EV_Item_Spawn(i, o) |
| called for each item being spawned on a map, including dropped weapons return 1 to remove an item | |
| #define | EV_ItemModel(i, o) |
| called when an item model is about to be set, allows custom paths etc. | |
| #define | EV_ItemSound(i, o) |
| called when an item sound is about to be played, allows custom paths etc. | |
| #define | EV_ItemTouch(i, o) |
| called at when a item is touched. | |
| #define | EV_ItemTouched(i, o) |
| called after the item has been touched. | |
| #define | EV_LockWeapon(i, o) |
| return true to lock weapon (can't be used nor changed) for a player | |
| #define | EV_LogDeath_AppendItemCodes(i, o) |
| include special item codes for a death to the game log | |
| #define | EV_MakePlayerObserver(i, o) |
| called when a player becomes observer, after shared setup | |
| #define | EV_MonsterCheckBossFlag(i, o) |
| called when checking if a monster should be a miniboss return true to prevent the monster from becoming a miniboss | |
| #define | EV_MonsterDies(i, o) |
| called when a monster dies | |
| #define | EV_MonsterDropItem(i, o) |
| called when a monster is dropping loot | |
| #define | EV_MonsterModel(i, o) |
| called when a monster model is about to be set, allows custom paths etc. | |
| #define | EV_MonsterMove(i, o) |
| called when a monster moves returning true makes the monster stop | |
| #define | EV_MonsterRemove(i, o) |
| called when a monster dies | |
| #define | EV_MonsterRespawn(i, o) |
| called when a monster wants to respawn | |
| #define | EV_MonsterSpawn(i, o) |
| called when a monster spawns | |
| #define | EV_MonsterValidTarget(i, o) |
| called when validating a monster's target | |
| #define | EV_OnEntityPreSpawn(i, o) |
| return error to prevent entity spawn, or modify the entity | |
| #define | EV_Player_ChangedTeam(i, o) |
| Called after player has changed their team. | |
| #define | EV_Player_ChangeTeam(i, o) |
| Called before player changes their team. | |
| #define | EV_Player_ChangeTeamKill(i, o) |
| Called when player is about to be killed when changing teams. | |
| #define | EV_PlayerAnim(i, o) |
| called when setting the player's animation state | |
| #define | EV_PlayerDamage_SplitHealthArmor(i, o) |
| called when a player gets damaged to e.g. | |
| #define | EV_PlayerDamaged(i, o) |
| Called when a player is damaged Returns true if damage shouldn't be logged. | |
| #define | EV_PlayerDied(i, o) |
| called after a player died. | |
| #define | EV_PlayerDies(i, o) |
| called when a player dies to e.g. | |
| #define | EV_PlayerPhysics_PostUpdateStats(i, o) |
| called after physics stats are set on a player, allows post-initialization modifications | |
| #define | EV_PlayerPhysics_UpdateStats(i, o) |
| called before physics stats are set on a player, allows limited early customization | |
| #define | EV_PlayerPowerups(i, o) |
| called at the end of player_powerups() in client.qc, used for manipulating the values which are set by powerup items. | |
| #define | EV_PlayerPreThink(i, o) |
| runs in the event loop for players; is called for ALL player entities, also bots, also the dead, or spectators | |
| #define | EV_PlayerRegen(i, o) |
| called every player think frame return 1 to disable regen | |
| #define | EV_PlayerSpawn(i, o) |
| called when a player spawns as player, after shared setup, before their weapon is chosen (so items may be changed in here) | |
| #define | EV_PlayerUseKey(i, o) |
| called when the use key is pressed if MUTATOR_RETURNVALUE is 1, don't do anything return 1 if the use key actually did something | |
| #define | EV_PlayerWeaponSelect(i, o) |
| called after a player's weapon is chosen so it can be overriden here | |
| #define | EV_PlayHitsound(i, o) |
| called when a player dies to e.g. | |
| #define | EV_PortalTeleport(i, o) |
| called whenever a player goes through a portal gun teleport allows you to strip a player of an item if they go through the teleporter to help prevent cheating | |
| #define | EV_PreFormatMessage(i, o) |
| called before any formatting is applied, handy for tweaking the message before scripts get ahold of it | |
| #define | EV_PrepareExplosionByDamage(i, o) |
| #define | EV_PutClientInServer(i, o) |
| #define | EV_Race_FinalCheckpoint(i, o) |
| #define | EV_reset_map_global(i, o) |
| called in reset_map | |
| #define | EV_reset_map_players(i, o) |
| called in reset_map | |
| #define | EV_ResourceAmountChanged(i, o) |
| Called after the amount of resource of an entity has changed. | |
| #define | EV_ResourceWasted(i, o) |
| Called when there was an attempt to set entity resources higher than their limit. | |
| #define | EV_Sandbox_DragAllowed(i, o) |
| Return true to prevent sandbox objects from being dragged. | |
| #define | EV_Sandbox_EditAllowed(i, o) |
| Return true to prevent the player from editing sandbox objects with commands. | |
| #define | EV_SendWaypoint(i, o) |
| #define | EV_SetModname(i, o) |
| #define | EV_SetResource(i, o) |
| Called when the amount of resource of an entity changes. | |
| #define | EV_SetWeaponArena(i, o) |
| #define | EV_SetWeaponreplace(i, o) |
| #define | EV_ShowChatBubble(i, o) |
| Return true to hide the chat bubble above typing players. | |
| #define | EV_Spawn_Score(i, o) |
| called when a spawnpoint is being evaluated return 1 to make the spawnpoint unusable | |
| #define | EV_SpectateCopy(i, o) |
| copies variables for spectating "spectatee" to "this" | |
| #define | EV_SpectateNext(i, o) |
| #define | EV_SpectatePrev(i, o) |
| #define | EV_SpectateSet(i, o) |
| #define | EV_SV_ParseClientCommand(i, o) |
| called when a client command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo_SV_ParseClientCommand) { if (MUTATOR_RETURNVALUE) // command was already handled? | |
| #define | EV_SV_ParseServerCommand(i, o) |
| please read EV_SV_ParseClientCommand description before using | |
| #define | EV_TakeResource(i, o) |
| Called when some resource is being taken from an entity. | |
| #define | EV_TakeResourceWithLimit(i, o) |
| Called when some resource is being taken from an entity, with a limit. | |
| #define | EV_TeamBalance_CheckAllowedTeams(i, o) |
| Allows adjusting allowed teams. | |
| #define | EV_TeamBalance_FindBestTeams(i, o) |
| allows overriding the teams that will make the game most balanced if the player joins any of them. | |
| #define | EV_TeamBalance_GetPlayerForTeamSwitch(i, o) |
| Called during autobalance. | |
| #define | EV_TeamBalance_GetTeamCount(i, o) |
| allows overriding of team counts | |
| #define | EV_Turret_CheckFire(i, o) |
| return error to not attack | |
| #define | EV_TurretFire(i, o) |
| return error to not attack | |
| #define | EV_TurretSpawn(i, o) |
| return error to request removal | |
| #define | EV_TurretThink(i, o) |
| #define | EV_TurretValidateTarget(i, o) |
| #define | EV_URI_GetCallback(i, o) |
| #define | EV_VehicleEnter(i, o) |
| called when a player enters a vehicle allows mutators to set special settings in this event | |
| #define | EV_VehicleExit(i, o) |
| called when a player exits a vehicle allows mutators to set special settings in this event | |
| #define | EV_VehicleInit(i, o) |
| called when a vehicle initializes return true to remove the vehicle | |
| #define | EV_VehicleTouch(i, o) |
| called when a player touches a vehicle return true to stop player from entering the vehicle | |
| #define | EV_VoteCommand_Parse(i, o) |
| called when parsing a vote command. | |
| #define | EV_W_DecreaseAmmo(i, o) |
| Called by W_DecreaseAmmo. | |
| #define | EV_W_PlayStrengthSound(i, o) |
| Called when weapons are performing their attack, useful for applying bonus attack sounds. | |
| #define | EV_W_Reload(i, o) |
| Called by W_Reload. | |
| #define | EV_WantWeapon(i, o) |
| #define | EV_WeaponRateFactor(i, o) |
| allows changing attack rate | |
| #define | EV_WeaponSpeedFactor(i, o) |
| allows changing weapon speed (projectiles mostly) | |
Enumerations | |
| enum | { MUT_ITEMTOUCH_CONTINUE , MUT_ITEMTOUCH_RETURN , MUT_ITEMTOUCH_PICKUP } |
| enum | { MUT_FUSREAC_TARG_CONTINUE , MUT_FUSREAC_TARG_VALID , MUT_FUSREAC_TARG_INVALID } |
| enum | { MUT_ACCADD_VALID , MUT_ACCADD_INVALID , MUT_ACCADD_INDIFFERENT } |
| enum | { MUT_SPECCMD_CONTINUE , MUT_SPECCMD_RETURN , MUT_SPECCMD_FORCE } |
| enum | { MUT_SPECPREV_CONTINUE , MUT_SPECPREV_RETURN , MUT_SPECPREV_FOUND } |
| enum | { MUT_VOTEPARSE_CONTINUE , MUT_VOTEPARSE_SUCCESS , MUT_VOTEPARSE_INVALID , MUT_VOTEPARSE_UNACCEPTABLE } |
Variables | |
| float | get_cvars_f |
| string | get_cvars_s |
| string | monster_loot |
| #define EV_AbortSpeedrun | ( | i, | |
| o ) |
called when a speedrun is aborted and the player is teleported back to start position
Definition at line 720 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_AccuracyTargetValid | ( | i, | |
| o ) |
called when a target is checked for accuracy
Definition at line 854 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_AddedPlayerScore | ( | i, | |
| o ) |
| #define EV_AddPlayerScore | ( | i, | |
| o ) |
Definition at line 1028 of file events.qh.
Referenced by MUTATOR_HOOKABLE(), and MUTATOR_HOOKABLE().
| #define EV_AllowMobButcher | ( | i, | |
| o ) |
called when an admin tries to kill all monsters return 1 to prevent spawning
Definition at line 1063 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_AllowMobSpawning | ( | i, | |
| o ) |
called when a player tries to spawn a monster return 1 to prevent spawning NOTE: requires reason if disallowed
Definition at line 434 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_AllowRocketJumping | ( | i, | |
| o ) |
Allows disabling or enabling rocket jumping independently of balance, use the parameter to force a preferred setting.
Definition at line 1272 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_AutoJoinOnConnection | ( | i, | |
| o ) |
returns true if client should be put as player on connection
Definition at line 32 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Bot_FixCount | ( | i, | |
| o ) |
called when player triggered kill (or is changing teams), return error to not do anything
Definition at line 990 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_BotShouldAttack | ( | i, | |
| o ) |
called when a bot checks a target to attack return false to allow the bot to attack the target (inverted logic)
Definition at line 654 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_BuffModel_Customize | ( | i, | |
| o ) |
Definition at line 910 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_BuffTouch | ( | i, | |
| o ) |
called at when a buff is touched.
Called early, can edit buff properties.
Definition at line 917 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CalculateRespawnTime | ( | i, | |
| o ) |
return true to skip respawn time calculations
Definition at line 1232 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ChatMessage | ( | i, | |
| o ) |
called when sending a chat message, ret argument can be changed to prevent the message
Definition at line 1171 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ChatMessageTo | ( | i, | |
| o ) |
return true to prevent sending a chat (private, team or regular) message from reaching a certain player
Definition at line 1180 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CheckRules_World | ( | i, | |
| o ) |
Definition at line 1009 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientCommand_FloodControl | ( | i, | |
| o ) |
please read EV_SV_ParseClientCommand description before using return true to skip flood control on the given command
Definition at line 589 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientCommand_Spectate | ( | i, | |
| o ) |
Definition at line 998 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientConnect | ( | i, | |
| o ) |
called at when a player connect
Definition at line 843 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientDisconnect | ( | i, | |
| o ) |
called when a player disconnects
Definition at line 80 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientKill | ( | i, | |
| o ) |
called when player triggered kill (or is changing teams), return error to not do anything
Definition at line 943 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientKill_Now | ( | i, | |
| o ) |
called when player is about to be killed during kill command or changing teams
Definition at line 951 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ClientObituary | ( | i, | |
| o ) |
called when showing an obituary for the player.
return true to show nothing (workarounds may be needed)
Definition at line 103 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CopyBody | ( | i, | |
| o ) |
called when creating a clone of the player (usually for corpses that stay after the player has re-spawned)
Definition at line 1163 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CustomizeWaypoint | ( | i, | |
| o ) |
called every frame.
customizes the waypoint for spectators
Definition at line 271 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Damage_Calculate | ( | i, | |
| o ) |
called to adjust damage and force values which are applied to the player, used for e.g.
strength damage/force multiplier i'm not sure if I should change this around slightly (Naming of the entities, and also how they're done in g_damage).
Definition at line 459 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_DropSpecialItems | ( | i, | |
| o ) |
Definition at line 1054 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_EditProjectile | ( | i, | |
| o ) |
| #define EV_FilterItem | ( | i, | |
| o ) |
checks if the current item may be spawned (.items may be read and written to, as well as the ammo_ fields) return error to request removal
Definition at line 289 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FilterItemDefinition | ( | i, | |
| o ) |
Check if items having the given definition are allowed to spawn.
Return true to disallow spawning.
Definition at line 280 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FireBullet_Hit | ( | i, | |
| o ) |
called when a bullet has hit a target
Definition at line 876 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FixClientCvars | ( | i, | |
| o ) |
Definition at line 956 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FixPlayermodel | ( | i, | |
| o ) |
Definition at line 887 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidDropCurrentWeapon | ( | i, | |
| o ) |
returns true if dropping the current weapon shall not be allowed at any time including death
Definition at line 242 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidPlayerScore_Clear | ( | i, | |
| o ) |
returns 1 if clearing player score shall not be allowed
Definition at line 75 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidRandomStartWeapons | ( | i, | |
| o ) |
called when player spawns to determine whether to give them random start weapons.
Return true to forbid giving them.
Definition at line 38 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidSpawn | ( | i, | |
| o ) |
return true to prevent a spectator/observer to spawn as player
Definition at line 26 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidThrowCurrentWeapon | ( | i, | |
| o ) |
returns true if throwing the current weapon shall not be allowed
Definition at line 235 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForbidWeaponUse | ( | i, | |
| o ) |
return true to prevent weapon use for a player
Definition at line 1157 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FormatMessage | ( | i, | |
| o ) |
called when formatting a chat message to replace fancy functions
Definition at line 217 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FragCenterMessage | ( | i, | |
| o ) |
allows overriding the frag centerprint messages
Definition at line 114 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_FusionReactor_ValidTarget | ( | i, | |
| o ) |
called when a fusion reactor is validating its target
Definition at line 1193 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetCvars | ( | i, | |
| o ) |
is meant to call GetCvars_handle* for cvars this mutator needs from the client, e.g.: MUTATOR_HOOKFUNCTION(mymutator, GetCvars) { GetCvars_handleFloat(this, store, s, f, cvar_mycvar, "mycvar"); return false; } Usually you can just use REPLICATE instead of this hook, e.g.: REPLICATE(cvar_mycvar, int, "mycvar"); NOTE: requesting cvar values (get_cvars_f 0) is deprecated
Definition at line 342 of file events.qh.
| #define EV_GetModelParams | ( | i, | |
| o ) |
| #define EV_GetPlayerLimit | ( | i, | |
| o ) |
Called when a player is trying to join, argument is the number of players allowed to join the match.
Definition at line 1257 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetPlayerStatus | ( | i, | |
| o ) |
Definition at line 1043 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetPressedKeys | ( | i, | |
| o ) |
TODO change this into a general PlayerPostThink hook?
Definition at line 326 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetRecords | ( | i, | |
| o ) |
Definition at line 930 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetResourceLimit | ( | i, | |
| o ) |
Called when the amount of entity resources changes.
Can be used to override resource limit.
Definition at line 751 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GiveFragsForKill | ( | i, | |
| o ) |
called when someone was fragged by "self", and is expected to change frag_score to adjust scoring for the kill
Definition at line 147 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GiveResource | ( | i, | |
| o ) |
Called when entity is being given some resource.
See RES_* constants for resource types. Return true to forbid giving. NOTE: This hook is also called by GiveResourceWithLimit
Definition at line 793 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GiveResourceWithLimit | ( | i, | |
| o ) |
Called when entity is being given some resource with specified limit.
See RES_* constants for resource types. Return true to forbid giving.
Definition at line 804 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GrappleHookThink | ( | i, | |
| o ) |
Definition at line 899 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_HavocBot_Aim | ( | i, | |
| o ) |
return true to use your own aim target (or none at all)
Definition at line 1226 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_HavocBot_ChooseRole | ( | i, | |
| o ) |
Definition at line 848 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_HelpMePing | ( | i, | |
| o ) |
called whenever a player uses impulse 33 (help me) in impulse.qc normally help me ping uses .waypointsprite_attachedforcarrier, but if your mutator uses something different then you can handle it in a special manner using this hook
Definition at line 675 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Item_RespawnCountdown | ( | i, | |
| o ) |
called when an item is about to respawn
Definition at line 645 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Item_ScheduleRespawn | ( | i, | |
| o ) |
return true to show a waypoint while the item is spawning
Definition at line 1206 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Item_Spawn | ( | i, | |
| o ) |
called for each item being spawned on a map, including dropped weapons return 1 to remove an item
Definition at line 631 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ItemModel | ( | i, | |
| o ) |
called when an item model is about to be set, allows custom paths etc.
Definition at line 131 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ItemSound | ( | i, | |
| o ) |
called when an item sound is about to be played, allows custom paths etc.
Definition at line 139 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ItemTouch | ( | i, | |
| o ) |
called at when a item is touched.
Called early, can edit item properties.
Definition at line 726 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ItemTouched | ( | i, | |
| o ) |
called after the item has been touched.
Definition at line 740 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_LockWeapon | ( | i, | |
| o ) |
return true to lock weapon (can't be used nor changed) for a player
Definition at line 1149 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_LogDeath_AppendItemCodes | ( | i, | |
| o ) |
include special item codes for a death to the game log
Definition at line 1264 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MakePlayerObserver | ( | i, | |
| o ) |
| #define EV_MonsterCheckBossFlag | ( | i, | |
| o ) |
called when checking if a monster should be a miniboss return true to prevent the monster from becoming a miniboss
Definition at line 424 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterDies | ( | i, | |
| o ) |
called when a monster dies
Definition at line 364 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterDropItem | ( | i, | |
| o ) |
called when a monster is dropping loot
Definition at line 384 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterModel | ( | i, | |
| o ) |
called when a monster model is about to be set, allows custom paths etc.
Definition at line 1103 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterMove | ( | i, | |
| o ) |
called when a monster moves returning true makes the monster stop
Definition at line 397 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterRemove | ( | i, | |
| o ) |
called when a monster dies
Definition at line 372 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterRespawn | ( | i, | |
| o ) |
called when a monster wants to respawn
Definition at line 378 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterSpawn | ( | i, | |
| o ) |
called when a monster spawns
Definition at line 358 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_MonsterValidTarget | ( | i, | |
| o ) |
called when validating a monster's target
Definition at line 414 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_OnEntityPreSpawn | ( | i, | |
| o ) |
return error to prevent entity spawn, or modify the entity
Definition at line 314 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Player_ChangedTeam | ( | i, | |
| o ) |
Called after player has changed their team.
Definition at line 1123 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Player_ChangeTeam | ( | i, | |
| o ) |
Called before player changes their team.
Return true to block team change.
Definition at line 1113 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Player_ChangeTeamKill | ( | i, | |
| o ) |
Called when player is about to be killed when changing teams.
Return true to block killing.
Definition at line 1133 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerAnim | ( | i, | |
| o ) |
called when setting the player's animation state
Definition at line 57 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerDamage_SplitHealthArmor | ( | i, | |
| o ) |
called when a player gets damaged to e.g.
remove stuff they were carrying.
Definition at line 441 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerDamaged | ( | i, | |
| o ) |
Called when a player is damaged Returns true if damage shouldn't be logged.
Definition at line 478 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerDied | ( | i, | |
| o ) |
called after a player died.
Definition at line 97 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerDies | ( | i, | |
| o ) |
called when a player dies to e.g.
remove stuff they were carrying.
Definition at line 86 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerPhysics_PostUpdateStats | ( | i, | |
| o ) |
called after physics stats are set on a player, allows post-initialization modifications
Definition at line 1219 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerPhysics_UpdateStats | ( | i, | |
| o ) |
called before physics stats are set on a player, allows limited early customization
Definition at line 1213 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerPowerups | ( | i, | |
| o ) |
called at the end of player_powerups() in client.qc, used for manipulating the values which are set by powerup items.
Definition at line 509 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerPreThink | ( | i, | |
| o ) |
runs in the event loop for players; is called for ALL player entities, also bots, also the dead, or spectators
Definition at line 320 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerRegen | ( | i, | |
| o ) |
called every player think frame return 1 to disable regen
Definition at line 519 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerSpawn | ( | i, | |
| o ) |
called when a player spawns as player, after shared setup, before their weapon is chosen (so items may be changed in here)
Definition at line 44 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerUseKey | ( | i, | |
| o ) |
called when the use key is pressed if MUTATOR_RETURNVALUE is 1, don't do anything return 1 if the use key actually did something
Definition at line 549 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayerWeaponSelect | ( | i, | |
| o ) |
called after a player's weapon is chosen so it can be overriden here
Definition at line 51 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PlayHitsound | ( | i, | |
| o ) |
called when a player dies to e.g.
remove stuff they were carrying
Definition at line 124 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PortalTeleport | ( | i, | |
| o ) |
called whenever a player goes through a portal gun teleport allows you to strip a player of an item if they go through the teleporter to help prevent cheating
Definition at line 664 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PreFormatMessage | ( | i, | |
| o ) |
called before any formatting is applied, handy for tweaking the message before scripts get ahold of it
Definition at line 227 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PrepareExplosionByDamage | ( | i, | |
| o ) |
Definition at line 1096 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_PutClientInServer | ( | i, | |
| o ) |
Definition at line 18 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Race_FinalCheckpoint | ( | i, | |
| o ) |
Definition at line 937 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_reset_map_global | ( | i, | |
| o ) |
called in reset_map
Definition at line 65 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_reset_map_players | ( | i, | |
| o ) |
called in reset_map
Definition at line 70 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ResourceAmountChanged | ( | i, | |
| o ) |
Called after the amount of resource of an entity has changed.
See RES_* constants for resource types. Amount wasted is the amount of resource that is above resource limit so it was not given.
Definition at line 773 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ResourceWasted | ( | i, | |
| o ) |
Called when there was an attempt to set entity resources higher than their limit.
See RES_* constants for resource types. Amount wasted is the amount of resource that is above resource limit so it was not given.
Definition at line 783 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Sandbox_DragAllowed | ( | i, | |
| o ) |
Return true to prevent sandbox objects from being dragged.
Definition at line 1285 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Sandbox_EditAllowed | ( | i, | |
| o ) |
Return true to prevent the player from editing sandbox objects with commands.
Definition at line 1294 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SendWaypoint | ( | i, | |
| o ) |
Definition at line 1070 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SetModname | ( | i, | |
| o ) |
Definition at line 620 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SetResource | ( | i, | |
| o ) |
Called when the amount of resource of an entity changes.
See RES_* constants for resource types. Return true to forbid the change.
Definition at line 761 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SetWeaponArena | ( | i, | |
| o ) |
Definition at line 1048 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SetWeaponreplace | ( | i, | |
| o ) |
Definition at line 636 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ShowChatBubble | ( | i, | |
| o ) |
Return true to hide the chat bubble above typing players.
Definition at line 1300 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Spawn_Score | ( | i, | |
| o ) |
called when a spawnpoint is being evaluated return 1 to make the spawnpoint unusable
Definition at line 609 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SpectateCopy | ( | i, | |
| o ) |
copies variables for spectating "spectatee" to "this"
Definition at line 210 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SpectateNext | ( | i, | |
| o ) |
Definition at line 968 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SpectatePrev | ( | i, | |
| o ) |
Definition at line 975 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SpectateSet | ( | i, | |
| o ) |
Definition at line 961 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SV_ParseClientCommand | ( | i, | |
| o ) |
called when a client command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo_SV_ParseClientCommand) { if (MUTATOR_RETURNVALUE) // command was already handled?
return false; if (cmd_name == "echocvar" && cmd_argc >= 2) { print(cvar_string(argv(1)), "\n"); return true; } if (cmd_name == "echostring" && cmd_argc >= 2) { print(substring(cmd_string, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), "\n"); return true; } return false; }
Definition at line 577 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_SV_ParseServerCommand | ( | i, | |
| o ) |
please read EV_SV_ParseClientCommand description before using
Definition at line 598 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TakeResource | ( | i, | |
| o ) |
Called when some resource is being taken from an entity.
See RES_* constants for resource types. Return true to forbid giving. NOTE: This hook is also called by TakeResourceWithLimit
Definition at line 818 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TakeResourceWithLimit | ( | i, | |
| o ) |
Called when some resource is being taken from an entity, with a limit.
See RES_* constants for resource types. Return true to forbid giving.
Definition at line 829 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TeamBalance_CheckAllowedTeams | ( | i, | |
| o ) |
Allows adjusting allowed teams.
Return true to use the bitmask value and set non-empty string to use team entity name. Both behaviors can be active at the same time and will stack allowed teams.
Definition at line 167 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TeamBalance_FindBestTeams | ( | i, | |
| o ) |
allows overriding the teams that will make the game most balanced if the player joins any of them.
Definition at line 192 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TeamBalance_GetPlayerForTeamSwitch | ( | i, | |
| o ) |
Called during autobalance.
Return true to override the player that will be switched.
Definition at line 200 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TeamBalance_GetTeamCount | ( | i, | |
| o ) |
allows overriding of team counts
Definition at line 181 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Turret_CheckFire | ( | i, | |
| o ) |
return error to not attack
Definition at line 307 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TurretFire | ( | i, | |
| o ) |
return error to not attack
Definition at line 301 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TurretSpawn | ( | i, | |
| o ) |
return error to request removal
Definition at line 295 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TurretThink | ( | i, | |
| o ) |
Definition at line 1088 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TurretValidateTarget | ( | i, | |
| o ) |
Definition at line 1080 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_URI_GetCallback | ( | i, | |
| o ) |
Definition at line 1139 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_VehicleEnter | ( | i, | |
| o ) |
called when a player enters a vehicle allows mutators to set special settings in this event
Definition at line 693 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_VehicleExit | ( | i, | |
| o ) |
called when a player exits a vehicle allows mutators to set special settings in this event
Definition at line 713 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_VehicleInit | ( | i, | |
| o ) |
called when a vehicle initializes return true to remove the vehicle
Definition at line 684 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_VehicleTouch | ( | i, | |
| o ) |
called when a player touches a vehicle return true to stop player from entering the vehicle
Definition at line 703 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_VoteCommand_Parse | ( | i, | |
| o ) |
called when parsing a vote command.
Definition at line 1238 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_W_DecreaseAmmo | ( | i, | |
| o ) |
Called by W_DecreaseAmmo.
Definition at line 492 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_W_PlayStrengthSound | ( | i, | |
| o ) |
Called when weapons are performing their attack, useful for applying bonus attack sounds.
Definition at line 1279 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_W_Reload | ( | i, | |
| o ) |
Called by W_Reload.
Definition at line 503 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_WantWeapon | ( | i, | |
| o ) |
Definition at line 1017 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_WeaponRateFactor | ( | i, | |
| o ) |
allows changing attack rate
Definition at line 252 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_WeaponSpeedFactor | ( | i, | |
| o ) |
allows changing weapon speed (projectiles mostly)
Definition at line 260 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| anonymous enum |
| Enumerator | |
|---|---|
| MUT_ITEMTOUCH_CONTINUE | |
| MUT_ITEMTOUCH_RETURN | |
| MUT_ITEMTOUCH_PICKUP | |
Definition at line 733 of file events.qh.
| anonymous enum |
| Enumerator | |
|---|---|
| MUT_FUSREAC_TARG_CONTINUE | |
| MUT_FUSREAC_TARG_VALID | |
| MUT_FUSREAC_TARG_INVALID | |
Definition at line 1199 of file events.qh.
| anonymous enum |
| anonymous enum |
| Enumerator | |
|---|---|
| MUT_SPECCMD_CONTINUE | |
| MUT_SPECCMD_RETURN | |
| MUT_SPECCMD_FORCE | |
Definition at line 1003 of file events.qh.
| anonymous enum |
| Enumerator | |
|---|---|
| MUT_SPECPREV_CONTINUE | |
| MUT_SPECPREV_RETURN | |
| MUT_SPECPREV_FOUND | |
Definition at line 983 of file events.qh.
| anonymous enum |
| MUTATOR_HOOKABLE | ( | AbortSpeedrun | , |
| EV_AbortSpeedrun | ) |
References EV_AbortSpeedrun.
| MUTATOR_HOOKABLE | ( | AccuracyTargetValid | , |
| EV_AccuracyTargetValid | ) |
References EV_AccuracyTargetValid.
| MUTATOR_HOOKABLE | ( | AddedPlayerScore | , |
| EV_AddPlayerScore | ) |
References EV_AddPlayerScore.
| MUTATOR_HOOKABLE | ( | AddPlayerScore | , |
| EV_AddPlayerScore | ) |
References EV_AddPlayerScore.
| MUTATOR_HOOKABLE | ( | AllowMobButcher | , |
| EV_AllowMobButcher | ) |
References EV_AllowMobButcher.
| MUTATOR_HOOKABLE | ( | AllowMobSpawning | , |
| EV_AllowMobSpawning | ) |
References EV_AllowMobSpawning.
| MUTATOR_HOOKABLE | ( | AllowRocketJumping | , |
| EV_AllowRocketJumping | ) |
References EV_AllowRocketJumping.
| MUTATOR_HOOKABLE | ( | AutoJoinOnConnection | , |
| EV_AutoJoinOnConnection | ) |
References EV_AutoJoinOnConnection.
| MUTATOR_HOOKABLE | ( | Bot_FixCount | , |
| EV_Bot_FixCount | ) |
References EV_Bot_FixCount.
| MUTATOR_HOOKABLE | ( | BotShouldAttack | , |
| EV_BotShouldAttack | ) |
References EV_BotShouldAttack.
| MUTATOR_HOOKABLE | ( | BuffModel_Customize | , |
| EV_BuffModel_Customize | ) |
References EV_BuffModel_Customize.
| MUTATOR_HOOKABLE | ( | BuffTouch | , |
| EV_BuffTouch | ) |
References EV_BuffTouch.
| MUTATOR_HOOKABLE | ( | CalculateRespawnTime | , |
| EV_CalculateRespawnTime | ) |
References EV_CalculateRespawnTime.
| MUTATOR_HOOKABLE | ( | ChatMessage | , |
| EV_ChatMessage | ) |
References EV_ChatMessage.
| MUTATOR_HOOKABLE | ( | ChatMessageTo | , |
| EV_ChatMessageTo | ) |
References EV_ChatMessageTo.
| MUTATOR_HOOKABLE | ( | CheckRules_World | , |
| EV_CheckRules_World | ) |
References CheckRules_World(), and EV_CheckRules_World.
| MUTATOR_HOOKABLE | ( | ClearModelParams | , |
| EV_NO_ARGS | ) |
Called when clearing the global parameters for a model.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | ClientCommand_FloodControl | , |
| EV_ClientCommand_FloodControl | ) |
References EV_ClientCommand_FloodControl.
| MUTATOR_HOOKABLE | ( | ClientCommand_Spectate | , |
| EV_ClientCommand_Spectate | ) |
References EV_ClientCommand_Spectate.
| MUTATOR_HOOKABLE | ( | ClientConnect | , |
| EV_ClientConnect | ) |
References ClientConnect, and EV_ClientConnect.
| MUTATOR_HOOKABLE | ( | ClientDisconnect | , |
| EV_ClientDisconnect | ) |
References ClientDisconnect, and EV_ClientDisconnect.
| MUTATOR_HOOKABLE | ( | ClientKill | , |
| EV_ClientKill | ) |
References ClientKill, and EV_ClientKill.
| MUTATOR_HOOKABLE | ( | ClientKill_Now | , |
| EV_ClientKill_Now | ) |
References ClientKill_Now(), and EV_ClientKill_Now.
| MUTATOR_HOOKABLE | ( | ClientObituary | , |
| EV_ClientObituary | ) |
References EV_ClientObituary.
| MUTATOR_HOOKABLE | ( | CopyBody | , |
| EV_CopyBody | ) |
References CopyBody(), and EV_CopyBody.
| MUTATOR_HOOKABLE | ( | CustomizeWaypoint | , |
| EV_CustomizeWaypoint | ) |
References EV_CustomizeWaypoint.
| MUTATOR_HOOKABLE | ( | Damage_Calculate | , |
| EV_Damage_Calculate | ) |
References EV_Damage_Calculate.
| MUTATOR_HOOKABLE | ( | DecodeLevelParms | , |
| EV_NO_ARGS | ) |
References DecodeLevelParms(), and EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DropSpecialItems | , |
| EV_DropSpecialItems | ) |
References EV_DropSpecialItems.
| MUTATOR_HOOKABLE | ( | EditProjectile | , |
| EV_EditProjectile | ) |
References EV_EditProjectile.
| MUTATOR_HOOKABLE | ( | Ent_Init | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | FilterItem | , |
| EV_FilterItem | ) |
References EV_FilterItem.
| MUTATOR_HOOKABLE | ( | FilterItemDefinition | , |
| EV_FilterItemDefinition | ) |
References EV_FilterItemDefinition.
| MUTATOR_HOOKABLE | ( | FireBullet_Hit | , |
| EV_FireBullet_Hit | ) |
References EV_FireBullet_Hit.
| MUTATOR_HOOKABLE | ( | FixClientCvars | , |
| EV_FixClientCvars | ) |
References EV_FixClientCvars, and FixClientCvars().
| MUTATOR_HOOKABLE | ( | FixPlayermodel | , |
| EV_FixPlayermodel | ) |
References EV_FixPlayermodel, and FixPlayermodel().
| MUTATOR_HOOKABLE | ( | ForbidDropCurrentWeapon | , |
| EV_ForbidDropCurrentWeapon | ) |
References EV_ForbidDropCurrentWeapon.
| MUTATOR_HOOKABLE | ( | ForbidPlayerScore_Clear | , |
| EV_ForbidPlayerScore_Clear | ) |
References EV_ForbidPlayerScore_Clear.
| MUTATOR_HOOKABLE | ( | ForbidRandomStartWeapons | , |
| EV_ForbidRandomStartWeapons | ) |
References EV_ForbidRandomStartWeapons.
| MUTATOR_HOOKABLE | ( | ForbidSpawn | , |
| EV_ForbidSpawn | ) |
References EV_ForbidSpawn.
| MUTATOR_HOOKABLE | ( | ForbidThrowCurrentWeapon | , |
| EV_ForbidThrowCurrentWeapon | ) |
References EV_ForbidThrowCurrentWeapon.
| MUTATOR_HOOKABLE | ( | ForbidWeaponUse | , |
| EV_ForbidWeaponUse | ) |
References EV_ForbidWeaponUse.
| MUTATOR_HOOKABLE | ( | FormatMessage | , |
| EV_FormatMessage | ) |
References EV_FormatMessage.
| MUTATOR_HOOKABLE | ( | FragCenterMessage | , |
| EV_FragCenterMessage | ) |
References EV_FragCenterMessage.
| MUTATOR_HOOKABLE | ( | FusionReactor_ValidTarget | , |
| EV_FusionReactor_ValidTarget | ) |
References EV_FusionReactor_ValidTarget.
| MUTATOR_HOOKABLE | ( | GetCvars | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS, and GetCvars().
| MUTATOR_HOOKABLE | ( | GetModelParams | , |
| EV_GetModelParams | ) |
References EV_GetModelParams.
| MUTATOR_HOOKABLE | ( | GetPlayerLimit | , |
| EV_GetPlayerLimit | ) |
References EV_GetPlayerLimit, and GetPlayerLimit().
| MUTATOR_HOOKABLE | ( | GetPlayerStatus | , |
| EV_GetPlayerStatus | ) |
References EV_GetPlayerStatus.
| MUTATOR_HOOKABLE | ( | GetPressedKeys | , |
| EV_GetPressedKeys | ) |
References EV_GetPressedKeys, and GetPressedKeys().
| MUTATOR_HOOKABLE | ( | GetRecords | , |
| EV_GetRecords | ) |
References EV_GetRecords.
| MUTATOR_HOOKABLE | ( | GetResourceLimit | , |
| EV_GetResourceLimit | ) |
References EV_GetResourceLimit, and GetResourceLimit().
| MUTATOR_HOOKABLE | ( | GiveFragsForKill | , |
| EV_GiveFragsForKill | ) |
References EV_GiveFragsForKill.
| MUTATOR_HOOKABLE | ( | GiveResource | , |
| EV_GiveResource | ) |
References EV_GiveResource, and GiveResource().
| MUTATOR_HOOKABLE | ( | GiveResourceWithLimit | , |
| EV_GiveResourceWithLimit | ) |
References EV_GiveResourceWithLimit, and GiveResourceWithLimit().
| MUTATOR_HOOKABLE | ( | GrappleHookThink | , |
| EV_GrappleHookThink | ) |
References EV_GrappleHookThink.
| MUTATOR_HOOKABLE | ( | HavocBot_Aim | , |
| EV_HavocBot_Aim | ) |
References EV_HavocBot_Aim.
| MUTATOR_HOOKABLE | ( | HavocBot_ChooseRole | , |
| EV_HavocBot_ChooseRole | ) |
References EV_HavocBot_ChooseRole.
| MUTATOR_HOOKABLE | ( | HelpMePing | , |
| EV_HelpMePing | ) |
References EV_HelpMePing.
| MUTATOR_HOOKABLE | ( | Item_RespawnCountdown | , |
| EV_Item_RespawnCountdown | ) |
References EV_Item_RespawnCountdown, and Item_RespawnCountdown().
| MUTATOR_HOOKABLE | ( | Item_ScheduleRespawn | , |
| EV_Item_ScheduleRespawn | ) |
References EV_Item_ScheduleRespawn, and Item_ScheduleRespawn().
| MUTATOR_HOOKABLE | ( | Item_Spawn | , |
| EV_Item_Spawn | ) |
References EV_Item_Spawn.
| MUTATOR_HOOKABLE | ( | ItemModel | , |
| EV_ItemModel | ) |
References EV_ItemModel.
| MUTATOR_HOOKABLE | ( | ItemSound | , |
| EV_ItemSound | ) |
References EV_ItemSound.
| MUTATOR_HOOKABLE | ( | ItemTouch | , |
| EV_ItemTouch | ) |
References EV_ItemTouch.
| MUTATOR_HOOKABLE | ( | ItemTouched | , |
| EV_ItemTouched | ) |
References EV_ItemTouched.
| MUTATOR_HOOKABLE | ( | LockWeapon | , |
| EV_LockWeapon | ) |
References EV_LockWeapon.
| MUTATOR_HOOKABLE | ( | LogDeath_AppendItemCodes | , |
| EV_LogDeath_AppendItemCodes | ) |
References EV_LogDeath_AppendItemCodes.
| MUTATOR_HOOKABLE | ( | MatchEnd | , |
| EV_NO_ARGS | ) |
called when the match ends
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | MatchEnd_BeforeScores | , |
| EV_NO_ARGS | ) |
called when the match ends, before recording scores
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | MonsterCheckBossFlag | , |
| EV_MonsterCheckBossFlag | ) |
References EV_MonsterCheckBossFlag.
| MUTATOR_HOOKABLE | ( | MonsterDies | , |
| EV_MonsterDies | ) |
References EV_MonsterDies.
| MUTATOR_HOOKABLE | ( | MonsterDropItem | , |
| EV_MonsterDropItem | ) |
References EV_MonsterDropItem.
| MUTATOR_HOOKABLE | ( | MonsterFindTarget | , |
| EV_NO_ARGS | ) |
called when a monster looks for another target
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | MonsterModel | , |
| EV_MonsterModel | ) |
References EV_MonsterModel.
| MUTATOR_HOOKABLE | ( | MonsterMove | , |
| EV_MonsterMove | ) |
References EV_MonsterMove.
| MUTATOR_HOOKABLE | ( | MonsterRemove | , |
| EV_MonsterRemove | ) |
References EV_MonsterRemove.
| MUTATOR_HOOKABLE | ( | MonsterRespawn | , |
| EV_MonsterRespawn | ) |
References EV_MonsterRespawn.
| MUTATOR_HOOKABLE | ( | MonsterSpawn | , |
| EV_MonsterSpawn | ) |
References EV_MonsterSpawn.
| MUTATOR_HOOKABLE | ( | MonsterValidTarget | , |
| EV_MonsterValidTarget | ) |
References EV_MonsterValidTarget.
| MUTATOR_HOOKABLE | ( | OnEntityPreSpawn | , |
| EV_OnEntityPreSpawn | ) |
References EV_OnEntityPreSpawn.
| MUTATOR_HOOKABLE | ( | Player_ChangedTeam | , |
| EV_Player_ChangedTeam | ) |
References EV_Player_ChangedTeam.
| MUTATOR_HOOKABLE | ( | Player_ChangeTeam | , |
| EV_Player_ChangeTeam | ) |
References EV_Player_ChangeTeam.
| MUTATOR_HOOKABLE | ( | Player_ChangeTeamKill | , |
| EV_Player_ChangeTeamKill | ) |
References EV_Player_ChangeTeamKill.
| MUTATOR_HOOKABLE | ( | PlayerAnim | , |
| EV_PlayerAnim | ) |
References EV_PlayerAnim.
| MUTATOR_HOOKABLE | ( | PlayerDamage_SplitHealthArmor | , |
| EV_PlayerDamage_SplitHealthArmor | ) |
References EV_PlayerDamage_SplitHealthArmor.
| MUTATOR_HOOKABLE | ( | PlayerDamaged | , |
| EV_PlayerDamaged | ) |
References EV_PlayerDamaged.
| MUTATOR_HOOKABLE | ( | PlayerDied | , |
| EV_PlayerDied | ) |
References EV_PlayerDied.
| MUTATOR_HOOKABLE | ( | PlayerDies | , |
| EV_PlayerDies | ) |
References EV_PlayerDies.
| MUTATOR_HOOKABLE | ( | PlayerPhysics_PostUpdateStats | , |
| EV_PlayerPhysics_PostUpdateStats | ) |
References EV_PlayerPhysics_PostUpdateStats.
| MUTATOR_HOOKABLE | ( | PlayerPhysics_UpdateStats | , |
| EV_PlayerPhysics_UpdateStats | ) |
References EV_PlayerPhysics_UpdateStats.
| MUTATOR_HOOKABLE | ( | PlayerPowerups | , |
| EV_PlayerPowerups | ) |
References EV_PlayerPowerups.
| MUTATOR_HOOKABLE | ( | PlayerPreThink | , |
| EV_PlayerPreThink | ) |
References EV_PlayerPreThink, and PlayerPreThink.
| MUTATOR_HOOKABLE | ( | PlayerRegen | , |
| EV_PlayerRegen | ) |
References EV_PlayerRegen.
| MUTATOR_HOOKABLE | ( | PlayerSpawn | , |
| EV_PlayerSpawn | ) |
References EV_PlayerSpawn.
| MUTATOR_HOOKABLE | ( | PlayerUseKey | , |
| EV_PlayerUseKey | ) |
References EV_PlayerUseKey, and PlayerUseKey().
| MUTATOR_HOOKABLE | ( | PlayerWeaponSelect | , |
| EV_PlayerWeaponSelect | ) |
References EV_PlayerWeaponSelect.
| MUTATOR_HOOKABLE | ( | PlayHitsound | , |
| EV_PlayHitsound | ) |
References EV_PlayHitsound.
| MUTATOR_HOOKABLE | ( | PortalTeleport | , |
| EV_PortalTeleport | ) |
References EV_PortalTeleport.
| MUTATOR_HOOKABLE | ( | PreFormatMessage | , |
| EV_PreFormatMessage | ) |
References EV_PreFormatMessage.
| MUTATOR_HOOKABLE | ( | PrepareExplosionByDamage | , |
| EV_PrepareExplosionByDamage | ) |
References EV_PrepareExplosionByDamage.
| MUTATOR_HOOKABLE | ( | PutClientInServer | , |
| EV_PutClientInServer | ) |
References EV_PutClientInServer, and PutClientInServer.
| MUTATOR_HOOKABLE | ( | Race_FinalCheckpoint | , |
| EV_Race_FinalCheckpoint | ) |
References EV_Race_FinalCheckpoint.
| MUTATOR_HOOKABLE | ( | ReadLevelCvars | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | ReadyRestart_Deny | , |
| EV_NO_ARGS | ) |
return true to restart the server instead of restarting the match, for modes that don't support readyrestart.
NOTE: ReadyRestart support is mandatory in campaign
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | reset_map_global | , |
| EV_reset_map_global | ) |
References EV_reset_map_global.
| MUTATOR_HOOKABLE | ( | reset_map_players | , |
| EV_reset_map_players | ) |
References EV_reset_map_players.
| MUTATOR_HOOKABLE | ( | ResourceAmountChanged | , |
| EV_ResourceAmountChanged | ) |
References EV_ResourceAmountChanged.
| MUTATOR_HOOKABLE | ( | ResourceWasted | , |
| EV_ResourceWasted | ) |
References EV_ResourceWasted.
| MUTATOR_HOOKABLE | ( | Sandbox_DragAllowed | , |
| EV_Sandbox_DragAllowed | ) |
References EV_Sandbox_DragAllowed.
| MUTATOR_HOOKABLE | ( | Sandbox_EditAllowed | , |
| EV_Sandbox_EditAllowed | ) |
References EV_Sandbox_EditAllowed.
| MUTATOR_HOOKABLE | ( | Sandbox_SaveAllowed | , |
| EV_NO_ARGS | ) |
Return true to prevent writing sandbox changes to storage.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | Scores_CountFragsRemaining | , |
| EV_NO_ARGS | ) |
Return error to play frag remaining announcements.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | SendWaypoint | , |
| EV_SendWaypoint | ) |
References EV_SendWaypoint.
| MUTATOR_HOOKABLE | ( | SetChangeParms | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS, and SetChangeParms.
| MUTATOR_HOOKABLE | ( | SetDefaultAlpha | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS, and SetDefaultAlpha().
| MUTATOR_HOOKABLE | ( | SetModname | , |
| EV_SetModname | ) |
References EV_SetModname.
| MUTATOR_HOOKABLE | ( | SetNewParms | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS, and SetNewParms.
| MUTATOR_HOOKABLE | ( | SetResource | , |
| EV_SetResource | ) |
References EV_SetResource, and SetResource().
| MUTATOR_HOOKABLE | ( | SetStartItems | , |
| EV_NO_ARGS | ) |
adjusts {warmup_}start_{items,weapons,ammo_{cells,rockets,nails,shells,fuel}}
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | SetWeaponArena | , |
| EV_SetWeaponArena | ) |
References EV_SetWeaponArena.
| MUTATOR_HOOKABLE | ( | SetWeaponreplace | , |
| EV_SetWeaponreplace | ) |
References EV_SetWeaponreplace.
| MUTATOR_HOOKABLE | ( | ShowChatBubble | , |
| EV_ShowChatBubble | ) |
References EV_ShowChatBubble.
| MUTATOR_HOOKABLE | ( | Spawn_Score | , |
| EV_Spawn_Score | ) |
References EV_Spawn_Score, and Spawn_Score().
| MUTATOR_HOOKABLE | ( | SpectateCopy | , |
| EV_SpectateCopy | ) |
References EV_SpectateCopy, and SpectateCopy().
| MUTATOR_HOOKABLE | ( | SpectateNext | , |
| EV_SpectateNext | ) |
References EV_SpectateNext, and SpectateNext().
| MUTATOR_HOOKABLE | ( | SpectatePrev | , |
| EV_SpectatePrev | ) |
References EV_SpectatePrev, and SpectatePrev().
| MUTATOR_HOOKABLE | ( | SpectateSet | , |
| EV_SpectateSet | ) |
References EV_SpectateSet, and SpectateSet().
| MUTATOR_HOOKABLE | ( | SV_ParseClientCommand | , |
| EV_SV_ParseClientCommand | ) |
References EV_SV_ParseClientCommand, and SV_ParseClientCommand.
| MUTATOR_HOOKABLE | ( | SV_ParseServerCommand | , |
| EV_SV_ParseServerCommand | ) |
References EV_SV_ParseServerCommand.
| MUTATOR_HOOKABLE | ( | SV_StartFrame | , |
| EV_NO_ARGS | ) |
runs globally each server frame
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | TakeResource | , |
| EV_TakeResource | ) |
References EV_TakeResource, and TakeResource().
| MUTATOR_HOOKABLE | ( | TakeResourceWithLimit | , |
| EV_TakeResourceWithLimit | ) |
References EV_TakeResourceWithLimit, and TakeResourceWithLimit().
| MUTATOR_HOOKABLE | ( | TeamBalance_CheckAllowedTeams | , |
| EV_TeamBalance_CheckAllowedTeams | ) |
References EV_TeamBalance_CheckAllowedTeams, and TeamBalance_CheckAllowedTeams().
| MUTATOR_HOOKABLE | ( | TeamBalance_FindBestTeams | , |
| EV_TeamBalance_FindBestTeams | ) |
References EV_TeamBalance_FindBestTeams, and TeamBalance_FindBestTeams().
| MUTATOR_HOOKABLE | ( | TeamBalance_GetPlayerForTeamSwitch | , |
| EV_TeamBalance_GetPlayerForTeamSwitch | ) |
| MUTATOR_HOOKABLE | ( | TeamBalance_GetTeamCount | , |
| EV_TeamBalance_GetTeamCount | ) |
References EV_TeamBalance_GetTeamCount.
| MUTATOR_HOOKABLE | ( | TeamBalance_GetTeamCounts | , |
| EV_NO_ARGS | ) |
return true to manually override team counts
References EV_NO_ARGS, and TeamBalance_GetTeamCounts().
| MUTATOR_HOOKABLE | ( | Turret_CheckFire | , |
| EV_Turret_CheckFire | ) |
References EV_Turret_CheckFire.
| MUTATOR_HOOKABLE | ( | TurretFire | , |
| EV_TurretFire | ) |
References EV_TurretFire.
| MUTATOR_HOOKABLE | ( | TurretSpawn | , |
| EV_TurretSpawn | ) |
References EV_TurretSpawn.
| MUTATOR_HOOKABLE | ( | TurretThink | , |
| EV_TurretThink | ) |
References EV_TurretThink.
| MUTATOR_HOOKABLE | ( | TurretValidateTarget | , |
| EV_TurretValidateTarget | ) |
References EV_TurretValidateTarget.
| MUTATOR_HOOKABLE | ( | URI_GetCallback | , |
| EV_URI_GetCallback | ) |
References EV_URI_GetCallback.
| MUTATOR_HOOKABLE | ( | VehicleEnter | , |
| EV_VehicleEnter | ) |
References EV_VehicleEnter.
| MUTATOR_HOOKABLE | ( | VehicleExit | , |
| EV_VehicleExit | ) |
References EV_VehicleExit.
| MUTATOR_HOOKABLE | ( | VehicleInit | , |
| EV_VehicleInit | ) |
References EV_VehicleInit.
| MUTATOR_HOOKABLE | ( | VehicleTouch | , |
| EV_VehicleTouch | ) |
References EV_VehicleTouch.
| MUTATOR_HOOKABLE | ( | VoteCommand_Parse | , |
| EV_VoteCommand_Parse | ) |
References EV_VoteCommand_Parse.
| MUTATOR_HOOKABLE | ( | W_DecreaseAmmo | , |
| EV_W_DecreaseAmmo | ) |
References EV_W_DecreaseAmmo, and W_DecreaseAmmo().
| MUTATOR_HOOKABLE | ( | W_PlayStrengthSound | , |
| EV_W_PlayStrengthSound | ) |
References EV_W_PlayStrengthSound, and W_PlayStrengthSound().
| MUTATOR_HOOKABLE | ( | W_Reload | , |
| EV_W_Reload | ) |
References EV_W_Reload, and W_Reload().
| MUTATOR_HOOKABLE | ( | WantWeapon | , |
| EV_WantWeapon | ) |
References EV_WantWeapon.
| MUTATOR_HOOKABLE | ( | WeaponRateFactor | , |
| EV_WeaponRateFactor | ) |
References EV_WeaponRateFactor.
| MUTATOR_HOOKABLE | ( | WeaponSpeedFactor | , |
| EV_WeaponSpeedFactor | ) |
References EV_WeaponSpeedFactor.
| float get_cvars_f |
Definition at line 346 of file events.qh.
Referenced by GetCvars().
| string get_cvars_s |
Definition at line 347 of file events.qh.
Referenced by GetCvars().
| string monster_loot |
Definition at line 390 of file events.qh.
Referenced by monster_dropitem().