Flashbang projectile: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{ent not in fgd}}
{{ent not in fgd}}
{{CD|CFlashbangProjectile|file1=flashbang_projectile.cpp}}
{{this is a|point entity|game1=Counter-Strike: Global Offensive|name=flashbang_projectile|game=Counter-Strike: Source}}
{{this is a|point entity|game1=Counter-Strike: Global Offensive|name=flashbang_projectile|game=Counter-Strike: Source}}


Line 8: Line 9:
* {{css}} do nothing.
* {{css}} do nothing.
* {{csgo}} explode after a fixed duration, as if it was thrown by a [[player]] (unless it receives the <code>SetTimer</code> input).
* {{csgo}} explode after a fixed duration, as if it was thrown by a [[player]] (unless it receives the <code>SetTimer</code> input).
== Keyvalues ==
{{KV BaseEntity|csgo=1}}
<!--{{KV BaseAnimating}}-->


== Inputs ==
== Inputs ==
{{IO|SetTimer|only={{csgo}}|param=float|Sets the fuse time of this entity until it explodes.}}
{{IO|SetTimer|only={{csgo}}|param=float|Sets the fuse time of this entity until it explodes.}}
{{I BaseEntity}}
{{I BaseAnimating|portal2=1}}
== Outputs ==
{{O BaseEntity}}
{{O BaseAnimating}}

Revision as of 14:12, 2 July 2024

Icon-NotInFGD.png
This entity is not in the Counter-Strike: Source FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CFlashbangProjectile
CBaseCSGrenadeProjectile
CBaseGrenade
CBaseAnimating
CBaseEntity
C++ flashbang_projectile.cpp

flashbang_projectile is a point entity available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Entity Description

Thrown version of weapon_flashbang.

When this entity is created using ent_create flashbang_projectile, it will...

  • Counter-Strike: Source do nothing.
  • Counter-Strike: Global Offensive explode after a fixed duration, as if it was thrown by a player (unless it receives the SetTimer input).

Inputs

SetTimer <floatRedirectInput/float> (only in Counter-Strike: Global Offensive)
Sets the fuse time of this entity until it explodes.