Left 4 Dead 2

Left 4 Dead 2

39 ratings
All commands of Explosive Cars script
By Hex To Max
All commands of Explosive Cars Script
   
Award
Favorite
Favorited
Unfavorite
Instructions on commands
- All commands are host-only and detected by typing to chat box
- The value of all commands will be saved automatically right after typed so you don't have to type repeatedly every time create a room
(the path: ~\Left 4 Dead 2\left4dead2\ems\hextomax_explosive_car\[command name].txt)
- By typing only the command you can see a brief description about it in game
Basic commands
!excar_maxcarhp [value] - Max HP of the car
(range of values: 100 ~ 99999) (default: 2500)

!excar_enable_chat [value] - Enable chat notification of who exploded the car (apply only to survivor)
(range of values: 1 enable / 0 disable) (default: 1)

!excar_enable_panic_event [value] - Cause zombie horde when the car exploded
(range of values: 1 enable / 0 disable) (default: 1)

!excar_enable_panic_event_chat [value] - Enable chat notification of zombie horde event when the car exploded
(range of values: 1 enable / 0 disable) (default: 1)

!excar_panic_chance [value] - The chance of zombie horde event when the car exploded (1 means 1%, 100 means 100%)
(range of values: 1 ~ 100) (default: 50)

!excar_enable_stagger [value] - Enable stagger effect when the car exploded
If the value is 3 stagger effect will apply to all
If the value is 2 stagger effect will apply only to infected
If the value is 1 stagger effect will apply only to survivor
note: stagger effect always applies to who is very close to the car explosion regardless of the value
(range of values: 3/2/1/0) (default: 3)

!excar_stagger_range [value] - The range of stagger effect
(range of values: 1 ~ 1000) (default: 300)

!excar_enable_after_fire [value] - Enable fire spread(exactly the same as molotov fire) when the car exploded
(range of values: 1 enable / 0 disable) (default: 1)

!excar_explosion_magnitude [value] - The magnitude of car explosion (this will affect explosion damage)
(range of values: 1 ~ 10000) (default: 30)

!excar_explosion_radius [value] - The radius of car explosion (this will affect explosion damage range)
(range of values: 1 ~ 10000) (default: 400)

!excar_enable_auto_explosion [value] - Enable auto explosion when the car's HP is less than 1/5(flashing red outline)
(range of values: 1 enable / 0 disable) (default: 1)

!excar_auto_explosion_time [value] - Auto explosion will be activated after this time (unit: second)
(range of values: 1 ~ 300) (default: 30)

!excar_extinguish_time [value] - When the car exploded the fire particle and sound attached to the car will be removed after this time (unit: second)
(range of values: 1 ~ 300 / 0 infinite) (default: 60)

