Riot Cops. They are way too hard to kill. No puny plastic face mask is going to stop a bullet. And armor is not invincible, so emptying a whole clip or two should bring him down. With help from Mr. Zero and McFlurry
, I was able to solve this problem. It was also suggested to add Fallen Survivors and Jimmy Gibbs to this plugin, since they have an obnoxious amount of health.
- Head shots can kill riot cops from the front (4x damage)
- Body shots do a fraction of original damage to riot cops from the front (configurable)
- Head shots to fallen survivors and Jimmy Gibbs do much more damage (configurable)
sm_riotcopheadshot_enable - default 1 - Enables this plugin
sm_riotcopheadshot_riotheadenable - default 1 - 0: disabled, 1: Head shots kill riot cops, 2: Head shots do 1x to riot cops
sm_riotcopheadshot_riotbodydivisor - default 40.0 - How much to divide riot cop body shot damage by (0 will disable)
sm_riotcopheadshot_fallenheadmultiplier - default 12.0 - How much to multiply fallen head shots by (0 will disable)
sm_riotcopheadshot_debug - default 0 - Print debug output to chat
(new!) sm_riotcopheadshot_bodypenetrationdamage - default 13.0 - How much damage a penetrating weapon (magnum, military sniper, hunting rifle) should do to the body of a riot cop
I took some time to select the defaults carefully so that this is balanced instead of completely nerfing these uncommons
If enabled (1), head shots will always kill riot cops, no matter what weapon. If enabled (2), some weapons may need more than one bullet.
For body shots, it takes about one full clip of a tier 2 or a shotgun, and about two clips of an smg. This makes the riot cops much tougher than common infected, but not impossible. Penetrating weapons will take four shots to kill them.
For fallen survivors it took about 1-4 head shots with an smg and about 1-2 head shots with a tier 2 to bring down a fallen. Body damage is unaffected. Jimmy Gibbs has 3x as much health, so shots will have to scale accordingly. Since penetrating bullets to the body will kill Jimmy Gibbs, penetrating bullets to the head will do so as well.
v1.3: Fixed unhooking event (thanks Mr. Zero)
Potential stability fixes
v1.2: Added Jimmy Gibbs head shots and penetrating body damage to riot cops (228 views!)
This plugin requires SDKHooks!
I used 2.1, but it might
work with 2.0 (the version that introduced the TakeDamage native)
To install, download the smx (SDKHooks prevents the web compiler from working)
If upgrading, backup any modifications made to [game]/cfg/sourcemod/L4D2RiotCopHeadShot.cfg, then delete that file and restart your server. The file will be auto-created again with the new cvars. Modify as needed.