User:Popcorn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ent not in fgd|nolink=1|because=he might not like that}}
{{ent not in fgd|nolink=1|because=he might not like that}}
[[File:csgo weapon smokegrenade.png|right|Bald ist die Luft raus]]
{{csgo point|popcorn|internal=1}}
{{csgo point|popcorn|internal=1}}


Line 6: Line 7:
{{Warning|This entity is responsible for most game crashes!}}
{{Warning|This entity is responsible for most game crashes!}}
<strong style="color:#8BC53F">To do&#58;&nbsp;</strong> What is its purpose?
<strong style="color:#8BC53F">To do&#58;&nbsp;</strong> What is its purpose?
Don't [[+use]] rapidly on this entity, it might +use you back.


This entity is able to materialize:
This entity is able to materialize:
Line 34: Line 37:
|}
|}


{|
|- style=vertical-align:top
|
==KeyValues==
==KeyValues==
{| class="mw-collapsible mw-collapsed" width="100%" style="background: none"
|+ style="text-align:left; font-weight:bold"|
|
{{KV|Age|intn=age|integer|The age of this entity. Higher values cause the entity to have less time; Lower values cause it to have less experience.}}
{{KV|Age|intn=age|integer|The age of this entity. Higher values cause the entity to have less time; Lower values cause it to have less experience.}}
{{KV|Activity|intn=activity|choices|This entity's current activity.
{{KV|Activity|intn=activity|choices|This entity's current activity.
:* 0 : ACT_IDLE
:* 0 : ACT_IDLE
:* 1 : ACT_WORK
:* 1 : ACT_WORK (kinda buggy)
:* 2 : ACT_WRITEVDCCONTENT
:* 2 : ACT_WRITEVDCCONTENT
:* 3 : ACT_IDLEWHILEWRITINGVDCCONTENT
}}
}}
{{KV|Start Disabled|intn=StartDisabled|boolean|Stay dormant until activated (with the <code>Enable</code> input).}}
{{KV|Start Disabled|intn=StartDisabled|boolean|Stay dormant until activated (with the <code>Enable</code> input).}}
Line 46: Line 56:
{{KV|Entity Scripts|scriptlist|intn=vscripts|Space delimited list of [[VScript]] files (without file extension) that are executed in this entity's mind after all entities have spawned.|since={{l4d2}}}}
{{KV|Entity Scripts|scriptlist|intn=vscripts|Space delimited list of [[VScript]] files (without file extension) that are executed in this entity's mind after all entities have spawned.|since={{l4d2}}}}
{{KV|Script think function|string|intn=thinkfunction|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|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since={{l4d2}}}}
{{KV|Script think function|string|intn=thinkfunction|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|Try to avoid expensive operations in this function, as it may cause performance problems.}}|since={{l4d2}}}}
 
|}
|
==Flags==
==Flags==
{| class="mw-collapsible mw-collapsed" width="100%" style="background: none"
|+ style="text-align:left; font-weight:bold"|
|
{{Fl|1|Start at home}}
{{Fl|1|Start at home}}
{{Fl|2|Allow {{ent|god}} }}
{{Fl|2|Allow {{ent|god}} }}
Line 54: Line 68:
{{Fl|65536|Knows the result of 2^16|since={{csgo}} }}
{{Fl|65536|Knows the result of 2^16|since={{csgo}} }}


|}
|
==Inputs==
==Inputs==
{| class="mw-collapsible mw-collapsed" width="100%" style="background: none"
|+ style="text-align:left; font-weight:bold"|
|
{{I EnableDisable}}
{{I EnableDisable}}
{{IO|Wake|Wakes this entity up. This process can take a while or even fail.}}
{{IO|Wake|Wakes this entity up. This process can take a while or even fail.}}
{{IO|EndQuarantine|nofgd=1|since={{HL:A}}|Allows this entity to move around freely.<br>{{tf2}} Only Medics can fire this input.<br>{{l4d}}{{l4d2}} Does not work for [[infected]].}}
{{IO|EndQuarantine|nofgd=1|since={{HL:A}}|Allows this entity to move around freely.<br>{{tf2}} Only Medics can fire this input.<br>{{l4d}}{{l4d2}} Does not work for [[infected]].}}
{{IO|Trigger|nofgd=1|deprecated=1|removed={{csgo}}|Triggers this entity, possibly causing a game crash.}}
{{IO|Trigger|nofgd=1|deprecated=1|Triggers this entity, possibly causing a game crash.}}


|}
|
==Outputs==
==Outputs==
{{IO|OnFunny|since=TF2|Fired when this entity tries to be funny.}}
{| class="mw-collapsible mw-collapsed" width="100%" style="background: none"
|+ style="text-align:left; font-weight:bold"|
|
{{IO|OnFunny|Fired when this entity tries to be funny.}}
{{IO|RUUUHEEEE|only=CSGO|Fired when the last is B.}}
{{IO|RUUUHEEEE|only=CSGO|Fired when the last is B.}}
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
<div style="max-height:5pt">OnFunny</div>
|}
|}
== See Also ==
* [[CS:GO Game Mode Commands]]
* [[Creating a Guardian Scenario Map]]
* {{ent|mp_items_prohibited}}
* {{ent|bot_quota}}
* [[CS:GO Game Mode - Retakes]]
* [[Counter-Strike: Global Offensive Mapper's Reference]]
* [[Nav Mesh Editing]]
* [[Creating a Classic Counter-Strike Map]]
* [[Setting up 1v1 Warmup Arenas]]
* [[List of Counter-Strike: Global Offensive Maps]]
* {{tl|csgo mode}}
* {{tl|Inline note}}
Ich habe eben ein Blatt gelocht, nur so am Rande.

Revision as of 09:16, 13 December 2021

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.
Bald ist die Luft raus

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?

Don't +use rapidly on this entity, it might +use you back.

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 (kinda buggy)
  • 2 : ACT_WRITEVDCCONTENT
  • 3 : ACT_IDLEWHILEWRITINGVDCCONTENT
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  !FGD Obsolete
Deprecated.
Triggers this entity, possibly causing a game crash.

Outputs

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

See Also

Ich habe eben ein Blatt gelocht, nur so am Rande.