!excar_enable_outline [value] - Enable explosive car outline (outline color depends on the car's HP(yellow -> orange -> red -> flashing red))
(range of values: 1 enable / 0 disable) (default: 1)

!excar_outline_range [value] - The range of outline in which survivor can see the outline of explosive car
(range of values: 1 ~ 10000 / 0 infinite) (default: 500)
Commands for car's physical movement
!excar_car_impulse_vel_x_min [value] (default: 50)
!excar_car_impulse_vel_x_max [value] (default: 150)
!excar_car_impulse_vel_y_min [value] (default: 50)
!excar_car_impulse_vel_y_max [value] (default: 150)
!excar_car_impulse_vel_z_min [value] (default: 75)
!excar_car_impulse_vel_z_max [value] (default: 250)
(range of values: 0 ~ 10000)
The value of velocity impulse on the each axis

!excar_car_impulse_ang_x_min [value] (default: 25)
!excar_car_impulse_ang_x_max [value] (default: 75)
!excar_car_impulse_ang_y_min [value] (default: 25)
!excar_car_impulse_ang_y_max [value] (default: 75)
!excar_car_impulse_ang_z_min [value] (default: 38)
!excar_car_impulse_ang_z_max [value] (default: 125)
(range of values: 0 ~ 10000)
The value of angular velocity impulse on the each axis (this will affect the car's angular movement)
note: The velocity impulse value will be determined randomly from the min value to the max value
Commands for performance
!excar_enable_perf [value] - Enable performance mode which removes some visual effects made when the car exploded
If the value is 2, performance mode is enabled regardless of the map
If the value is 1, performance mode is enabled only in specific maps you can set by !excar_perf_map_1(~10) MAPNAME
(range of values: 2 always / 1 in specific maps / 0 disable) (default: 1)

!excar_perf_map_1 [MAPNAME] (default: c5m3_cemetery)
!excar_perf_map_2 [MAPNAME] (default: c5m5_bridge)
!excar_perf_map_3 [MAPNAME] (default: none)
...
!excar_perf_map_10 [MAPNAME] (default: none)
Set the map name in which performance mode will be enabled
You can set the map names up to 10


!excar_disable_mod [value] - Disable Explosive Cars mod
If the value is 2, Explosive Cars mod is disabled regardless of the map
If the value is 1, Explosive Cars mod is disabled only in specific maps you can set by !excar_disable_map_1(~10) MAPNAME
(range of values: 2 always / 1 in specific maps / 0 disable) (default: 0)

!excar_disable_map_1 [MAPNAME] (default: none)
!excar_disable_map_2 [MAPNAME] (default: none)
!excar_disable_map_3 [MAPNAME] (default: none)
...
!excar_disable_map_10 [MAPNAME] (default: none)
Set the map name in which Explosive Cars mod will be disabled
You can set the map names up to 10
Commands for weapon damage
!excar_w_[weapon name] [value] - Set damage multiplier of the weapon for the car
(range of values: 0 or 0.1 ~ 100.0)
The value will be rounded off to one decimal place


<List of weapon names>
Weapon
Name
Default value
Melee weapons
melee
0.1
Default pistol
pistol
1.0
Magnum pistol
pistol_magnum
1.0
Uzi
smg
1.0
Mac-10 Silenced
smg_silenced
1.0
CSS MP5
smg_mp5
1.0
M16
rifle
1.0
AK47
rifle_ak47
1.0
Desert Rifle
rifle_desert
1.0
CSS SG552
rifle_sg552
1.0
M60
rifle_m60
1.5
Wood Pump Shotgun
pumpshotgun
1.0
Chrome Shotgun
shotgun_chrome
1.0
Benelli Auto Shotgun
autoshotgun
1.0
SPAS Auto Shotgun
shotgun_spas
1.0
Hunting Rifle
hunting_rifle
1.0
Military Sniper Rifle
sniper_military
1.0
CSS Scout
sniper_scout
1.0
CSS AWP
sniper_awp
1.5
Mounted L4D1 Minigun
minigun
1.0
Mounted L4D2 Machine Gun
mounted_machine_gun
4.0
Incendiary ammo
incendiary_multi
2.0
Explosive ammo
explosive_multi
4.0
Gas can, Molotov, Firework crate
fire
20.0
Pipe bomb, Propane canister
pipe_blast
50.0
Grenade launcher
grenade_launcher
10.0
Environmental explosion(ex: bombing in the Parish)
env_blast
50.0
Tank punch
tank_claw
1.5
Tank rock
tank_rock
1.5
Commands of each preset
<Preset_default>
!excar_car_impulse_vel_x_min 50
!excar_car_impulse_vel_x_max 150
!excar_car_impulse_vel_y_min 50
!excar_car_impulse_vel_y_max 150
!excar_car_impulse_vel_z_min 75
!excar_car_impulse_vel_z_max 250
!excar_car_impulse_ang_x_min 25
!excar_car_impulse_ang_x_max 75
!excar_car_impulse_ang_y_min 25
!excar_car_impulse_ang_y_max 75
!excar_car_impulse_ang_z_min 38
!excar_car_impulse_ang_z_max 125

<Preset_rocket>
!excar_car_impulse_vel_x_min 0
!excar_car_impulse_vel_x_max 0
!excar_car_impulse_vel_y_min 0
!excar_car_impulse_vel_y_max 0
!excar_car_impulse_vel_z_min 5000
!excar_car_impulse_vel_z_max 5000
!excar_car_impulse_ang_x_min 0
!excar_car_impulse_ang_x_max 0
!excar_car_impulse_ang_y_min 0
!excar_car_impulse_ang_y_max 0
!excar_car_impulse_ang_z_min 0
!excar_car_impulse_ang_z_max 0

<Preset_rocket_spin>
!excar_car_impulse_vel_x_min 0
!excar_car_impulse_vel_x_max 0
!excar_car_impulse_vel_y_min 0
!excar_car_impulse_vel_y_max 0
!excar_car_impulse_vel_z_min 5000
!excar_car_impulse_vel_z_max 5000
!excar_car_impulse_ang_x_min 0
!excar_car_impulse_ang_x_max 0
!excar_car_impulse_ang_y_min 0
!excar_car_impulse_ang_y_max 0
!excar_car_impulse_ang_z_min 5000
!excar_car_impulse_ang_z_max 5000
29 Comments
The Gr&yKn!gh7 30 Apr @ 5:51am 
@Hex To Max So can I alter these presets from the ems file? Or is it entirely based on commands in-game???
eidonabramm 30 Jan @ 1:20pm 
okay thanks do I also need to type sv_cheats 1?
Hex To Max  [author] 29 Jan @ 1:05am 
yes you have to at the first time but after that you can edit saved txt files directly being out of the game (path: \left4dead2\ems\hextomax_explosive_car\[command name].txt)
eidonabramm 28 Jan @ 10:08pm 
Do i have to be in a game I host to use the commands.
Fuzee 23 Nov, 2023 @ 1:36am 
the car's hp command doesn't work for some reason, it only says "unknown command"
OwO 1 Jun, 2023 @ 11:50am 
i see, thanks Hex
Hex To Max  [author] 31 May, 2023 @ 6:22pm 
@OwO oh i forgot to mention about grenade launcher; use !excar_w_grenade_launcher
OwO 31 May, 2023 @ 4:06pm 
is it possible to make a !excar_w_ for the grenade launcher?
Antonio 18 Mar, 2023 @ 11:01pm 
@Hex To Max Thank you very much for clarifying, I enjoy it a lot! I don't know if I'm asking for much, even so it would be great if instead of pushing the survivors when causing the explosion, I took them flying according to the parameters configured as the alliermodders explosive cars :cmwx:
Hex To Max  [author] 16 Mar, 2023 @ 11:31am 
@Antonio use the commands in the section [Commands for performance] and u can also use the command !excar_w_pipe_blast and !excar_w_fire to reduce explosion/fire damage inflicted to cars