AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D2] RaceMod (https://forums.alliedmods.net/showthread.php?t=125593)

krazykylep 04-30-2010 07:20

[L4D2] RaceMod
 
2 Attachment(s)
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.

ku5h 04-30-2010 22:57

Re: [L4D2] RaceMod
 
cool thx

thejuice027 05-01-2010 00:32

Re: [L4D2] RaceMod
 
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.

krazykylep 05-01-2010 03:10

Re: [L4D2] RaceMod
 
Quote:

Originally Posted by thejuice027 (Post 1166285)
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...

Oshroth 05-04-2010 23:16

Re: [L4D2] RaceMod
 
Quote:

Originally Posted by krazykylep (Post 1165358)
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.

krazykylep 05-07-2010 03:08

Re: [L4D2] RaceMod
 
Quote:

Originally Posted by Oshroth (Post 1171023)
"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.

a Muffin 05-07-2010 09:20

Re: [L4D2] RaceMod
 
: | 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

krazykylep 05-09-2010 07:51

Re: [L4D2] RaceMod
 
Quote:

Originally Posted by a Muffin (Post 1173325)
: | 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.

MaStErShOt57 05-13-2010 00:05

Re: [L4D2] RaceMod
 
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). :D

krazykylep 05-14-2010 04:01

Re: [L4D2] RaceMod
 
Quote:

Originally Posted by MaStErShOt57 (Post 1178845)
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).


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

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