Raised This Month: $7 Target: $400
 1% 

[L4D2] Incapped Crawling with Animation (2.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
1934
Plugin Version:
2.9
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    452 
    Plugin Description:
    Allows incapped survivors to crawl and plays crawling animation.
    Old 09-05-2010 , 01:25   [L4D2] Incapped Crawling with Animation (2.9) [11-Dec-2022]
    Reply With Quote #1

    Related Plugins:


    About:

    Enables survivor crawling and adds the crawling animation to incapped players. The animation is already in the game so no extra files needed.

    Please view the Video Demonstration. (Note: this was the first version.)



    Thanks:
    • Mr.RuyC - For help testing and Portuguese translations.
    • JoBarfCreepy - For help testing and Danish translations.
    • John2022 - For French translations.
    • Januto - For Spanish translations.
    • disawar1 - For Russian translations.
    • Dont Fear The Reaper - For German translations.
    • HarryPotter - For Simplified Chinese and Traditional Chinese translations.
    • Lux - Coach animation method.
    • Shadowysn - Crazy faces fix method.


    How it works:
    • OnMapStart sets survivor_allow_crawling to 1 and survivor_crawl_speed to the plugins l4d2_crawling_speed cvar
    • OnPlayerRunCmd catches incapacitated players pressing IN_FORWARD
    • Creates a clone of the incapped player and sets animation
    • Makes the player invisible, and visible when they stop holding forward


    Hints:

    The following hints can be displayed

    by setting l4d2_crawling_hint to 1:


    or setting l4d2_crawling_hint to 2:




    CVars:

    Saved to l4d2_incapped_crawling.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_crawling "1"

    // 0=Off. 1=Use crazy faces (original before version 2.0).
    l4d2_crawling_crazy "0"

    // 0=Disables survivor glow on crawling, 1=Enables glow if not realism.
    l4d2_crawling_glow "0"

    // 0=Dislables, 1=Chat text, 2=Hint box.
    l4d2_crawling_hint "2"

    // How many times to display hints.
    l4d2_crawling_hint_num "2"

    // Damage to apply every second of crawling, 0=No damage when crawling.
    l4d2_crawling_hurt "2"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_crawling_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_crawling_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_crawling_modes_tog "0"

    // Sets the playback speed of the crawling animation.
    l4d2_crawling_rate "15"

    // Changes "survivor_crawl_speed" cvar.
    l4d2_crawling_speed "15"

    // 0=Disables crawling in spitter acid, 1=Enables crawling in spit.
    l4d2_crawling_spit "1"

    // 0=Firstperson view when crawling, 1=Thirdperson view when crawling. 2=Firstperson view when crawling and hides own animation.
    l4d2_crawling_view "1"

    // Incapped Crawling plugin version.
    l4d2_crawling_version 


    Changes:
    Code:
    2.9 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    2.8 (04-Mar-2021)
        - Increased a model string variable to support custom models with longer names. Thanks to "Sappykun" for fixing.
    
    2.7a (24-Feb-2021)
        - Added Simplified Chinese and Traditional Chinese translations. Thanks to "HarryPotter" for providing. 
    
    2.7 (27-Sep-2020)
        - Changed cvar "l4d2_crawling_view" to accept value "2" to enable crawling in 1st person without showing your own crawling animation.
        - Feature by "Shadowysn".
    
    2.6 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    2.5 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
        - Updated these translation file encodings to UTF-8 (to display all characters correctly): Danish (da), French (fr), German (de).
    
    2.4 (19-Dec-2019)
        - Update by "Lux": Compatibility with the latest LMC version and Coach anim.
    
    2.3 (25-Nov-2019)
        - Fixed "Exception reported: Client 7 is fake and cannot be targeted" errors - Thanks to "Jerry_21" for reporting.
    
    2.2 (24-Nov-2019)
        - Fixed not resetting damage hurt time from version 2.1 changes.
    
    2.1 (24-Nov-2019)
        Changes requested and suggested by "Lux":
        - Added cvar "l4d2_crawling_crazy" option for the crazy face.
        - Now only applies damage once per second when players spam W.
        - Potential fix for client prediction issues when crawling is blocked by spit etc.
    
    2.0 (24-Nov-2018)
        - Coach crawling animation now added! Thanks to "Lux" for the bone merge idea.
        - Crazy faces are now removed. Thanks to "Shadowysn" for the new method.
        - Optimizations and fixes. Stopped using events to track incapacitated information.
    
    1.42 (08-Aug-2018)
        - Fixed the tank death animation being frozen in place, due to "survivor_allow_crawling" bug - Thanks to "Uncle Jessie" for the initial find.
    
    1.41 (24-Jul-2018)
        - Fixed error with LMC - "Lux's Model Changer - Thanks to "MasterMind420".
    
    1.40 (21-Jul-2018)
        - Added Hungarian translations - Thanks to "KasperH".
        - No other changes.
    
    1.40 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
        - Removed instructor hints due to Valve: FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameinstructor_enable.
    
    1.33 (06-Jun-2017)
        - Update by "Lux":
        - Added LMC - "Lux's Model Changer" support for overlay models.
        - Thanks "MasterMind420" for helping test.
    
    1.32 (10-May-2012)
        - Reloading or turning on the plugin now allows incapped players to crawl, instead of requiring the player_incapacitated event to fire first.
    
    1.31 (30-Mar-2012)
        - Added Russian translations - Thanks to "disawar1".
        - Added cvar "l4d2_crawling_modes" to control which game modes the plugin works in.
        - Added cvar "l4d2_crawling_modes_off" same as above.
        - Added cvar "l4d2_crawling_modes_tog" same as above.
    
    1.30 (19-Feb-2012)
        - Added French translations - Thanks to "John2022".
        - Added Spanish translations - Thanks to "Januto".
        - Removes clones when the plugin is unloaded.
        - Removed logging errors when invalid model.
    
    1.29 (18-Oct-2011)
        - Re-added team check to stop error log filling up.
    
    1.28 (14-Oct-2011)
        - Fixed animation number due to Valve update.
        - Added reset on round_start and removed previous update.
    
    1.27 (14-Oct-2011)
        - Added team check to stop error log filling up.
    
    1.26 (22-May-2011)
        - Added cvar "l4d2_crawling_hint_num". How many times to display hints or instructor hint timeout.
        - Fixed duplicate hint messages being displayed (2 events fire for player_incapacitated ?!)
        - Fixed players gun disappearing when being revived and trying to crawl.
        - Fixed Coach not receiving damage when crawling.
        - Optimized some code.
    
    1.25 (17-May-2011)
        - Fixed bugs created by previous update.
    
    1.24 (15-May-2011)
        - Fixed cvars not changing the crawl speed.
    
    1.23 (16-Apr-2011)
        - Changed the Hint Box notification to only appear once per round.
        - Fixed crawling not working for all players?
    
    1.22 (02-Jan-2011)
        - Changed thirdperson view because of Valve patching some client commands.
        - Positioned the model better and removed the timer creating the model.
    
    1.21 (26-Nov-2010)
        - Fixed Instructor Hint not using translation.
    
    1.20 (25-Nov-2010)
        - Fixed invalid convar handles.
    
    1.19 (19-Nov-2010)
        - Added Instructor Hints - Thanks to "McFlurry".
    
    1.18 (18-Nov-2010)
        - Added hints, "l4d2_crawling_hint" and translation file.
    
    1.17 (18-Nov-2010)
        - Cleaned up some code.
        - Enables "survivor_allow_crawling" on plugin start.
        - Fixed not setting "survivor_crawl_speed" on round start.
        - Increased delay on player_incapacitated before allowing crawling from 1.0s to 1.5s.
    
    1.16 (04-Nov-2010)
        - Sets "survivor_allow_crawling" to 0 when plugin unloaded.
    
    1.15 (04-Nov-2010)
        - Added cvar "l4d_crawling_speed" to change "survivor_crawl_speed" cvar (default 15).
        - Added cvar "l4d_crawling_rate" to set the animation playback speed (default 15).
    
    1.14 (12-Oct-2010)
        - Fixed "GetClientHealth" reported: Client is not in game.
    
    1.13 (10-Oct-2010)
        - Removed.
    
    1.12 (07-Oct-2010)
        - Removed.
    
    1.11 (06-Oct-2010)
        - Fixed animation numbers due to The Sacrifice update.
    
    1.10 (05-Oct-2010)
        - Added Bill's animation number for L4D2.
    
    1.09 (01-Oct-2010)
        - Added 1 second delay on player_incapacitated before allowing crawling.
    
    1.08 (22-Sep-2010)
        - Added charger carry event.
        - Fixed version cvar.
    
    1.07 (15-Sep-2010)
        - Animation playback rate now set according to survivor_crawl_speed.
        - Added player_spawn hook to unblock animation, just incase.
    
    1.06 (14-Sep-2010)
        - Added UnhookEvents.
        - Optimized some code.
        - Added version cvar.
    
    1.05 (13-Sep-2010)
        - Added cvar to enable/disable crawling in spitter acid.
        - Added cvar to damage players every second of crawling.
        - Hooked ledge hang to stop animation playing.
        - Hooked charger and smoker grab to stop animation playing.
    
    1.04 (11-Sep-2010)
        - Added "McFlurry"'s code to stop crawling whilst pounced.
        - Fixed crawling breaking on round restart.
    
    1.03 (10-Sep-2010)
        - Added cvar to enable thirdperson view on crawling.
        - Stopped crawling on round end.
    
    1.02 (10-Sep-2010)
        - Fixed silly mistake.
    
    1.01 (10-Sep-2010)
        - Positioned the clone better.
        - Added a cvar to enable/disable glow on crawling.
        - Delayed the animation by 0.1 to correct angles.
    
    1.0 (05-Sep-2010)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download "translations_incapped_crawling.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.


    Updating from 2.0 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

    Current Translations: English (en), Chinese Simplified (chi), Chinese Traditional (zho), Danish (da), French (fr), German (de), Hungarian (hu), Portuguese (pt), Russian (ru), Spanish (es).
    Attached Files
    File Type: zip translations.zip (4.3 KB, 2202 views)
    File Type: sp Get Plugin or Get Source (l4d2_incapped_crawling.sp - 3786 views - 30.0 KB)
    __________________

    Last edited by Silvers; 01-08-2023 at 10:48. Reason: Restore to previous version.
    Silvers is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 09-05-2010 , 01:36   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #2

    I would like a video to explain
    __________________

    Last edited by alexip121093; 09-05-2010 at 08:25. Reason: Added video great
    alexip121093 is offline
    Send a message via MSN to alexip121093
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 09-05-2010 , 01:49   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #3

    Nice! Wish I had thought of doing this before.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 09-05-2010 , 08:50   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #4

    it is possible to add a prone mode in l4d2 that like call of duty. (able to use primary weapons)?
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-05-2010 , 08:59   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #5

    It could be possible by setting the players view, but there are no prone animations so it would look weird.
    __________________
    Silvers is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 09-05-2010 , 09:27   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #6

    Thank your plugin.
    If any one know how to find details about this: http://wiki.alliedmods.net/Left_4_Dead_Netprops I would be very grateful

    panxiaohai is offline
    Fleepster99
    Senior Member
    Join Date: Apr 2010
    Old 09-05-2010 , 09:46   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #7

    Quote:
    Originally Posted by alexip121093 View Post
    it is possible to add a prone mode in l4d2 that like call of duty. (able to use primary weapons)?
    Its a nice idea and would suit nicely with my team deathmatch, nonetheless this is a good plugin thnx.
    Fleepster99 is offline
    GanjaStar
    Senior Member
    Join Date: Jun 2009
    Old 09-05-2010 , 12:22   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #8

    Interesting!

    I wonder why isnt the crawling animations used when you enable crawling throught the ingame cvar?

    thats how i enabled crawling on my server, but it doesn't look as good as l4d 1 crawling.
    GanjaStar is offline
    honorcode23
    BANNED
    Join Date: Mar 2010
    Location: Chile
    Old 09-05-2010 , 12:55   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #9

    Awesome!
    honorcode23 is offline
    Searcher64
    Senior Member
    Join Date: Apr 2010
    Old 09-05-2010 , 13:30   Re: [L4D2] Incapped Crawling with Animation
    Reply With Quote #10

    cool plugin!
    Searcher64 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 00:22.


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