Prop car alarm: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added descripton to OnCarAlarmChirpStart and OnCarAlarmChirpEnd)
(changed intro text to add more detail about this entity)
Line 1: Line 1:
{{l4d series point|prop_car_alarm}} This class is the same as [[prop_physics]], with a car alarm. It is a car that calls a panic event when configured properly.
{{l4d series point|prop_car_alarm}} This class is the same as [[prop_physics]], but with special outputs used specifically for a car alarm.
This entity can sense people firing their weapons next to it and has outputs for that event. It will call a panic event the moment it's assigned model is touched or damaged, but then it will stop functioning like a car alarm and will effectively just be a [[prop_physics]]


== Keyvalues ==
== Keyvalues ==

Revision as of 13:06, 17 December 2017

Template:L4d series point This class is the same as prop_physics, but with special outputs used specifically for a car alarm. This entity can sense people firing their weapons next to it and has outputs for that event. It will call a panic event the moment it's assigned model is touched or damaged, but then it will stop functioning like a car alarm and will effectively just be a prop_physics

Keyvalues

Note.pngNote:Page left for viewable history, content moved to prop_physics

RenderFields:


Render Mode (rendermode) <byte choices>
Set a non-standard rendering mode on this entity.
Render Modes
  • 0: Normal
  • 1: Color
  • 2: Texture
  • 3: Glow
  • 4: Solid/Alphatest Obsolete
  • 5: Additive
  • 6: Removed, does nothing Obsolete
  • 7: Additive Fractional Frame
  • 8: Alpha Add
  • 9: World Space Glow
  • 10: Don't Render
Render FX (renderfx) <byte choices>
Various somewhat legacy alpha effects. See render effects.
Render Amount / Transparency (renderamt) <byte>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <color255>
Color tint.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Flags

Note.pngNote:Page left for viewable history, content moved to prop_physics

Inputs

Ignite
Ignite, burst into flames.
IgniteLifetime <floatRedirectInput/float>
Ignite with the given lifetime.
Todo: Before the flames extinguish, or before health reaches zero?
IgniteNumHitboxFires <integerRedirectInput/integer>
Ignite with the given number of hitbox fires.
IgniteHitboxFireScale <floatRedirectInput/float>
Ignite with the given hitbox fire scale.
Note.pngNote:Page left for viewable history, content moved to prop_physics

RenderFields:

Alpha <integer 0–255>
Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its rendermode set to a number other than 0.
Color <color255RedirectInput/color32>
Sets an RGB color for the entity.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnCarAlarmStart
Car alarm should go off
OnCarAlarmEnd
Car alarm has shut off
OnCarAlarmChirpStart
Warning chirp starts
OnCarAlarmChirpEnd
Warning chirp stopped
Note.pngNote:Page left for viewable history, content moved to prop_physics