Physics cannister: Difference between revisions
Jump to navigation
Jump to search

Bug:This entity exists in
, but it remains unused and no fitting prop for it exists. It works if a model is added; however, once the thrusting is finished, it interacts glitchily when stood on. It pushes you off the canister prop in unpredictable ways, and the survivor bots keep melee bashing into it when standing nearby. [todo tested in ?]
Bug:This entity also exists in Template:Portal2series
, also unused and with the default prop missing.
Confirm:is it just as glitchy there as in L4D2? [todo tested in ?]
Note:The model should have a
The thrust will be simulated along the Z axis, visualized as the blue line of the attachment in HLMV.
Note:Page left for viewable history, content moved to prop_physics
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Page left for viewable history, content moved to prop_physics
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
Note:Page left for viewable history, content moved to prop_physics
(added bug note. tested in l4d2 with a custom prop that i had made myself. Also, changed note abotu attachment origin. Further testing showed it was the Z axis, not X.) |
Kestrelguy (talk | contribs) m (updated template usage.) |
||
Line 1: | Line 1: | ||
{{ | {{lang|Physics cannister}} | ||
[[File:Physics cannister.png|thumb|200px|A fire extinguisher turned | {{point ent|physics_cannister}} It is a physically simulated gas canister (with a misspelled entity name) that can have its cap shot off, at which point gas will start escaping, causing the canister to fly around. If it takes enough damage, it will explode. | ||
{{bug|This entity exists in {{l4d2}} but remains unused and no fitting prop for it exists. | [[File:Physics cannister.png|thumb|200px|A fire extinguisher turned into a <code>physics_cannister</code> by adding a <code>nozzle</code> attachment to the top. Thrust will be applied along the blue line.]] | ||
{{bug|This entity exists in {{l4d2}}, but it remains unused and no fitting prop for it exists. It works if a model is added; however, once the thrusting is finished, it interacts glitchily when stood on. It pushes you off the canister prop in unpredictable ways, and the survivor bots keep melee bashing into it when standing nearby.}} | |||
{{bug|This entity also exists in {{portal2series}}{{tf2}}{{csgo}}, also unused and with the default prop missing. {{confirm|is it just as glitchy there as in L4D2?}}}} | |||
{{Note|The model should have a <code>nozzle</code> attachment point, which is where gas will escape and thrust will be produced from.<br> | |||
The thrust will be simulated along the Z axis, visualized as the blue line of the attachment in HLMV.}} | |||
{{code class|CPhysicsCannister|physics_cannister.cpp}} | {{code class|CPhysicsCannister|physics_cannister.cpp}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV|Explosion Damage|string|The amount of damage done by the explosion created when the canister blows up.}} | |||
{{KV|Explosion Radius|string|The radius of the explosion to create when the canister blows up.}} | |||
{{KV|Health|integer|The amount of damage the canister takes before exploding.}} | |||
{{KV|Explosion Damage|string|The amount of damage done by the explosion created when the | {{KV|Thrust|string|When the cap has been blown off, and the escaping gas is thrusting the canister about, this is the amount of thrust generated.}} | ||
{{KV|Explosion Radius|string|The radius of the explosion to create when the | {{KV|Fuel Seconds|string|The amount of time that gas leaks from the canister before being considered empty.}} | ||
{{KV|Health|integer|The amount of damage the | |||
{{KV|Thrust|string|When the cap has been blown off, and the escaping gas is thrusting the | |||
{{KV|Fuel Seconds|string|The amount of time that gas leaks from the | |||
{{KV|Smoke Color (R G B)|color255|Color of the smoke.}} | {{KV|Smoke Color (R G B)|color255|Color of the smoke.}} | ||
{{KV|Smoke Alpha (0 - 255)| | {{KV|Smoke Alpha (0 - 255)|int 0-255|Transparency of the smoke.}} | ||
{{KV|Thruster Sound|sound|The sound played when the gas is escaping from the | {{KV|Thruster Sound|sound|The sound played when the gas is escaping from the canister.}} | ||
{{KV | {{KV BaseEntity}} | ||
{{KV | {{KV BasePropPhysics|nofgd=1}} | ||
== Flags == | == Flags == | ||
{{fl|1|Start Asleep}} | |||
{{fl|2|Explodes}} | |||
== Inputs == | == Inputs == | ||
{{IO|Activate|Start gas escaping from the | {{IO|Activate|Start gas escaping from the canister.|param=string}} | ||
{{IO|Deactivate|Stop gas escaping from the | {{IO|Deactivate|Stop gas escaping from the canister.|param=string}} | ||
{{IO|Explode|Force the | {{IO|Explode|Force the canister to explode.|param=string}} | ||
{{IO|Wake|Wakes up the | {{IO|Wake|Wakes up the canister, if it is sleeping.}} | ||
{{I | {{I BaseEntity}} | ||
{{I BaseAnimating|nofgd=1|portal2=1}} | |||
{{I BasePropPhysics|nofgd=1}} | |||
== Outputs == | == Outputs == | ||
{{IO|OnActivate|Fired when gas starts to escape from the | {{IO|OnActivate|Fired when gas starts to escape from the canister.}} | ||
{{IO|OnAwakened|Fired when this entity becomes awake (collision/force is applied).}} | {{IO|OnAwakened|Fired when this entity becomes awake (collision/force is applied).}} | ||
{{O | {{O BaseEntity|l4d2=1}} | ||
{{O BaseAnimating|portal2=1}} | |||
{{O BasePropPhysics|portal2=1|l4d=1}} |
Revision as of 11:00, 19 May 2022


Template:Point ent It is a physically simulated gas canister (with a misspelled entity name) that can have its cap shot off, at which point gas will start escaping, causing the canister to fly around. If it takes enough damage, it will explode.







nozzle
attachment point, which is where gas will escape and thrust will be produced from.The thrust will be simulated along the Z axis, visualized as the blue line of the attachment in HLMV.
Keyvalues
- Explosion Damage ([todo internal name (i)]) <string>
- The amount of damage done by the explosion created when the canister blows up.
- Explosion Radius ([todo internal name (i)]) <string>
- The radius of the explosion to create when the canister blows up.
- Health ([todo internal name (i)]) <integer>
- The amount of damage the canister takes before exploding.
- Thrust ([todo internal name (i)]) <string>
- When the cap has been blown off, and the escaping gas is thrusting the canister about, this is the amount of thrust generated.
- Fuel Seconds ([todo internal name (i)]) <string>
- The amount of time that gas leaks from the canister before being considered empty.
- Thruster Sound ([todo internal name (i)]) <sound>
- The sound played when the gas is escaping from the canister.

Flags
- Start Asleep : [1]
- Explodes : [2]
Inputs
- Activate <string >
- Start gas escaping from the canister.
- Deactivate <string >
- Stop gas escaping from the canister.
- Explode <string >
- Force the canister to explode.
- Wake
- Wakes up the canister, if it is sleeping.


Outputs
- OnActivate
- Fired when gas starts to escape from the canister.
- OnAwakened
- Fired when this entity becomes awake (collision/force is applied).

