Raised This Month: $161 Target: $400
 40% 

[L4D2] Jockey racing v1.0.8(+ 4 player mode)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Fleepster99
Senior Member
Join Date: Apr 2010
Plugin ID:
1824
Plugin Version:
1.0.8
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows players to race in teams of 2 with jockeys to the safehouse
    Unapprover:
    Reason for Unapproving:
    Multiple errors spewing in log (see post #158), left unfixed for over a month.
    Old 07-24-2010 , 14:27   [L4D2] Jockey racing v1.0.8(+ 4 player mode)
    Reply With Quote #1

    Description

    This is a mod based on TF2silencer's idea


    Initial Concept

    The point of this plugin is to facilitate and allow admins to have jockey races on their servers, i do not recommend this being played in an all randoms game because its generally not gonna work out.

    ConVars
    PHP Code:
    // This file was auto-generated by SourceMod (v1.4.0-dev)
    // ConVars for plugin "Jockey racing mod v1.0.6a (35).smx"


    // Is Jockey racing on
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    Gamemode_jockey_racing "1"

    // When a player gets biled & molo, how many seconds does it take for them to RECOVER
    // -
    // Default: "8"
    // Minimum: "1.000000"
    L4d2_Fire_slowdown_duration "8"

    // Tell players about Jockey racing when they join? 
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    L4d2_Jockey_racing_broadcast "1"

    // Amount of time that the adrenaline boost will last
    // -
    // Default: "12"
    // Minimum: "1.000000"
    L4d2_drug_boost_duration "12"

    // Allow survivor to become faster with adrenaline
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    L4d2_drug_boost_on "1"

    // How often do players get adrenaline to use?(seconds)
    // -
    // Default: "60"
    // Minimum: "1.000000"
    L4d2_how_often_adrenaline "60"

    // How often do players get molos and vomitjars to use?(seconds)
    // -
    // Default: "40"
    // Minimum: "1.000000"
    L4d2_how_often_grenade "40"

    // Should jockeys and humans be slower on their own after the race starts, recommended due to alot of teamless runners
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    L4d2_jockey_slowdown_enable "1"

    // Number of seconds before a player CAN use the adrenaline
    // -
    // Default: "1.0"
    // Minimum: "0.000000"
    // Maximum: "10.000000"
    L4d2_selfhelp_delay "1.0"

    // How fast does the adrenaline bar fill (in seconds)
    // -
    // Default: "2.0"
    // Minimum: "0.000000"
    // Maximum: "10.000000"
    L4d2_selfhelp_duration "2.0"

    // When someone hangs off the edge they can take pick themselves back up, 0:Disable, 1:Enable  
    // -
    // Default: "1"
    L4d2_selfhelp_edgegrab "1"

    // Number of seconds before player gets told about the adrenaline boost
    // -
    // Default: "3.0"
    // Minimum: "0.000000"
    // Maximum: "10.000000"
    L4d2_selfhelp_hintdelay "3.0"

    //  Allow player to take adrenaline with a jockey on them , 0:disable, 1:adren,pills, 2:medkit, 3:both 
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    L4d2_selfhelp_ride "1"

    //  Allow player to throw bile & molotovs at each other with a jockey on them , 0:disable, 1:enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_allow_grenade "1"

    // How is player told that he can throw bile & molotovs (0 - disable, 1 - chat, 2 - hint)
    // -
    // Default: "2"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    l4d_incapped_message_type "2"

    // Kill any Human bots after 60 seconds of racestart(recommend for less than 8 players on versus) 
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_kill_bot_survivors "0"

    // When someone gets incapd they can pick themselves up(usefull for players who have god off,future releases) , 0:disable, 1:Enable
    // -
    // Default: "1"
    l4d_selfhelp_incap "1"

    // Jockey racing plugin version.
    // -
    // Default: "1.0.6"
    sm_Jockey_racing_version "1.0.6"

    // RGB Value for coach. Usage: "R G B" or "-1 -1 -1" to do nothing.
    // -
    // Default: "0 0 0"
    sm_l4d_painter_coach "0 0 0"

    // RGB Value for ellis. Usage: "R G B" or "-1 -1 -1" to do nothing.( from gamemann's script)these values are NOT RECOMMENDED TO MODIFY unless you know what you are doing :)
    // -
    // Default: "255 242 0"
    sm_l4d_painter_ellis "255 242 0"

    // Enables painting zombies.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_l4d_painter_enabled "1"

    // RGB Value for nick. Usage: "R G B" or "-1 -1 -1" to do nothing.
    // -
    // Default: "0 255 0"
    sm_l4d_painter_nick "0 255 0"

    // Render mode of colored people.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_l4d_painter_render_mode "0"

    // RGB Value for bill. Usage: "R G B" or "-1 -1 -1" to do nothing.
    // -
    // Default: "255 0 0"
    sm_l4d_painter_rochelle "255 0 0" 
    Not all convars have been tested fully, if you see any not working as intended please let me know.

    How to use
    This is very straight forward, 8 players is recommend with at least 5 of them being friends or theres a high chance someone will try to ruin the game, this doesn't start automatically the admin needs to type "!raceon" and a 30 second countdown will start, players get teleported to the initial positions and colours are matched.
    i may add a auto start but during some of my testing it didnt work out well for a few different reasons so i stuck to manual start.

    Video
    Plugin in ACTION

    Heres a video of the latest test with 8 players where you can see some of the features



    Features of versus version
    • Take adrenaline whilst the jockey is on you
    • Throw bile and molotovs when jockied at other players
    • Cause specific effects to other players with molotov(slowdown),vomitjar(blind)
    • 12 seconds sprint time when adrenaline is taken(variable)
    • Players cant attack each other(prevents foul play)
    • scoring system eg. when a team reaches the safehouse they get a score and a time in which the round was completed.
    • If a jockey gets off a survivor they both move at half of the max speed(to prevent players running on their own).
    • Tanks get killed automatically to prevent jockeys becoming bots(this may change)
    • Each 2 players are assigned a colour and this helps the jockeys jump on the right person after ladders.
    • Doors and all events are forced to start at the beginning of each map(including finales)
    • Adrenaline is awarded depending on the players position on the race(needs improvement)
    And theres a few more which can be seen during gameplay.



    Features of 4 player version
    • Almost all of the above except for the throwing of molotovs and vomitjars
    • Added lasers from Ztar's lethal weapon plugin that allow jockeys to protect survivors against tanks
    • Gave all power to jockey eg, give adrenaline, pickup from ledge, laser, full control of survivor.

    Recommendations
    To use this plugin although its not a must i recommend using DieTeetasse's jockey jump plugin http://forums.alliedmods.net/showthread.php?t=122213
    i suggest you modify these cvar
    "l4d2_jockeyjump_delay 1" on DieTeetasse .cfg as well as removing the sound effect(4 jockeys screaming at all times can be annoying :/)

    I also recommend using HLDJ as a host to play racing songs (google it if you havent heard of it)

    and also Thraka's infected release found here http://forums.alliedmods.net/showthread.php?t=109715
    These aren't a must but they are useful and make the game mode better.
    The jockeys jump on my server seems to work about 80% of the time so if it doesn't work sometimes I recommend dismounting and mounting the survivor again.

    Notes
    This is my first plug-in and i never expected to end up with this many lines of code, so I expect that there's going to be a few problems here and there.
    Also due to only being able to test the plugin fully once a week,odds are theres a few issues.
    Please let me know of any problems you have and il try my best to fix them .
    Also if you look through the code and see anything i could improve on i would appreciate your feedback.
    The only maps currently working properly are DARK CARNIVAL, THE PARISH, HARD RAIN & SWAMP FEVER (dead center is completely useless in many ways for this, i don't think im going to add the passing for similar reasons to dead center)


    Improvements
    Theres alot of stuff i still want to improve, but due to this being my first plugin i want to make sure the basics work before i add anything to it.
    To fix:
    The jockey killing system is only working at the moment with the full 8 players if theres 6 the jockeys wont be killed when everyone reaches the safehouse(fixed)
    Remove pointless server console messages
    clean up code
    Turn alltalk on without typing !raceon everyround (any help on this would be great )(done)
    Find a way to reduce gas canister's radius(molotov)
    Add seperate mode for 4 players only(campaign type)(done ftw).
    Add jockey rage mode(depending on user feedback)


    Quote:
    Versus version history:
    1.0:
    - release
    1.0.1:
    - Fixed small error with adrenaline not working and added support for HARD RAIN
    1.0.2:
    - Added support for Swamp fever, thanks for the warning fixes Dyzer
    1.0.3:
    -Added new method of killing jockeys once everyone reaches saferoom, new method of removing SI, changed few cvars, removed the block on the Infected release(thanks Searcher64 ).
    1.0.4:
    -Removed all spam when "!raceon" is typed, added new fix to prevent commons spawning, modified a few of the welcome messages and cleaned a bit of code up.
    1.0.4a:
    -modified the killing of jockeys when they reach the safehouse(not fully tested)
    1.0.5:
    -Added convar(see convar list end) to kill survivor bots after 60 seconds of typing !raceon,hopefully improved the freezing system,players can now pick themselves up without a medikit(both from ledge and normal incap)
    1.0.5a:
    -Fixed random zombie spawn problems that specific people were having, added timer to keep adrenaline from being accumulated in a server,tweaked players slowdown and set convar l4d_kill_bot_survivors to 0 default.
    1.0.6a:
    -Removed all melee weapons, added ability to throw molotov and bile whilst jockeyd,Added door lock to stop players from closing the saferoom door on other players during the race),added convars and a few small tweaks. thanks to DJ_WEST for the molotov and bile code(couldn't have done this without it ).
    1.0.7:
    -Added adrenaline supply depending on players position(great idea searcher, nightmare to do thow :/),removed boomer spawning, added a fully blind method for when a survivor gets biled.
    Re-upped 1.0.7 as i forgot to uncomment a testing function :/.
    1.0.7a:
    -Fixed some minor problems with the adrenaline.
    1.0.8:
    -Removed the old spawn method, added an automatic spawn at the start, added vote system to start the race, added a finale switch from atomic stryker's ai triggerfix.
    Quote:
    Coop version history:
    1.0:
    -Coop version released
    1.0.1:
    -Added teleport for jockeys who jump on different colours or run too far away from their survivor, fixed a few issues also.
    Thanks to Abaddown for letting me test on his server
    Credit
    TF2Silencer for the idea
    Alot of the code was taken from other scripts here, if i have missed any one out please let me know.

    Panxiaohai(for his self help plugin which helped give adrenaline to survivors whilst jockeyed )
    http://forums.alliedmods.net/showthr...light=infected

    Dusty1029(for the powerups plugin which increase the speed of the survivors)
    http://forums.alliedmods.net/showthr...light=powerups

    krazykylep(for his scoring system "Racemod" which Hyster helped me work on(thanks hyster))
    http://forums.alliedmods.net/showthread.php?t=125593

    gamemann(for the l4d2 painter plugin used in the teams colouring)
    http://forums.alliedmods.net/showthr...ghlight=jockey

    DJ_WEST(for his incapped grenade code, which i had no chance of coming up with on my own :/)
    http://forums.alliedmods.net/showthr...hlight=dj_west

    All my friends at L4d2original that helped me test the plugin
    also thanks to Dyzer and Absolute for answering my questions on the events.

    Plugin

    Ive just released a seperate version for 4 players only, as ive found out everytime i wanted to play this i had to get 7 other people and that is a huge waste of time.
    So if you prefer playing with just a few friends then i recommend the coop version.
    A few features of that mode can be seen in this video, that was the only 4 player test i did with this version, but apart from small problems(which are now fixed) the gameplay was good.
    I removed the bile jars and moly's that are found in versus and added a jockey laser which i got from ztar's cool plugin Lethal weapon, thanks to him for that.
    The laser is fairly good and is only used to kill tanks, which appear about 90% of the time, because of this all finales are now playable(i may add zombies in concert HR finale, SF finale so jockeys can kill them as well as tanks).
    I added also a vote system which is cast in the beginning of everyround so players can vote when their ready, as well as a few more things.I also took a small bit of code off Atomic Stryker's survivor ai triggerfix to force the finales to start, thanks.
    I am adding the vote system in versus right now and will upload 1.0.8 very soon.

    Also im not sure if im allowed to put two slightly different plugins under the same title, so if their is a problem with that please let me know Mods.
    Attached Files
    File Type: sp Get Plugin or Get Source (Jockey racing mod COOP v1.0.1.sp - 951 views - 160.3 KB)
    File Type: sp Get Plugin or Get Source (Jockey racing mod v1.0.8.sp - 1136 views - 170.9 KB)

    Last edited by Fleepster99; 08-17-2010 at 22:26. Reason: new version
    Fleepster99 is offline
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 07-24-2010 , 16:16   Re: [L4d2] Jockey racing
    Reply With Quote #2

    You stole Pan's self help code...? Or did you ask permission? :O
    SyluxLockjaw100 is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 07-24-2010 , 16:24   Re: [L4d2] Jockey racing
    Reply With Quote #3

    Quote:
    Originally Posted by SyluxLockjaw100 View Post
    You stole Pan's self help code...? Or did you ask permission? :O
    I read the rules and i didnt see anything about permission, i credited him and i thought that was enough.
    Am i supposed to ask every person i used code from? i can always modify the cvars etc.
    Fleepster99 is offline
    EHG
    Senior Member
    Join Date: May 2009
    Location: 127.0.0.1
    Old 07-24-2010 , 16:42   Re: [L4d2] Jockey racing
    Reply With Quote #4

    Quote:
    Originally Posted by Fleepster99 View Post
    I read the rules and i didnt see anything about permission, i credited him and i thought that was enough.
    Am i supposed to ask every person i used code from? i can always modify the cvars etc.
    You took public code and gave credit where its is due. I see nothing wrong.
    Awesome Plugin!!! Watching that video made me instantly want to try it out.
    EHG is offline
    Cliffhanger
    SourceMod Donor
    Join Date: May 2010
    Location: Arizona
    Old 07-25-2010 , 02:56   Re: [L4d2] Jockey racing
    Reply With Quote #5

    The Plugin fails to compile

    EDIT: Nevermind my computer was acting up for some reason =/

    Great Plugin! I've been manually having jockey races with friends on my server and this certainly makes things a hundred times easier to have a jockey race!
    __________________



    Last edited by Cliffhanger; 07-25-2010 at 03:03.
    Cliffhanger is offline
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 07-25-2010 , 05:19   Re: [L4d2] Jockey racing
    Reply With Quote #6

    funny video
    here fixed compiler bugs (untested)

    Last edited by dYZER; 07-25-2010 at 20:25.
    dYZER is offline
    Searcher64
    Senior Member
    Join Date: Apr 2010
    Old 07-25-2010 , 07:11   Re: [L4d2] Jockey racing
    Reply With Quote #7

    How about adding L4D2 Ready Up? Would it be useful in any way?

    https://forums.alliedmods.net/showthread.php?p=747133

    Edit: How about trying a L4D2 song as the racing song when someone uses !raceon? It would then end when all survivors have reached safe room, is it possible?

    Edit 2: Will it work on ALL stages with The Parish(the trailer stage), Dark Carnival, and Hard Rain (the elevator stage)?

    Edit 3: It's not working for me? It shows many of the cvars are unknown commands. The no-lose-health thing works and the broadcast thing works but everything else doesn't....

    Last edited by Searcher64; 07-25-2010 at 11:54.
    Searcher64 is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 07-25-2010 , 14:01   Re: [L4d2] Jockey racing
    Reply With Quote #8

    Quote:
    Originally Posted by Searcher64 View Post
    How about adding L4D2 Ready Up? Would it be useful in any way?

    https://forums.alliedmods.net/showthread.php?p=747133

    Edit: How about trying a L4D2 song as the racing song when someone uses !raceon? It would then end when all survivors have reached safe room, is it possible?

    Edit 2: Will it work on ALL stages with The Parish(the trailer stage), Dark Carnival, and Hard Rain (the elevator stage)?

    Edit 3: It's not working for me? It shows many of the cvars are unknown commands. The no-lose-health thing works and the broadcast thing works but everything else doesn't....
    The problem with using songs from l4d is that theres not many of them and only one or two suit the gameplay download HLDJ if your the admin and get your own songs.

    hard rain elevator, im still trying to see what i can do about that, the trailer in the parish gets its doors ripped off, and all events in dark carnival and the parish except the finales are called when the games starts.


    about the cvars some of them are related to dietasee jockey jump plugin, im gonna add a way where they get triggered quietly(at least try to).

    What things dont exactly work for you ? make sure your playing in versus with friends or its useless (i recommend at least 6 players).

    also about ready up i don't really think that is useful in this case because an admin can simply type raceon and everyone will get teleported to their positions, besides when i have played theres always new people and if i added ready up it would slow things down every round, this way they get "forced" into playing by teleporting.

    Last edited by Fleepster99; 07-25-2010 at 14:25. Reason: ready up
    Fleepster99 is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 07-25-2010 , 13:56   Re: [L4d2] Jockey racing
    Reply With Quote #9

    Quote:
    Originally Posted by dYZER View Post
    funny video
    here fixed compiler bugs (untested)
    Thanks for fixing the warning
    Fleepster99 is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 07-25-2010 , 15:30   Re: [L4d2] Jockey racing
    Reply With Quote #10

    Added support for swamp fever, please let me know of any problem
    Fleepster99 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 04:16.


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