Molotov projectile: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Ent not in fgd}}
{{Tabs|molotov_projectile|csgo=1|custom1=molotov projectile (Left 4 Dead series)|custom1alt=Left 4 Dead series|main=csgo}}
{{CD|CMolotovProjectile|file1=molotov_projectile.cpp}}
{{CD|CMolotovProjectile|file1=molotov_projectile.cpp}}
{{this is a|point entity|game1=Counter-Strike: Global Offensive|name=molotov_projectile|game=Left 4 Dead series}} It's a projectile spawned when throwing {{ent|weapon_molotov}} and spawns {{ent|inferno}} where it breaks.
{{this is a|model entity|game=Counter-Strike: Global Offensive|name=molotov_projectile}} It's a projectile spawned when throwing {{ent|weapon_molotov}} and spawns {{ent|inferno}} where it breaks.
{{Note|If it hits {{ent|prop_car_alarm}} or {{ent|prop_car_glass}} it deals 10 generic damage with thrower as attacker thus setting off potential alarm}}
 
__NOTOC__
__NOTOC__
== Keyvalues ==
== Keyvalues ==
Line 8: Line 8:


== Flags ==
== Flags ==
{{fl|1|Start Constrained|Prevents the model from moving.|only={{csgo}}}}
{{fl|1|Start Constrained|Prevents the model from moving.}}


== Inputs ==
== Inputs ==
{{IO|InitializeSpawnFromWorld|Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.|only={{csgo}}}}
{{I|InitializeSpawnFromWorld|Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.}}


== See Also ==
== See Also ==
* {{ent|weapon_molotov_spawn}}
* {{ent|weapon_molotov}}
* {{ent|weapon_molotov}}
* {{ent|vomitjar_projectile}}
* {{ent|pipe_bomb_projectile}}
* {{ent|inferno}}
* {{ent|inferno}}

Latest revision as of 04:32, 19 May 2025

C++ Class hierarchy
CMolotovProjectile
CBaseCSGrenadeProjectile
CBaseGrenade
CBaseAnimating
CBaseEntity
C++ molotov_projectile.cpp

molotov_projectile is a model entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. It's a projectile spawned when throwing weapon_molotov and spawns inferno where it breaks.


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

Flags

Start Constrained : [1]
Prevents the model from moving.

Inputs

InitializeSpawnFromWorld
Activates the grenade, causing it to explode after a few seconds as if it was thrown by a player.

See Also