Prop exploding futbol: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(.)
No edit summary
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[File:prop_exploding_futbol_spawner.jpg|thumb|In-game screenshot of a [[prop_exploding_futbol_spawner]], holding a spawned prop_exploding_futbol.]]
{{LanguageBar}}
 
{{CD|???|base=CPhysicsProp}}
{{Ent not in fgd}}
{{this is a|model entity|game=Portal 2|name=prop_exploding_futbol}} It creates a bomb that explodes on contact with any solid object. These are used near the end of the campaign, where they are either spawned from a {{ent|point_template}} (for bomb droppers) or fired from a {{ent|point_futbol_shooter}} (for Wheatley's battle).
 
{{portal2 point|prop_exploding_futbol}}  
 
==Entity description==
It creates a bomb that explodes as soon as it touches the world or any player/NPC. This is spawned by a [[prop_exploding_futbol_spawner]], but can also be placed manually for whatever reason it needs to be.
 
== FGD Code ==
<source lang="text">
@PointClass base(BasePropPhysics, Breakable) sphere(fademindist) sphere(fademaxdist) studio("models/npcs/personality_sphere_angry.mdl") = prop_exploding_futbol :
"Exploding futbol"
[
spawnflags(flags) =
[
256 : "????" : 1
512 : "????" : 1
]
 
ExplodeOnTouch(boolean) : "Explode on touch" : 1 : "Explode futbol when touching a surface?"
 
input Explode(void) : "Explode futbol"
]
</source>
 
==Flags==
* 256 : ????
* 512 : ????
{{Fl BasePropPhysics}}


==Keyvalues==
==Keyvalues==
{{KV|Explode on touch|boolean|<code>Explode</code> futbol when touching a surface?}}
{{KV Targetname}}
{{KV BreakableProp|nohl2=1}}
{{KV|Explode on touch|intn=explodeontouch|boolean|If the futbol should explode when it touches something.}}
{{KV BasePropPhysics}}
{{KV|Spawner Name|intn=SpawnerName|string|Name of prop_exploding_futbol_spawner for this futbol to respawn in once it has exploded.}}
{{KV BaseAnimating}}
{{KV|Should Respawn|intn=ShouldRespawn|boolean|Should the futbol respawn at its spawner after exploding. Note: Spawner needs to be set for this to work.}}
{{KV BaseEntity|l4d=1|l4d2=1}}
{{KV|Explode on touch|intn=ExplodeOnTouch|boolean|If the futbol should explode when it touches something.}}


==Inputs==
==Inputs==
{{IO|Explode|Explode futbol}}
{{I|Explode|Explodes the futbol.}}
{{I BasePropPhysics}}
 
{{I BreakableProp|nohl2=1}}
{{I BaseAnimating|portal2=1}}
{{I BaseEntity}}


==Outputs==
{{OtherKIO|prop_physics}}
{{O BasePropPhysics|nohl2=1}}
{{O Breakable|prop=1|nohl2=1}}
{{O BaseAnimating|portal2=1}}
{{O BaseEntity}}


==See also==
==See also==
* [[prop_exploding_futbol_spawner]]
* {{ent|prop_glass_futbol}}, a related but unused entity.
* [[prop_glass_futbol]]
 
[[Category:Prop entities|exploding futbol]]

Latest revision as of 01:12, 30 June 2025

English (en)中文 (zh)Translate (Translate)
C++ Class hierarchy
???
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity

prop_exploding_futbol is a model entity available in Portal 2 Portal 2. It creates a bomb that explodes on contact with any solid object. These are used near the end of the campaign, where they are either spawned from a point_template (for bomb droppers) or fired from a point_futbol_shooter (for Wheatley's battle).

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Explode on touch (explodeontouch) <boolean>
If the futbol should explode when it touches something.
Spawner Name (SpawnerName) <string>
Name of prop_exploding_futbol_spawner for this futbol to respawn in once it has exploded.
Should Respawn (ShouldRespawn) <boolean>
Should the futbol respawn at its spawner after exploding. Note: Spawner needs to be set for this to work.
Explode on touch (ExplodeOnTouch) <boolean>
If the futbol should explode when it touches something.

Inputs

Explode
Explodes the futbol.


Note.pngNote:Other Keyvalues / Inputs / Outputs are same as prop_physics.

See also