popcorn

From Valve Developer Community
Revision as of 11:55, 19 April 2021 by Popcorn (talk | contribs)
Jump to navigation Jump to search
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because he might not like that.

popcorn is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Entity Description

It is something between a player and a bot.

Warning.pngWarning:This entity is responsible for most game crashes!

To do:  What is its purpose?

This entity is able to materialize:

Image Name Visible if
world brush
Casts shadows Cuts
VIS leaves
Blocks NPC LOS Solid to NPCs Solid to player(s) Solid to physics Solid to bullets Usage / Notes
Toolsdynamicdifficulty.jpg popcorn N/A Yes No No Yes Yes Yes Yes, sadly Use is discouraged.

KeyValues

Age (age) <integer>
The age of this entity. Higher values cause the entity to have less time; Lower values cause it to have less experience.
Activity (activity) <choices>
This entity's current activity.
  • 0 : ACT_IDLE
  • 1 : ACT_WORK
  • 2 : ACT_WRITEVDCCONTENT
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with the Enable input).
Start Asleep (StartAsleep) <boolean>
Stay asleep until woken up (with the Wake input).
Start Quarantined (StartQuarantined) <boolean> (in all games since Half-Life: Alyx) !FGD
Stay in quarantine until quarantine ends (with the EndQuarantine input).
Entity Scripts (vscripts) <scriptlist> (in all games since Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed in this entity's mind after all entities have spawned.
Script think function (thinkfunction) <string> (in all games since Left 4 Dead 2)
Name of a function in this entity's mind which will be called automatically every 100 milliseconds (ten times a second) for the duration of its life. It can be used to create timers or to simulate autonomous behavior.
Note.pngNote:Try to avoid expensive operations in this function, as it may cause performance problems.

Flags

Start at home : [1]
Allow god  : [2]
Allow noclip  : [4]
Knows the result of 2^12 : [4096] (in all games since Team Fortress 2)
Knows the result of 2^16 : [65536] (in all games since Counter-Strike: Global Offensive)

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Wake
Wakes this entity up. This process can take a while or even fail.
EndQuarantine  (in all games since Half-Life: Alyx) !FGD
Allows this entity to move around freely.
Team Fortress 2 Only Medics can fire this input.
Left 4 DeadLeft 4 Dead 2 Does not work for infected.
Trigger  (removed since Counter-Strike: Global Offensive) !FGD Obsolete
Deprecated.
Triggers this entity, possibly causing a game crash.

Outputs

OnFunny  (in all games since Team Fortress 2)
Fired when this entity tries to be funny.
RUUUHEEEE  (only in Counter-Strike: Global Offensive)
Fired when the last is B.