Left 4 Dead 2

Left 4 Dead 2

View Stats:
This topic has been locked
Easiest possible way to remove friendly fire?
It's really annoying :i.
< >
Showing 1-15 of 20 comments
Dr Chaos MK Jul 9, 2014 @ 6:08pm 
Only through cheats and / or admin commands on your own server. You cannot toggle friendly fire on or off in L4D 2. I KNOW you can in Team Fortress & Counter - Strike. But not in Left 4 Dead oddly enough. Even though all 3 game titles I said are official Valve titles.
Play on Easy.
Knappy Jul 9, 2014 @ 6:34pm 
For server admins in their server.cfg or console:
sm_cvar survivor_friendly_fire_factor_easy 0 sm_cvar survivor_friendly_fire_factor_expert 0 sm_cvar survivor_friendly_fire_factor_hard 0 sm_cvar survivor_friendly_fire_factor_normal 0
Posting original values so people know how to undo that


survivor_friendly_fire_factor_easy : 0 : , "sv", "cheat" :
survivor_friendly_fire_factor_expert : 0.5 : , "sv", "cheat" :
survivor_friendly_fire_factor_hard : 0.3 : , "sv", "cheat" :
survivor_friendly_fire_factor_normal : 0.1 : , "sv", "cheat" :


Also, I think using sm_cvar requires Sourcemod, which isn't that hard really, once you've gone through the trouble of installing a server.
Dharok Jul 9, 2014 @ 6:53pm 
As Knappy said, you may disable it through server.cfg for admins.
And as scintillating said, yes it requires your server to have SourceMod.
Otherwise, I don't believe there exists a way to remove it on vanilla servers, but I'm willing to be corrected on that as there may be a way to remove FF on a listen server with sv_cheats set to 1 ?
Dr Chaos MK Jul 9, 2014 @ 7:09pm 
Originally posted by scintillating luminescence:
Play on Easy.
Oh right. Forgot about that.
Haha, so as it turns out, occasionally the game forgives friendly fire on its own. I never quite figured out how the engine decides to block friendly fire damage, even though I could tell when it was going to do so. And I'm not talking about a guy who's being smoked is immune to friendly fire, I mean a survivor who should have otherwise taken damage did not do so. I detected these as calls to OnTakeDamage but the amount of damage done was 0, and then printed them to the chat log.

In fact...whew boy...yeah, friendly fire itself is a complicated topic. For example, pinned survivors are immune to friendly fire, right? Not so if you're being Carried by a Charger. Your friendly fire immunity doesn't kick in until you're being Pummeled.
Knappy Jul 9, 2014 @ 7:49pm 
Originally posted by scintillating luminescence:
Posting original values so people know how to undo that.
To undo it you would simply remove the cvar from the server.cfg. This topic was to disable FF, not modify it's damage.

Edit, unless your server has sv_cheats 1 then the only way to disable FF or modify it is via the server.cfg
Last edited by Knappy; Jul 9, 2014 @ 8:04pm
It's not necessary to use server.cfg, admins (of servers with Sourcemod) can type sm_cvar from the console. This is useful if the admin only wants to disable FF for their game, without affecting everyone else's games. In that case, you'd want to know the default values.
Last edited by scintillating luminescence; Jul 9, 2014 @ 8:06pm
Knappy Jul 9, 2014 @ 8:09pm 
Originally posted by scintillating luminescence:
It's not necessary to use server.cfg, admins (of servers with Sourcemod) can type sm_cvar from the console. This is useful if the admin only wants to disable FF for their game, without affecting everyone else's games. In that case, you'd want to know the default values.

In order to send those commands via the console, you would need to enable cheats in the server.cfg:
sv_cheats 1
I highly advise against enabling cheats at all, let alone for this issue.

Also any server restart or map change would overwrite the command.
Last edited by Knappy; Jul 9, 2014 @ 8:12pm
No, you do not need to use sv_cheats if you have Sourcemod (hence my edit). sm_cvar is able to change cvar values without enabling cheats. Trust me.

EDIT:

Server restart, yes. Map change, no. Even if the campaign ends and a new lobby begins. I know this for a fact; I would play Special Delivery on Expert with infinite ammo, and then when I would quit that game and start a new game, infinite ammo was still on.

Now, server.cfg is run pretty often, but if you never put these values in server.cfg to begin with...
Last edited by scintillating luminescence; Jul 9, 2014 @ 8:15pm
Knappy Jul 9, 2014 @ 8:14pm 
Originally posted by scintillating luminescence:
No, you do not need to use sv_cheats if you have Sourcemod (hence my edit). sm_cvar is able to change cvar values without enabling cheats. Trust me.

True, I was referring to non-SM sock servers. :P
Your original command used sm_cvar. Non-SM servers do not have sm_cvar.
Knappy Jul 9, 2014 @ 8:20pm 
Originally posted by scintillating luminescence:
Your original command used sm_cvar. Non-SM servers do not have sm_cvar.
Copied from my server.cfg As far as I am concerned this issue is resolved.
Last edited by Knappy; Jul 9, 2014 @ 8:21pm
If you copied that from your server.cfg, then you are running a server with Sourcemod installed (go ahead, type "sm version" into the console). Otherwise, whenever your server.cfg executed, your server console would spit out all kinds of errors about how sm_cvar is an unknown command.
< >
Showing 1-15 of 20 comments
Per page: 1530 50

Date Posted: Jul 9, 2014 @ 6:06pm
Posts: 20