prop_car_alarm
Jump to navigation
Jump to search
| CCarProp |
prop_car_alarm is a point entity available in ![]()
Left 4 Dead series. This class is the same as prop_physics, but with special outputs used specifically for a car alarm, to be used with prop_car_glass for its glass.
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 its assigned model is touched or damaged by Survivors, but then it will stop functioning like a car alarm and will effectively just be a prop_physics.
In
Left 4 Dead 2 there is a Prefab of this car, to be used as func_instance in "Left 4 Dead 2\sdk_content\mapsrc\instance\prop_car_alarm.vmf"
OnCarAlarmEnd Output. You can make this time longer by instead using an OnCarAlarmStart output which fires a relay after X amount of seconds, which will then fire whatever outputs OnCarAlarmEnd was firing.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enableinput).
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
- SurvivorStandingOnCar
- Activates alarm. Automatically sent when Survivor stands on or damages the car
Outputs
- OnCarAlarmStart
- !activator = !caller = this entity
Car alarm should go off
- OnCarAlarmEnd
- !activator = !caller = this entity
Car alarm has shut off
- OnCarAlarmChirpStart
- !activator = !caller = this entity
Warning chirp starts
- OnCarAlarmChirpEnd
- !activator = !caller = this entity
Warning chirp stopped
ConVars
| Cvar/Command | Parameters or default value | Descriptor | Effect |
|---|---|---|---|
| car_alarm_chirp_distance | 350 | ||
| car_alarm_chirp_duration | 1 | ||
| car_alarm_chirp_interval | 3 | ||
| car_alarm_distance | 750 | ||
| car_alarm_duration | 15 |