Raised This Month: $182 Target: $400
 45% 

[L4D1+2] Perkmod


Post New Thread Reply   
 
Thread Tools Display Modes
Author
tPoncho
Member
Join Date: Aug 2009
Plugin ID:
1064
Plugin Version:
2.2.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    60 
    Plugin Description:
    Adds Call of Duty 4-style perks for both survivors and infected, with cvars to adjust most perks. Automatically generates .cfg file.
    Old 08-03-2009 , 16:23   [L4D1+2] Perkmod
    Reply With Quote #1

    Update News 2013-11-12

    Well after a few years of being abandoned, playing L4D2 again with some new mates prompted me to dust this plugin off. Out of a lack of foresight, I added in a few more lines in the translations file so you'll need to update your translations accordingly.

    - Double Tap now only works for semi-auto weapons.
    - Double Tap no longer gives a chance to recover ammo while firing (wasn't listed on tooltips)
    - Double Tap now gives a bonus to reload speed, +25% by default
    - Martial Artist has been moved to secondary perks
    - Martial Artist no longer reduces the max shove penalty by default
    - Pyrotechnician now gives a pipe bomb if the survivor is grenade-less for a set period of time (default is 120 seconds)

    Other, less exciting stuff:
    - Updated offsets for some perks, cooldown-reducing perks should be working now (Twin Spitfire, Drag and Drop). UPDATE: these perks should also stop being broken with each new patch. Also, should now work with linux!
    - Added cvars for disabling all survivor or all infected perks (l4d_perkmod_perktree_survivor_enable, l4d_perkmod_perktree_infected_enable)
    - Reduced default value for Chem Reliant bonus health buffer from 10 -> 0
    - Reduced default value for Double the Trouble health multiplier from 0.45 -> 0.35
    - Tweaked Spirit, hopefully should be less buggy (I did this tweak years ago, no idea if it worked)
    - Added in a warning for Spirit if the survivor is in black and white health (you NEED the updated translations file for this!!!)
    - Fixed major bug with Barf Bagged interacting with bile jars
    - Fixed minor bug with Spitter perks not displaying properly
    - ... Lukewarm, untested attempt at fixing rare (but highly game changing!) Smoke IT bug with tanks (also did this tweak years ago, still don't know if it worked but there ya go)
    - UPDATE: Fixed Extreme Conditioning not applying sometimes

    Unfortunately, Adrenal Glands doesn't work anymore!!! well throwing rocks faster still work but the old tricks I pulled for punches don't work anymore, I'm pretty sure valve changed some stuff under the hood... I can get it to punch faster as long as you don't actually punch a survivor. Sigh...



    Alternate Versions

    (L4D2, updated constantly)


    muukis has been kind enough to constantly update perkmod to use a database - http://forums.alliedmods.net/showthr...386#post932386

    (L4D1, 1.4.2 version)

    AtomicStryker's version, which supports multiple languages and sports perks that don't mess around with convars: http://forums.alliedmods.net/showpos...&postcount=196

    AtomicStryker also made a version with a nice tweak: it binds the keys 6-10 for clients, so you don't have to deal with players who don't know how to rebind their keys. This version is otherwise like my vanilla version: http://forums.alliedmods.net/showpos...&postcount=209

    muukis's version, who was nice enough to implement something I was too lazy to go out and learn how to include it - databases =P now your perk selections will actually stick around for the next time you connect. http://forums.alliedmods.net/showpos...&postcount=200


    New/refreshing your .cfg File
    To 'refresh' your cfg file, simply delete the old one (perkmod.cfg) in 'steamapps\common\left 4 dead\left4dead\cfg\sourcemod', and the plugin will generate a new one the next time the server loads the plugin.



    --- INTRODUCTION (a trip down memory lane) ---

    (This is my first plugin ever, so criticize gently... =P)
    (... and last plugin, this one is eating me alive haha)

    First, a big thanks to these people!
    Skorpion1976
    Uyukio
    spiderlemur
    olj
    grandwazir

    Special thanks to AtomicStryker!

    Perkmod is a mod inspired by the perk system in Call of Duty 4, and draws many of its names from it. It gives the player a selection of perks to use in campaign, survival or versus, and both infected and survivors have perks. Since giving just player survivors perks would make campaign and survival runs much easier, bots too will use perks.

    Additionally, a server can tweak the power of most perks through console variables, and can set what perks bots will use.

    A menu will show up when a player joins in the game, and every time a new round starts, perks will be reset, and the menu will show up again. To access this menu in case it disappears (ie. an invalid menu choice), say !perks to show the menu - or if you've already chosen your perks, that will instead show you the perks you've chosen.

    For perks to work at all, you must choose "confirm perks" when you are done. ("7. DONE" on the main menu, then "1. Confirm") This is to avoid opportunistic abuses (using perks when they're convenient, then switching back).


    INSTALLATION

    - You'll need Sourcemod (1.3 or higher) and a dedicated server
    - Copy the attached .smx file into 'steamapps\common\left 4 dead\left4dead\addons\plugins'
    - Copy the contents of translations.zip into sourcemod/translations

    For Customization:
    - A cfg file should automatically be generated in 'steamapps\common\left 4 dead\left4dead\cfg\sourcemod', named 'perkmod.cfg'. It will have all the cvars that can be used to tweak most of the perks' numbers. There's a lot of them, which is why I'm not posting them here. They're all named in the following manner: 'l4d_perkmod_<perkname>_<property> <variable>'. They are all clamped between certain numbers, but unless you're trying to use seriously crazy numbers like 5x damage for Stopping Power, it shouldn't be an issue.
    - To disable perks, the CVars are in this sort of format: 'l4d_perkmod_<perkname>_enable 0/1'. Survivor perks have two others by similar names, but with '_versus' and '_survival' at the end.
    - To make the plugin stop messing with certain ConVars, find the CVar 'l4d_perkmod_<perkname>_enableconvarchanges' and set it to 0. Alternatively, just disable the perk.


    POSSIBLE CONFLICTS (read: there probably will be =P)

    This plugin runs a lot of cheat commands to accomplish its ends, and I hear some anti-cheat plugins block cheat commands... so yeah.

    Also, any plugin that uses a menu display may interfere with the one used in this plugin to display which perks to use.

    This plugin also constantly adjusts some cvars, mostly for those concerning smoker tongues (shoot speed, drag speed, range) and survivors (revive times). Any custom cfg files that adjust these values will likely be reset after the first map, if not earlier.

    To circumvent this, you can either disable the perk using those CVars, or in the case of Helping Hand, Spirit and Blind Luck you can just disable CVar changes. Use 'l4d_perkmod_<perkname>_enable 0' to disable the perk, or 'l4d_perkmod_<perkname>_enable_convarchanges 0' for the above 3 special cases.



    Perk List
    (current list for Perkmod2)

    Survivor, Primary

    1. Stopping Power
    Bonus damage (except with melee weapons).
    2. Double Tap
    Increased firing speed with guns (except the SCAR).
    3. Sleight of Hand
    Faster reload.

    4. Pyrotechnician
    Picking up a grenade gives you two of that type.
    You start the round with a grenade.
    If you aren't carrying a grenade for a set amount of time, you will be given a pipe bomb.



    Survivor, Secondary


    1. Unbreakable
    Bonus health when using medkits, on being revived and on rescue.
    2. Spirit
    If you are incapped and another survivor becomes incapped, you will self-revive.
    3. Helping Hand
    You revive others faster and give them bonus health on revive.
    4. Martial Artist
    You can swing a melee weapon twice in rapid succession.
    You suffer from a lesser maximum shove penalty.
    (L4D2 only)

    Survivor, Tertiary

    1. Pack Rat
    You can carry more ammo.
    2. Chem Reliant
    Using pills/adrenaline gives you extra health.
    You start the round with pills/adrenaline.
    3. Hard to Kill
    You have extra health when incapped.
    4. Extreme Conditioning
    You have bonus movement speed.
    5. Little Leaguer
    You will start with a baseball bat.


    Boomer

    1. Barf Bagged
    Vomiting on a survivor calls more common infected.
    2. Blind Luck
    Vomiting on a survivor will block more of their HUD.
    You have a shorter cooldown.
    3. Dead Wreckening
    Common infected deal bonus damage against vomited survivors.
    4. Motion Sickness
    You can vomit and move at the same time.
    You have bonus movement speed.

    Smoker

    1. Tongue Twister
    Your tongue travels faster and farther, and drags survivors faster.
    2. Squeezer
    You deal bonus damage with your tongue.
    3. Drag and Drop
    You have a much shorter cooldown.
    You can release a survivor at will by clicking ATTACK2.
    4. Smoke IT!
    You can walk while pulling survivors.
    Thanks to Olj for this perk!

    Hunter

    1. Body Slam
    On pouncing a survivor, you always deal a minimum amount of damage.
    2. Efficient Killer
    You deal bonus damage.
    3. Grasshopper
    Your pounces launch you much farther.
    4. Speed Demon
    You move at an increased time rate.
    Your scratches deal bonus damage.

    Jockey

    1. Ride Like the Wind
    You move faster while riding a survivor.
    2. Cavalier
    Bonus health.
    3. Frogger
    Can jump and leap farther.
    Bonus damage.
    4. Ghost Rider
    Near invisibility.

    Spitter

    1. Twin Spitfire
    You can spit twice in quick succession.
    2. Mega Adhesive
    Your spit slows the survivors.

    Charger

    1. Scattering Ram
    Hitting secondary targets while charging will send them flying farther.
    Gives bonus health.
    1. Speeding Bullet
    Charges are faster and longer.

    Tank

    1. Adrenal Glands
    Increased attack speed.
    2. Juggernaut
    Bonus health.
    3. Metabolic Boost
    Increased movement speed.
    4. Storm Caller
    A zombie wave will spawn with you.
    5. Double the Trouble
    A second tank will spawn with you.
    Both tanks will have reduced health.




    Updates

    2.1.5
    - rewrote some code, Mega Adhesive should no longer interfere with other SI (smoker/jockey)
    - fixed an exploit with faster reloading for Double Tap (sorta)
    - fixed Pack Rat again...

    2.1.4
    - Further fixes for Pack Rat, should work fine now
    - Increased Twin Spitfire's delay from 2.5s -> 6s
    - Increased Mega Adhesive slow % from 50% -> 60%

    2.1.3
    - Double Tap now has a 15% chance per shot that a bullet will not be consumed.
    - Rewrote Pack Rat to address multiple bugs; no longer grants bonus ammo on confirming perks, but should work and also have less compatibility issues with other plugins... I think.
    - Added a CVar "l4d_perkmod_autoshowmenu" to enable or disable automatically showing the perks menu on roundstart.
    - Updated offsets for ability and attack timers, cooldown-reducing perks (ie. Twin Spitfire) and attack speed increase perks (ie. Adrenal Glands) should now work properly.

    2.1.2
    - Helping Hand should now properly give half the bonus health buffer to the reviver in addition to giving the full bonus to the revivee (was previously only giving it to the revivee). Kinda bugged, though, sometimes it gives more than it should...
    - Martial Artist now gives three swings, and should be much more consistent in giving the bonus swings - shoves and drawing the weapon no longer "count" as swings.

    2.1.1
    - Added Mega Adhesive perk to spitters: slows survivor speed by 50% for up to two seconds after leaving spit.
    - Added Smoke IT! perk to smokers: can walk while smoking (thanks to Olj for this perk!)
    - Added Little Leaguer perk to survivor-tertiary: gives a baseball bat.
    - Saying !perks should work more consistently (but perks may still not work properly on local servers!)

    2.1.0
    - Twin Spitfire, Adrenal Glands and other cooldown-reducing perks should now work properly on Linux servers (nobody told me the offsets were all weird between Linux and Windows servers =.=). Still don't have offset numbers for L4D1 Linux, so it won't work for L4D1 Linux until I can find those numbers...
    - Being rescued from the closet now gives bonus items with the corresponding perks (grenades for Pyrotechnician, pills for Chem Reliant).
    - Added translations! (basically stole AtomicStryker's work =P) a lot of perk descriptions are only available in english until someone kindly translates them for us... =P

    2.0.11
    - Adrenal Glands now also makes the tank unfrustratable.
    - Increased Frogger damage from 0.2 -> 0.35
    - Fixed Helping Hand bug that wasn't giving the reviver bonus health buffer when the reviver didn't have health buffer (only real health).
    - Fixed bug/exploit with Chem Reliant/Pyrotechnician/Unbreakable on switching from AFK to non-AFK.
    - Fixed Pack Rat bug/exploit with pistol and dropped grenade launchers, and updated some old code.

    2.0.10
    - Added Frogger perk: Jockeys can jump and leap 30% farther, and deal 20% more damage.
    - Added Ghost Rider perk: makes Jockeys nearly invisible - but riding a survivor still gives off that red glow!
    - Added Speeding Bullet perk: Chargers can charge 50% faster and farther.
    - Changed Scattering Ram to 60% impact force and added a 30% health bonus.
    - Revised some menu coding... again.


    About the attachments:
    - the Perkmod.sp is the last stable version made exclusively for L4D1 (1.4.2).
    - the Perkmod2.sp is probably what you're looking for =P it should work for both L4D1 and 2, although I think there's some bugs when used for L4D1, mostly the cooldown-reducing perks. YOU NEED THE TRANSLATIONS.ZIP AS WELL!
    - copy the contents of translations.zip to addons/sourcemod/translations (Perkmod2.sp only).
    Attached Files
    File Type: sp Get Plugin or Get Source (Perkmod.sp - 11175 views - 257.2 KB)
    File Type: zip translations 2013-11-12.zip (28.3 KB, 4636 views)
    File Type: sp Get Plugin or Get Source (perkmod2.sp - 5893 views - 369.0 KB)

    Last edited by tPoncho; 11-12-2013 at 01:04.
    tPoncho is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-03-2009 , 18:47   Re: [L4D] Perkmod
    Reply With Quote #2

    Quote:
    Blind Luck, as per Grandwazir's plugin by the same name, may allow clients to execute client-side commands that are normally blocked if sv_cheats is 0. As far as I know, though, I don't know what clients might execute that could be harmful... and they only have a space of 15 seconds to do it, not to mention zombies will be beating on them that whole time.
    http://forums.alliedmods.net/showthr...t=84926&page=6
    Post #60
    Sadly, original author never updated first post. Original code idea for making it working w/out sv_cheats belongs to Doku.
    Btw, nice idea. Can be a good replacement for survivor upgrades.
    __________________

    Last edited by olj; 08-03-2009 at 19:04.
    olj is offline
    GrossKopf
    Senior Member
    Join Date: Jun 2007
    Old 08-03-2009 , 19:19   Re: [L4D] Perkmod
    Reply With Quote #3

    I like it! I've been trying out the various survivor upgrades, but this is much cooler! I'll check it out on my server in a few minutes.
    __________________

    Left 4 Dead servers $.99/slot! Left 4 Dead 2 servers $1.49/slot!
    GrossKopf is offline
    tPoncho
    Member
    Join Date: Aug 2009
    Old 08-03-2009 , 19:45   Re: [L4D] Perkmod
    Reply With Quote #4

    @ olj: thanks! Just included the code and gave it a quick test, seems to run fine.
    tPoncho is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 08-03-2009 , 19:50   Re: [L4D] Perkmod
    Reply With Quote #5

    Ooooh this looks nice!

    Quote:
    Originally Posted by GrossKopf View Post
    I like it! I've been trying out the various survivor upgrades, but this is much cooler! I'll check it out on my server in a few minutes.
    Whats your server? I want to join lol.
    Dragonshadow is offline
    GrossKopf
    Senior Member
    Join Date: Jun 2007
    Old 08-03-2009 , 21:38   Re: [L4D] Perkmod
    Reply With Quote #6

    Ok, fantastic mod, but two big bad bugs...

    On the last level of the airport (finale), there is no plane crash at the beginning, and the finale never comes. The plane is never fueled up. I can only guess the second part is a result of the first part not happening.

    The other thing. I use Left4Downtown. I have my server set to 9 slots. I had a 9th member connect, and when a pubber left, he joined in. He had 2861 health.

    I can only assume these bugs are the result of this plugin, as this didn't happen before I put the plugin on the server.

    My plugin list:

    Quote:
    01 "Admin File Reader" (1.2.1) by AlliedModders LLC
    02 "Admin Help" (1.2.1) by AlliedModders LLC
    03 "Admin Menu" (1.2.1) by AlliedModders LLC
    04 "Admin Thunder" (1.1) by aNNakin, edit by R3M
    05 "Advertisements" (0.5.5) by Tsunami
    06 "Anti-Flood" (1.2.1) by AlliedModders LLC
    07 "Basic Chat" (1.2.1) by AlliedModders LLC
    08 "Basic Comm Control" (1.2.1) by AlliedModders LLC
    09 "Basic Commands" (1.2.1) by AlliedModders LLC
    10 "Basic Info Triggers" (1.2.1) by AlliedModders LLC
    11 "Basic Votes" (1.2.1) by AlliedModders LLC
    12 "Client Preferences" (1.2.1) by AlliedModders LLC
    13 "Fun Commands" (1.2.1) by AlliedModders LLC
    14 "Fun Votes" (1.2.1) by AlliedModders LLC
    15 "gameME Plugin" (3.0) by TTS Oetzel & Goerz GmbH
    16 "Left 4 Dead Infected Spawner" (1.0) by Fexii
    17 "Left 4 Dead Infected Spawner" (1.0) by Fexii
    18 "L4DSwitchPlayers" (1.3) by SkyDavid (djromero)
    19 "L4D Remove Lobby Reservation" (1.0.0) by Downtown1
    20 "L4D_Cloud_Damage" (2.0) by AtomicStryker
    21 "L4D Friendly Fire Limit" (1.1.1) by -pk-
    22 "Left4Survive" (1.0) by MagnoT
    23 "L4D Loading Bug Removal" (2.0.1) by lilDrowOuw
    24 "Nextmap" (1.2.1) by AlliedModders LLC
    25 "PerkMod" (1.0) by tPoncho
    26 "Player Commands" (1.2.1) by AlliedModders LLC
    27 "Reserved Slots" (1.2.1) by AlliedModders LLC
    28 "SnareSpeak" (1.7) by n0limit
    29 "Sound Commands" (1.2.1) by AlliedModders LLC
    30 "L4D Vote Manager 2" (1.5.3) by Madcap
    __________________

    Left 4 Dead servers $.99/slot! Left 4 Dead 2 servers $1.49/slot!
    GrossKopf is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 08-03-2009 , 21:41   Re: [L4D] Perkmod
    Reply With Quote #7

    Quote:
    Originally Posted by GrossKopf View Post
    Ok, fantastic mod, but two big bad bugs...

    On the last level of the airport (finale), there is no plane crash at the beginning, and the finale never comes. The plane is never fueled up. I can only guess the second part is a result of the first part not happening.

    The other thing. I use Left4Downtown. I have my server set to 9 slots. I had a 9th member connect, and when a pubber left, he joined in. He had 2861 health.

    I can only assume these bugs are the result of this plugin, as this didn't happen before I put the plugin on the server.

    My plugin list:
    You've got the infected spawner in there twice lol.
    Dragonshadow is offline
    GrossKopf
    Senior Member
    Join Date: Jun 2007
    Old 08-03-2009 , 21:44   Re: [L4D] Perkmod
    Reply With Quote #8

    Quote:
    Originally Posted by Dragonshadow View Post
    You've got the infected spawner in there twice lol.
    One is the infected spawner and one is the weapons/item spawner but they get listed as the same thing
    __________________

    Left 4 Dead servers $.99/slot! Left 4 Dead 2 servers $1.49/slot!
    GrossKopf is offline
    tPoncho
    Member
    Join Date: Aug 2009
    Old 08-03-2009 , 22:02   Re: [L4D] Perkmod
    Reply With Quote #9

    Thanks for the quick feedback.

    The guy who had 2861 health, was he joining in as a survivor or infected? And when he got that health, was it right when he spawned, or after he confirmed perks? Were any tanks active? I don't suppose you remember if anyone had juggernaut, double trouble or unbreakable at that point?

    As for the airplane crash scene not happening and the finale not starting... yikes... I'll see what I can do about that.
    tPoncho is offline
    GrossKopf
    Senior Member
    Join Date: Jun 2007
    Old 08-03-2009 , 22:20   Re: [L4D] Perkmod
    Reply With Quote #10

    I just did a test... removed your mod and I still didn't get the crash.. might have something to do with the mod I have that waits for everyone to join. I don't think I played that map in VS with that mod yet.

    For the health issue, he joined the survivors and ended up with that health. One of the suvivors (a pubber) left during the game, so he was spectating and then he joined the survivors. I don't think he got to choose perks. He immediately had the health. No tanks were active. I'm unsure if anyone had those perks you mention.
    __________________

    Left 4 Dead servers $.99/slot! Left 4 Dead 2 servers $1.49/slot!
    GrossKopf is offline
    Reply


    Thread Tools
    Display Modes

    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 09:13.


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