Ogni hook GM, con il realm in cui gira davvero. Filtra per realm prima di scrivere l'hook: un hook dell'HUD su un server non scatta mai, ed è la cosa che va storta più spesso la prima volta.
| Hook | Realm | A cosa serve |
|---|---|---|
| server | Called when a map I/O event occurs. | |
| client | Adds a death notice entry. | |
| client | Allows you to adjust the mouse sensitivity. | |
| server | Called when a player tries to pick up something using the "use" key, return to override. | |
| shared | This hook is used to calculate animations for a player. | |
| client | Called from GM:CalcView when player is in driving a vehicle. | |
| client | Allows override of the default view. | |
| client | Allows overriding the position and angle of the viewmodel. | |
| server | Called whenever a players tries to create an undo. | |
| server | Called when a variable is about to be edited on an Entity (called by `Edit Properties...` menu), to determine if the edit should be permitted. | |
| server | Determines if the player can exit the vehicle on their own. | |
| server | Determines whether or not a given player player can enter the given vehicle. | |
| server | Determines if the player can kill themselves using the `kill` or `explode` console commands. | |
| server | Determines if the player can unfreeze the entity. | |
| shared | Controls if a properties can be used or not. | |
| server | Called whenever a players tries to undo. | |
| menu | Called each frame to record demos to video using IVideoWriter. | |
| client | Called when a message is printed to the chat box. | |
| client | Called whenever the content of the user's chat input box is changed. | |
| server | Called when a **non local player** connects to allow the Lua system to check the password. | |
| shared | Called when a player's sign on state changes. | |
| client, menu | Called when derma menus are closed with Global.CloseDermaMenus. | |
| client | Called whenever an entity becomes a clientside ragdoll. | |
| server | Called when a serverside ragdoll of an entity has been created. | |
| client | Allows you to change the players movements before they're sent to the server. | |
| shared | Teams are created within this hook using team.SetUp. | |
| shared | Called upon an animation event, this is the ideal place to call player animation functions such as Player:AddVCDSequenceToGestureSlot, Player:AnimRestartGesture and so on. | |
| server | Handles the player's death. | |
| client | This hook is called every frame to draw all of the current death notices. | |
| client | Called every frame before drawing the in-game monitors ( Breencast, in-game TVs, etc ), but doesn't seem to be doing anything, trying to render 2D or 3D elements fail. | |
| client, menu | Called after all other 2D draw hooks are called. | |
| client | Allows you to override physgun effects rendering. | |
| shared | Called right before an entity stops driving. | |
| shared | Called whenever a sound has been played. | |
| shared | Called every time a bullet is about to be fired from an entity, which allows to completely modify the bullet structure before the bullet is actually fired. | |
| shared | Called when a key-value pair is set on an entity on map spawn. | |
| shared | Called when an NW2Var is changed. | |
| shared | Called right before removal of an entity. | |
| server | Called when an entity is about to take damage. | |
| shared | This hook polls the entity the player use action should be applied to. | |
| client | Runs when user cancels/finishes typing. | |
| shared | Called after GM:Move, applies all the changes from the CMoveData to the player. | |
| client | Called to allow override of the default Derma skin for all panels. | |
| client | Called when the mouse has been double clicked on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:ParentToHUD. | |
| client | Called whenever a players presses a mouse key on the context menu in Sandbox or on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:Pa... | |
| client | Called whenever a players releases a mouse key on the context menu in Sandbox or on any panel derived from CGModBase, such as the panel used by gui.EnableScreenClicker and the panel used by Panel:P... | |
| shared, menu | Called when game content has been changed, for example an addon or a mountable game was (un)mounted. | |
| server | An internal function used to get an untranslated string to show in the kill feed as the entity's name. | |
| server | Called when a player takes damage from falling, allows to override the damage. | |
| shared | Called when the game(server) needs to update the text shown in the server browser as the gamemode. | |
| client | Allows you to modify the Source Engine's motion blur shaders. | |
| server | Called to determine preferred carry angles for the entity. | |
| client | Returns the color for the given entity's team. | |
| client | Returns the team color for the given team index. | |
| shared | Override this hook to disable/change ear-grabbing in your gamemode. | |
| server | Called when an entity is released by a gravity gun. | |
| server | Called when an entity is picked up by a gravity gun. | |
| server | Called every tick to poll whether a player is allowed to pick up an entity with the gravity gun or not. | |
| shared | Called when an entity is about to be punted with the gravity gun (primary fire). | |
| client | Called when the client has picked up ammo. | |
| client | Renders the HUD pick-up history. | |
| client | Called every frame to render the scoreboard. | |
| client | Called from GM:HUDPaint to draw player info when you hover over a player with your crosshair or mouse. | |
| client | Called when an item has been picked up. | |
| client | Called whenever the HUD should be drawn. | |
| client | Called before GM:HUDPaint when the HUD background is being drawn. | |
| client | Called when the Gamemode is about to draw a given element on the client's HUD (heads-up display). | |
| client | Called when a weapon has been picked up. | |
| server | Called to handle player armor reduction, when player receives damage. | |
| shared | Allows to override player driving animations. | |
| shared | Allows to override player crouch animations. | |
| shared | Called every frame by the player model animation system. | |
| shared | Called every frame by the player model animation system. | |
| shared | Allows to override player noclip animations. | |
| shared | Allows to override player swimming animations. | |
| shared | Allows to override player flying ( in mid-air, not noclipping ) animations. | |
| client | Hides the team selection panel. | |
| shared | Called after all the entities are initialized. | |
| shared | Called after the gamemode loads and starts. | |
| client | Allows you to modify the supplied User Command with mouse input. | |
| server | Check if a player can spawn at a certain spawnpoint. | |
| shared | Called whenever a player pressed a key included within the IN keys. | |
| shared | Runs when a IN key was released by a player. | |
| server | Called from `gm_load` when the game should load a map. | |
| menu | Called while an addon from the Steam workshop is downloading. | |
| menu | Called when `menu.lua` has finished loading. | |
| shared | Override this gamemode function to disable mouth movement when talking on voice chat. | |
| shared | The Move hook is called for you to manipulate the player's MoveData. | |
| client | Returning true in this hook will cause it to render depth buffers defined with render.GetResolvedFullFrameDepth. | |
| client | Called when an entity has been created over the network. | |
| server | Called when a player's SteamID has been validated by Steam. | |
| client | Called whenever this entity changes its transmission state for this Global.LocalPlayer, such as exiting or re entering the [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/... | |
| client | Called when a player has achieved an achievement. | |
| client | Called when the local player presses TAB while having their chatbox opened. | |
| client | Called when the player cleans up something. | |
| server | Called on the server when a Lua error occurs on a client and is sent to the server. | |
| client | Called when a caption/subtitle has been emitted to the closed caption box. | |
| client | Called when the context menu keybind (+menu_context) is released, which by default is C. | |
| client | Called when the context menu keybind (`+menu_context`) is pressed, which by default is C . | |
| shared | Called when the crazy physics detection detects an entity with crazy physics, i.e. | |
| server | Called when a player has been hurt by an explosion. | |
| shared | Called as soon as the entity is created. | |
| server | Called when the Entity:WaterLevel of an entity is changed. | |
| shared | Called when the gamemode is loaded. | |
| shared, menu | Called when a Lua error occurs. | |
| server | Called whenever an NPC drops an item upon its death, such as health kits, armor batteries, etc. | |
| server | Called whenever an NPC is killed. | |
| menu | Called when a Addon Conflict occurs, only works in the Menu realm. | |
| menu | Called when the main menu has been blocked by GM:OnPauseMenuShow four times in a small interval. | |
| client | Called when the pause menu is attempting to be opened. | |
| menu | Called when a permission gets Granted or Revoked. | |
| server | Called when a player freezes an entity with the physgun. | |
| server | Called to when a player has successfully picked up an entity with their Physics Gun. | |
| server | Called when a player reloads with the physgun. | |
| server | Use GM:PlayerChangedTeam instead, which works for every Player:SetTeam call. | |
| client | Called whenever a player sends a chat message. | |
| shared | Called when a player makes contact with the ground after a jump or a fall. | |
| shared | Called when a player jumps. | |
| server | Called when a player +use drops an entity. | |
| server | Called when a player +use pickups up an entity. |
Questa pagina mostra una schermata alla volta. La lista completa è pubblicata in JSON, CSV e Markdown, senza JavaScript.
Raccolto da devtoolsgg.com dalle fonti qui sopra, sotto licenza CC BY 4.0.