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

[L4D2] SI/Jockey Ride Skeet Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author
CanadaRox
Member
Join Date: Dec 2009
Plugin ID:
1849
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Prevents SI from instakilling other SI in the air, or when the jockey is riding someone.
    Old 08-02-2010 , 11:25   [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #1

    Description
    This plugins works by blocking SI to SI damage when the victim is either in the air or is riding a survivor as jockey. This prevents SI from being one-hit-killed in the air (skeeted) and a single scratch from knocking a jockey off of a survivor.

    ConVars
    l4d2_skeetblocker_enable 1/0 - Enable/Disable the plugin.

    Changelog
    1.1
    - Made grounded detection more accurate/efficient
    - Changed the team check to make sure world/console can still do damage
    - Added client check to make sure world/console can still do damage
    1.0
    - Initial release

    Requires SDK Hooks!
    Attached Files
    File Type: sp Get Plugin or Get Source (si_skeet_blocker.sp - 715 views - 2.2 KB)
    File Type: smx si_skeet_blocker.smx (3.1 KB, 774 views)

    Last edited by CanadaRox; 08-03-2010 at 01:19.
    CanadaRox is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 08-02-2010 , 11:44   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #2

    Nice, can you also add that tank can't kill hunter when hunter is pouncing a survivor?
    marvel is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 08-02-2010 , 11:53   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #3

    new bool:bInAir[MAXPLAYERS];
    Shoulden't that be MAXPLAYERS+1 just in case?

    Nice work on the plugin though. Always wondered when this bug would be fixed.
    Edit: You forgot to mention that the plugin needs the undone SDK hooks extension

    Last edited by Visual77; 08-02-2010 at 12:04.
    Visual77 is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 08-02-2010 , 12:09   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #4

    Instead of blocking any damage that doesnt get excluded, you should only block damage that SHOULD be blocked.

    The code as it is would probably stop 'world' damage sources such as fire aswell. And why that odd timered in-air detection? Just check the FL_ONGROUND flag when called.
    AtomicStryker is offline
    CanadaRox
    Member
    Join Date: Dec 2009
    Old 08-02-2010 , 16:45   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #5

    Quote:
    Originally Posted by AtomicStryker View Post
    Instead of blocking any damage that doesnt get excluded, you should only block damage that SHOULD be blocked.

    The code as it is would probably stop 'world' damage sources such as fire aswell. And why that odd timered in-air detection? Just check the FL_ONGROUND flag when called.
    Thats my 4AM logic for you! Making these changes (as well as trying out another suggestion I got).

    OP has been updated with this now.

    Last edited by CanadaRox; 08-03-2010 at 01:20.
    CanadaRox is offline
    ProdigySim
    SourceMod Plugin Approver
    Join Date: Feb 2010
    Old 08-03-2010 , 03:47   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #6

    Cool stuff
    ProdigySim is offline
    ellis
    Senior Member
    Join Date: Apr 2010
    Old 11-14-2010 , 15:41   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #7

    doesen't work with sdkhooks:
    maybe with left4downtown?

    Code:
    L 11/14/2010 - 21:30:16: Info (map "c2m4_barns") (file "errors_20101114.log")
    L 11/14/2010 - 21:30:16: [SM] Native "GetClientTeam" reported: Client index 371 is invalid
    L 11/14/2010 - 21:30:16: [SM] Displaying call stack trace for plugin "si_skeet_blocker.smx":
    L 11/14/2010 - 21:30:16: [SM]   [0]  Line 67, si_skeet_blocker.sp::OnTakeDamage()
    L 11/14/2010 - 21:30:16: [SM] Native "GetClientTeam" reported: Client index 371 is invalid
    L 11/14/2010 - 21:30:16: [SM] Displaying call stack trace for plugin "si_skeet_blocker.smx":
    L 11/14/2010 - 21:30:16: [SM]   [0]  Line 67, si_skeet_blocker.sp::OnTakeDamage()
    L 11/14/2010 - 21:31:34: [SM] Native "GetClientTeam" reported: Client index 276 is invalid
    L 11/14/2010 - 21:31:34: [SM] Displaying call stack trace for plugin "si_skeet_blocker.smx":
    ellis is offline
    Skorpion1976
    Veteran Member
    Join Date: Jun 2009
    Location: Austria
    Old 11-15-2010 , 13:15   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #8

    client index value so high? Iīve never seen such client index values. Ainīt they capped to Mayplayers so on a 10vs10 server the highest number would be 20 ?
    Skorpion1976 is offline
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 11-15-2010 , 23:53   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #9

    common infected have client numbers that high and they will bug out a GetClientTeam check.

    might be nice to block breaking a smokers tongue from scratching as well.
    dirka_dirka is offline
    irogue
    Senior Member
    Join Date: Jan 2011
    Location: Australia
    Old 03-05-2011 , 05:07   Re: [L4D2] SI/Jockey Ride Skeet Blocker
    Reply With Quote #10

    Been looking for this plugin getting tired of seeing ppl lose a ahrd earned jockey ride due to a random swipe from a spitter for example that always entails with a dead jockey who gets frustrated from being taken out in one hit swipe / kill.

    Thanks for sharing will post back if i find any issues.
    irogue 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 23:57.


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