Prop exploding futbol: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added screenshot)
No edit summary
 
(12 intermediate revisions by 9 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}}
{{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).


{{Ent not in fgd}}
==Keyvalues==
{{stub}}
{{KV Targetname}}
{{KV|Explode on touch|intn=explodeontouch|boolean|If the futbol should explode when it touches something.}}
{{portal2 point|prop_exploding_futbol}} 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.
{{KV|Spawner Name|intn=SpawnerName|string|Name of prop_exploding_futbol_spawner for this futbol to respawn in once it has exploded.}}
{{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|Explode on touch|intn=ExplodeOnTouch|boolean|If the futbol should explode when it touches something.}}


== FGD Code ==
==Inputs==
<source lang="text">
{{I|Explode|Explodes the futbol.}}
@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"
{{OtherKIO|prop_physics}}
]
</source>


== Keyvalues ==
==See also==
{{KV|Explode on touch|boolean|<code>Explode</code> futbol when touching a surface?}}
* {{ent|prop_glass_futbol}}, a related but unused entity.
{{KV BasePropPhysics}}
{{KV Breakable}}


== Flags ==
[[Category:Prop entities|exploding futbol]]
* 256 : ????
* 512 : ????
{{Fl BasePropPhysics}}
 
== Inputs ==
{{IO|Explode|Explode futbol}}
{{I BasePropPhysics}}
{{I Breakable}}
 
== Outputs ==
{{O BasePropPhysics}}
{{O Breakable}}
 
==See also==
* [[prop_exploding_futbol_spawner]]
* [[prop_glass_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