Raised This Month: $51 Target: $400
 12% 

[L4D2] Difficulty Override


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ProdigySim
SourceMod Plugin Approver
Join Date: Feb 2010
Plugin ID:
2049
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Forces the game to obey z_difficulty in non-campaign modes
    Old 11-02-2010 , 17:24   [L4D2] Difficulty Override
    Reply With Quote #1

    Description: Allows z_difficulty to be used to affect gameplay in non-campaign modes

    CVars: l4d2_force_difficulty - 1 to enable difficulty overriding, 0 to disable (default 0)

    How to use: Set z_difficulty to whatever you want (easy, normal, hard, impossible), and set l4d2_force_difficulty to 1

    Results: Common damage and horde sizes/timers (and other director functions) will act like they do in the given difficulty setting, even in non-campaign modes. This lets you run Advanced Versus or Expert Versus servers, etc.

    Requires Left4Downtown2! (At least 0.5.2.2)

    Most of the credit should go to Atomic Stryker for initiating interest in this and finding/adding the forward to left4downtown. I just made a plugin to use it and decided to release it.

    Changes:
    1.0 Inital realease (for l4dt2 0.5.2.0, linux only)
    1.1 Fix for both windows and linux--requires Left4Downtown2 0.5.2.2
    Attached Files
    File Type: sp Get Plugin or Get Source (difficultyoverride.sp - 1517 views - 626 Bytes)
    File Type: smx difficultyoverride.smx (2.2 KB, 1547 views)

    Last edited by ProdigySim; 11-28-2010 at 20:54. Reason: Because it was broken
    ProdigySim is offline
    crazydog
    AlliedModders Donor
    Join Date: Jan 2006
    Old 11-02-2010 , 17:36   Re: [L4D2] Difficulty Override
    Reply With Quote #2

    How is this different from using 'sm_cvar z_difficulty whatever'
    crazydog is offline
    ProdigySim
    SourceMod Plugin Approver
    Join Date: Feb 2010
    Old 11-02-2010 , 17:45   Re: [L4D2] Difficulty Override
    Reply With Quote #3

    In L4D2, z_difficulty doesn't get used in all gamemodes. It's ignored in versus, and probably in scavenge, survival, etc.

    Actually, I think it's only used in game modes where the "base" gamemode is coop. (base gamemode is determined by settings in gamemodes.txt)

    This plugin makes it so the difficulty calculation obey the z_difficulty cvar everywhere

    Last edited by ProdigySim; 11-02-2010 at 18:46.
    ProdigySim is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-02-2010 , 17:49   Re: [L4D2] Difficulty Override
    Reply With Quote #4

    everywhere is a bit too far. It won't affect things that versus-specific convars exist for, such as SI melee damage. But hey, there are convars for these things.
    AtomicStryker is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 11-02-2010 , 17:56   Re: [L4D2] Difficulty Override
    Reply With Quote #5

    Hi, i'm from this thread :http://forums.alliedmods.net/showthr...=141561&page=2
    I tried your plugin 'cause i really want to change difficulty in versus game!
    I downloaded it, and placed it in the Sourcemod's Plugins' folder.
    I loaded a versus map, then i writed "l4d2_force_difficulty 1", then "z_difficulty impossible".
    The problem is that when a zombie hitted me, my health went to 98, (it should be 80).
    So this doesn't work... what i wrong?

    Last edited by paul92; 11-02-2010 at 17:58. Reason: Grammar
    paul92 is offline
    ProdigySim
    SourceMod Plugin Approver
    Join Date: Feb 2010
    Old 11-02-2010 , 18:36   Re: [L4D2] Difficulty Override
    Reply With Quote #6

    Do you have left4downtown2 installed and upated?

    Check your error logs (addons/sourcemod/logs) to see if it complains about forwards/etc not existing.

    Edit: Just tested this on my server and it definitely worked. Difficulty changing on the fly is fine.

    Quote:
    Originally Posted by AtomicStryker
    everywhere is a bit too far.
    Do you know some other difficulty calculation function other than GetDifficulty? I think my statement is accurate.

    Last edited by ProdigySim; 11-02-2010 at 18:45.
    ProdigySim is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 11-03-2010 , 13:59   Re: [L4D2] Difficulty Override
    Reply With Quote #7

    There is not a single difficulty 'calculation' function, hence your statement is blatantly wrong.
    AtomicStryker is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 11-03-2010 , 15:02   Re: [L4D2] Difficulty Override
    Reply With Quote #8

    Still trying: The difficulty change to impossible, but zombie still do the same damages...

    Here is my error logs:

    L 11/03/2010 - 19:56:23: SourceMod error session started
    L 11/03/2010 - 19:56:23: Info (map "c1m1_hotel") (file "errors_20101103.log")
    L 11/03/2010 - 19:56:23: [BugFixes] Cannot get signature or offset CCharge::HandleCustomCollision code sign or fix offset (0) (25)
    L 11/03/2010 - 19:56:23: [SM] Unable to load extension "l4d2_bugfixes.ext": Cannot get signature or offset CCharge::HandleCustomCollision code sign or fix offset (0) (25)
    L 11/03/2010 - 19:56:27: [SM] Native "HookConVarChange" reported: Invalid convar handle 0 (error 4)
    L 11/03/2010 - 19:56:27: [SM] Displaying call stack trace for plugin "hzombies.smx":
    L 11/03/2010 - 19:56:27: [SM] [0] Line 104, /home/groups/alliedmodders/forums/files/9/7/0/1/42208.attach::OnPluginStart()
    L 11/03/2010 - 19:56:28: [SM] Fatal error encountered parsing translation file "gear_transfer.phrases.txt"
    L 11/03/2010 - 19:56:28: [SM] Error (line 0, column 0): Stream failed to open
    L 11/03/2010 - 19:56:51: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
    L 11/03/2010 - 19:56:51: [SM] Displaying call stack trace for plugin "l4dcsmBill.smx":
    L 11/03/2010 - 19:56:51: [SM] [0] Line 232, l4dcsm.sp::OnMapStart()
    L 11/03/2010 - 19:56:53: [SM] Fatal error encountered parsing translation file "gear_transfer.phrases.txt"
    L 11/03/2010 - 19:56:53: [SM] Error (line 0, column 0): Stream failed to open
    L 11/03/2010 - 19:56:53: Error log file session closed.
    L 11/03/2010 - 19:56:53: SourceMod error session started
    L 11/03/2010 - 19:56:53: Info (map "c1m1_hotel") (file "errors_20101103.log")
    L 11/03/2010 - 19:56:53: [SM] Native "HookConVarChange" reported: Invalid convar handle 0 (error 4)
    L 11/03/2010 - 19:56:53: [SM] Displaying call stack trace for plugin "hzombies.smx":
    L 11/03/2010 - 19:56:53: [SM] [0] Line 104, /home/groups/alliedmodders/forums/files/9/7/0/1/42208.attach::OnPluginStart()
    L 11/03/2010 - 19:56:55: [SM] Native "SetConVarInt" reported: Invalid convar handle 0 (error 4)
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4dcsmBill.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 232, l4dcsm.sp::OnMapStart()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 18 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 17 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 16 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 15 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 14 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 13 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 12 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 11 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 10 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 9 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 8 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 7 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 6 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 5 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 4 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 3 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()
    L 11/03/2010 - 19:56:55: [SM] Native "IsFakeClient" reported: Client 2 is not connected
    L 11/03/2010 - 19:56:55: [SM] Displaying call stack trace for plugin "l4d_superversus.smx":
    L 11/03/2010 - 19:56:55: [SM] [0] Line 278, /home/groups/alliedmodders/forums/files/9/7/0/1/54297.attach::KickFakeClient()

    This can help you?
    paul92 is offline
    MarshalZCC
    Senior Member
    Join Date: Feb 2010
    Location: Alberta, Canada
    Old 11-03-2010 , 17:41   Re: [L4D2] Difficulty Override
    Reply With Quote #9

    Do you normally run with that many plug-in errors? It looks like difficulty override is the least of your problems.
    MarshalZCC is offline
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 11-03-2010 , 17:51   Re: [L4D2] Difficulty Override
    Reply With Quote #10

    3/4 are problems on superversus, because it's not more supported... Anyway, my server still run without problem and with all the plugins that work...
    Do you think that an above error block this plugin? :S
    paul92 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 03:03.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode