Quagmire Cooking Buff
Based on game build 714014 | Last updated: 2026-03-06
Overview
quagmire_cooking_buff is a Prefab that creates and manages a localized, non-persistent visual FX entity used during Quagmire cooking animations. It is not a component but a standalone prefab used to render special particle or animation effects (e.g., cooking steam or sparks). The entity is automatically destroyed after the animation completes or when explicitly hidden. It is designed for client-only use on non-dedicated servers and ensures proper synchronization between master and client simulation.
Usage example
-- Typically used internally by Quagmire cooking systems
local fx_entity = Prefab("quagmire_cooking_buff")()
fx_entity:ShowFX() -- Starts animation and spawns the FX
fx_entity:HideFX() -- Triggers FX removal after animation ends
Dependencies & tags
Components used: None identified
Tags: Adds FX and NOCLICK; uses showdirty networked event.
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
_show | net_bool | false | Networked boolean controlling whether FX should be shown. |
ShowFX | function | ShowFX | Method to show the FX (initializes and plays animation). |
HideFX | function | HideFX | Method to hide and schedule removal of the FX. |
Main functions
ShowFX()
- Description: Sets the
_showflag totrueand, on the client, creates or reactivates the FX entity by callingOnShowDirty. Does nothing on dedicated servers. - Parameters: None.
- Returns: Nothing.
HideFX()
- Description: Sets the
_showflag tofalseand, on the client, schedules the FX entity for removal by marking itkilled = true. Does nothing on dedicated servers. - Parameters: None.
- Returns: Nothing.
Events & listeners
- Listens to:
showdirty— triggersOnShowDirtywhen the_showstate changes (client-side only). - Pushes: None.
OnAnimOver(inst)
- Description: Callback fired when the FX animation completes. If
killedis true, the entity is removed; otherwise, it loops to play the"fx"animation. - Parameters:
inst(entity) — the FX entity instance. - Returns: Nothing.