Raised This Month: $32 Target: $400
 8% 

[L4D2] RaceMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author
krazykylep
Junior Member
Join Date: Apr 2010
Plugin ID:
1632
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows 4 player campigns to become a race to the finish.
    Unapprover:
    Reason for Unapproving:
    Author inactive.
    Old 04-30-2010 , 07:20   [L4D2] RaceMod
    Reply With Quote #1

    Left 4 Dead 2: RaceMod

    Allows 4 player campigns to become a race to the finish.

    Description:
    This is my first mod. So, I apologize if anyone wants to look through my code. I'm probably doing everything wrong.
    Anyway, RaceMod does pretty much what you think it does. It turns a L4D2 (and only l4d2) campaign into a race between you and your teammates. This mod really goes against l4d's spirit of teamwork because it's every man for himself! You may think running off on your own is dangerous, but do not fear! If a special infected gets you, they will be automatically be killed in about 5 seconds. Say you are really getting attacked by special infected though; If your health is/goes below 25 and you get grabbed by a special, you get god mode till he dies. Now don't get any ideas of shooting your teammates down, as friendly fire is turned off - except that fire still does FF damage. So use your molotov to block the path! If all goes well, run through the safe room door, and you will see how many points you get for your placement.

    Features:
    When special inf. grab you, they die in 5 seconds.
    When special inf. grab you, and you have/go below 25 health you get god mode till they die.
    Friendly fire is turned off except that molotovs, gascans, and fireworks still do damage if set off by you.
    Scoring system.
    Tip system.
    Race countdown to prevent fast loaders from getting a head start.
    Special infected sometimes give items to their killer.

    Basic Strategy:
    Run as fast as you can to the next saferoom.
    Don't help teammates up.
    Throw molotovs in your teammate's way to hurt them.
    Kill special infected because sometimes they drop items.
    Stay off the ground (no one will help you up, unless a bot is present)
    Kill tanks and survive the finale! Remember, there are bonus points for killing tanks and witches, and any survivor who escapes gets 10 points.

    Recommendations:
    Turn up molotov, bomb, fire damage. (inferno_damage 120)
    Have mobs infinitely spawn. (director_panic_forever 1)
    Make the adrenaline run speed higher. (adrenaline_run_speed 300)

    Cvars:
    • sm_racemod_on (default is 1, 0 = off)
    Commands:
    • !scores or /scores - type in chat to see the current standings.
    • !startrace or /startrace - type in chat to over ride the round start countdown (admins only).

    Known Issues/Concerns:
    Before I get into this, please, forgive me. This is my first plugin and I still don't know how things should be done. If you think you can fix it, by all means, do what you want to my code (just give me credit for the idea of RaceMod).

    Crescendo events are really a gameplay killer, as some of them require that all survivors are together to turn it on. So say goodbye to your 1st place lead unless you can figure out how to use Stripper:source to help yourself get around them (or some other way).

    Final Thoughts:
    Well I spent some sleepless nights on this because I love running ahead in Left 4 Dead. I know some of you already hate me for it. But it's just so fun to know that at any moment you could be pounced and killed so easily. Sorry again for being a noob with the code. I hope you enjoy it!

    Change Log:
    V1.3
    ------------------------
    • Added bridge race to the last level of The Parish.
    • Fixed saferoom coordinates that make sure players get scores.
    • Added !startrace command for admins so they can over ride the round start countdown.
    • Fixed an issue where a tank's death would screw up the count of how many players are still racing.
    • Added a chance for special infected to give their killer an item.
    • Added a tip about how special infected sometimes give items.

    V1.2
    ------------------------
    • Added command !scores to show current standings
    • Changed scoring system to give points when a player: kills a tank, kills a witch, or pours a gas can.
    • Made it so players have god mode during round count down.
    • Fixed issue with score reports when players get incapped and then picked up.
    • Updated tip system to include tips about new features and finale strategies.
    • Made it so players get a health kit, pipe bomb, and adrenaline at the start of every round. (except for sometimes the first?)

    V1.1
    ------------------------
    • Fixed issues with joining and leaving people.
    • The plugin wont mess up scoring when starting a game. However I'm not sure it will work 100% if you start from a level other than the first on any campaign.
    • Added a tip system so that people know some random facts about RaceMod.
    • Added a race countdown at the start of each level so that fast loaders don't get a head start.
    • Added Cvar sm_racemod_on (default is 1, 0 = off)
    • fixed some issues with friendly fire and molotovs not hurting people.

    V1.0
    ------------------------
    • Released

    'To do' list:
    • Add rewards for getting to crescendo events that require the whole team first
    • Add penalties for getting incapacitated? (not sure)
    • Add Cvars and stuff to make this more configurable.

    Installation:
    Just place the .smx in the sourcemod/plugins folder... duh.
    Attached Files
    File Type: smx racemod.smx (13.9 KB, 287 views)
    File Type: sp Get Plugin or Get Source (racemod.sp - 892 views - 30.3 KB)

    Last edited by krazykylep; 05-09-2010 at 07:59.
    krazykylep is offline
    ku5h
    Member
    Join Date: Feb 2009
    Old 04-30-2010 , 22:57   Re: [L4D2] RaceMod
    Reply With Quote #2

    cool thx
    __________________
    ku5h is offline
    thejuice027
    Senior Member
    Join Date: Dec 2009
    Old 05-01-2010 , 00:32   Re: [L4D2] RaceMod
    Reply With Quote #3

    Quote:
    Crescendo events are really a gameplay killer, as some of them require that all survivors are together to turn it on. So say goodbye to your 1st place lead unless you can figure out how to use Stripper:source to help yourself get around them (or some other way).
    I got an idea for that! Give bonus points for the people that make it to the crescendo 1st, 2nd, and 3rd.
    __________________
    Steam_id: thejuice027
    thejuice027 is offline
    krazykylep
    Junior Member
    Join Date: Apr 2010
    Old 05-01-2010 , 03:10   Re: [L4D2] RaceMod
    Reply With Quote #4

    Quote:
    Originally Posted by thejuice027 View Post
    I got an idea for that! Give bonus points for the people that make it to the crescendo 1st, 2nd, and 3rd.
    that's actually not a bad idea...
    krazykylep is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 05-04-2010 , 23:16   Re: [L4D2] RaceMod
    Reply With Quote #5

    Quote:
    Originally Posted by krazykylep View Post
    If someone picks you up, the 'incapped' counter will be off. This is not a big deal, it just means that it will prematurely report the standings before everyone finishes. I wish there was an event like "Survivor_Picked_Up" or something.
    "revive_success" gets called when a survivor gets picked up.
    __________________
    Oshroth is offline
    krazykylep
    Junior Member
    Join Date: Apr 2010
    Old 05-07-2010 , 03:08   Re: [L4D2] RaceMod
    Reply With Quote #6

    Quote:
    Originally Posted by Oshroth View Post
    "revive_success" gets called when a survivor gets picked up.
    Thank you for this.... I guess I just didn't look very hard through the list of events.
    krazykylep is offline
    a Muffin
    Junior Member
    Join Date: Apr 2010
    Location: in asia
    Old 05-07-2010 , 09:20   Re: [L4D2] RaceMod
    Reply With Quote #7

    : | i think you should turn of special infected and makes bot stop only common infected and god at all times so there only going to worry slown down by the common infected just a suggestion
    a Muffin is offline
    krazykylep
    Junior Member
    Join Date: Apr 2010
    Old 05-09-2010 , 07:51   Re: [L4D2] RaceMod
    Reply With Quote #8

    Quote:
    Originally Posted by a Muffin View Post
    : | i think you should turn of special infected and makes bot stop only common infected and god at all times so there only going to worry slown down by the common infected just a suggestion
    OK...
    If what you meant was, "Give god mode to everyone and stop special infected from spawning" then you can do this yourself and don't need this plugin to do it for you.

    sm_cvar god 1 --- this gives god mode
    sm_cvar director_no_specials 1 --- this turns off special infected.
    krazykylep is offline
    MaStErShOt57
    New Member
    Join Date: May 2010
    Old 05-13-2010 , 00:05   Re: [L4D2] RaceMod
    Reply With Quote #9

    I find this mod to be very enjoyable. I was wondering though...Would it be possible to add some sort of timer to this? For example, when you reach the safe room it displays how fast you did it in. Then, in the end it adds the times from each map together and whoever had a faster time overall wins. Just a thought (understandable though if it would be hard to create).
    MaStErShOt57 is offline
    krazykylep
    Junior Member
    Join Date: Apr 2010
    Old 05-14-2010 , 04:01   Re: [L4D2] RaceMod
    Reply With Quote #10

    Quote:
    Originally Posted by MaStErShOt57 View Post
    Would it be possible to add some sort of timer to this?
    Not a bad idea, and it's not hard to do. Sounds like something that's going to be in the next update (which will be out soon).
    krazykylep 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 20:14.


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