View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 01-19-2021 , 16:11   Re: [L4D2] Reverse Friendly-Fire [v1.6 (11-Jan-2021)]
Reply With Quote #21

Quote:
Originally Posted by Mystik Spiral View Post
I don't have an L4D1 server to do testing, but if someone can confirm it works properly, I'm certainly fine with adding it to the engine checks. Here is a draft version for someone to test and provide feedback.
You need to change this:
PHP Code:
if ( test != Engine_Left4Dead2 || test != Engine_Left4Dead 
to this:
PHP Code:
if ( test != Engine_Left4Dead2 && test != Engine_Left4Dead 
The way you currently have it will always fail in both games because the logic is that if the engine is NOT l4d1 OR l4d2, it will fail. So if I run it on l4d1, it will fail because the game is not l4d2. And if I run it on l4d2, it will fail because the game is not l4d1.

Left 4 Dead 1:
Code:
L 01/19/2021 - 13:08:04: SourceMod error session started
L 01/19/2021 - 13:08:04: Info (map "l4d_hospital01_apartment") (file "C:\l4d1ds\left4dead\addons\sourcemod\logs\errors_20210119.log")
L 01/19/2021 - 13:08:04: [SM] Failed to load plugin "l4d_reverse_ff.smx": Plugin only supports Left 4 Dead 1 & 2..
Left 4 Dead 2:
Code:
L 01/19/2021 - 13:09:42: SourceMod error session started
L 01/19/2021 - 13:09:42: Info (map "c8m1_apartment") (file "C:\l4d2ds\left4dead2\addons\sourcemod\logs\errors_20210119.log")
L 01/19/2021 - 13:09:42: [SM] Failed to load plugin "l4d_reverse_ff.smx": Plugin only supports Left 4 Dead 1 & 2..
__________________
Psyk0tik is offline