Monthly Target: $400 Donations: $348
 87% 

[L4D2] Incapped Crawling with Animation (1.32) [10-May-2012]


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

    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.


    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


    Known bugs:
    • No Coach animations - Valves fault
    • Crazy face animation whilst crawling
    • Hand sticks out but not holding side arm


    Hints:

    The following hints can be displayed

    by setting l4d2_crawling_hint to 1:


    or setting l4d2_crawling_hint to 2:


    or setting l4d2_crawling_hint to 3:
    (please note clients with gameinstructor_enable 0 cannot see this)




    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=Disables survivor glow on crawling, 1=Enables glow if not realism.
    l4d2_crawling_glow "0"

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

    // How many times to display hints or instructor hint timeout.
    l4d2_crawling_hint_num "10"

    // 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.
    l4d2_crawling_view "1"

    // Incapped Crawling plugin version.
    l4d2_crawling_version 


    Changes:
    Code:
    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 1.30:
    • If you're updating from 1.30 or below, delete the old config (or add them) as new cvars have been added.

    Current Translations: English (en), Danish (da), French (fr), German (de), Portuguese (pt), Russian (ru), Spanish (es).
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_incapped_crawling.sp - 8579 views - 29.0 KB)
    File Type: zip translations.zip (2.6 KB, 4771 views)
    __________________

    Last edited by Silvers; 05-21-2012 at 05:15.
    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
    Veteran Member
    Join Date: Aug 2010
    Location: Space
    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 20:15.


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