Physics cannister: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Availability: class&file)
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=physics_cannister}}
{{wrongtitle|title=physics_cannister}}
{{base_point}}


==Entity Description==
==Entity Description==
A physically simulated gas cannister that can have its cap shot off, at which point gas will start escaping and cause the cannister to fly around. If it takes enough damage, it will explode.  
A physically simulated gas cannister that can have its cap shot off, at which point gas will start escaping and cause the cannister to fly around. If it takes enough damage, it will explode.  


==Availability==
{{in game|point}} {{game-base}}
{{in code|class=class_c_physics_cannister.html CPhysicsCannister|file=physics__cannister_8cpp-source.html physics_cannister.cpp}}
{{in code|class=class_c_physics_cannister.html CPhysicsCannister|file=physics__cannister_8cpp-source.html physics_cannister.cpp}}


Line 49: Line 48:
*'''OnActivate'''
*'''OnActivate'''
:Fired when gas starts to escape from the cannister. {{activator|activator}}
:Fired when gas starts to escape from the cannister. {{activator|activator}}
[[Category:Entities]]

Revision as of 15:38, 12 April 2008

Template:Wrongtitle Template:Base point

Entity Description

A physically simulated gas cannister that can have its cap shot off, at which point gas will start escaping and cause the cannister to fly around. If it takes enough damage, it will explode.

Template:In code

Keyvalues

<studio> World model.
  • expdamage
<string> The amount of damage done by the explosion created when the cannister blows up.
  • expradius
<string> The radius of the explosion to create when the cannister blows up.
  • health
<integer> The amount of damage the cannister takes before exploding.
  • thrust
<string> When the cap has been blown off, and the escaping gas is thrusting the cannister about, this is the amount of thrust generated.
  • fuel
<string> The amount of time that gas leaks from the cannister before being considered empty.
  • rendercolor
<color255> Smoke Color (R G B).
  • renderamt
<integer> Smoke Alpha (0 - 255).
  • gassound
<sound> The sound played when the gas is escaping from the cannister.

Flags

  • 1 : Start Asleep
  • 2 : Explodes

Inputs

Start gas escaping from the cannister.
  • Deactivate <string>
Stop gas escaping from the cannister.
  • Explode <string>
Force the cannister to explode.
  • Wake
Wakes up the cannister, if it is sleeping.

Outputs

Fired when gas starts to escape from the cannister. (!activator is the activator)