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.)
How it works:
- 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.
- Lux - Coach animation method.
- Shadowysn - Crazy faces fix method.
- 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
The following hints can be displayed
by setting l4d2_crawling_hint
or setting l4d2_crawling_hint
Saved to l4d2_incapped_crawling.cfg
in your servers \cfg\sourcemod\
// 0=Plugin off, 1=Plugin on.
// 0=Off. 1=Use crazy faces (original before version 2.0).
// 0=Disables survivor glow on crawling, 1=Enables glow if not realism.
// 0=Dislables, 1=Chat text, 2=Hint box.
// How many times to display hints.
// Damage to apply every second of crawling, 0=No damage when crawling.
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
// Sets the playback speed of the crawling animation.
// Changes "survivor_crawl_speed" cvar.
// 0=Disables crawling in spitter acid, 1=Enables crawling in spit.
// 0=Firstperson view when crawling, 1=Thirdperson view when crawling.
// Incapped Crawling plugin version.
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
- Updated these translation files encodings to UTF-8 (to display all characters correctly): Danish (da), French (fr), German (de).
- Update by "Lux": Compatibility with the latest LMC version and Coach anim.
- Fixed "Exception reported: Client 7 is fake and cannot be targeted" errors - Thanks to "Jerry_21" for reporting.
- Fixed not resetting damage hurt time from version 2.1 changes.
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.
- 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.
- Fixed the tank death animation being frozen in place, due to "survivor_allow_crawling" bug - Thanks to "Uncle Jessie" for the initial find.
- Fixed error with LMC - "Lux's Model Changer - Thanks to "MasterMind420".
- Added Hungarian translations - Thanks to "KasperH".
- No other changes.
- 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.
- Update by "Lux":
- Added LMC - "Lux's Model Changer" support for overlay models.
- Thanks "MasterMind420" for helping test.
- Reloading or turning on the plugin now allows incapped players to crawl, instead of requiring the player_incapacitated event to fire first.
- 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.
- 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.
- Re-added team check to stop error log filling up.
- Fixed animation number due to Valve update.
- Added reset on round_start and removed previous update.
- Added team check to stop error log filling up.
- 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.
- Fixed bugs created by previous update.
- Fixed cvars not changing the crawl speed.
- Changed the Hint Box notification to only appear once per round.
- Fixed crawling not working for all players?
- Changed thirdperson view because of Valve patching some client commands.
- Positioned the model better and removed the timer creating the model.
- Fixed Instructor Hint not using translation.
- Fixed invalid convar handles.
- Added Instructor Hints - Thanks to "McFlurry".
- Added hints, "l4d2_crawling_hint" and translation file.
- 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.
- Sets "survivor_allow_crawling" to 0 when plugin unloaded.
- 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).
- Fixed "GetClientHealth" reported: Client is not in game.
- Fixed animation numbers due to The Sacrifice update.
- Added Bill's animation number for L4D2.
- Added 1 second delay on player_incapacitated before allowing crawling.
- Added charger carry event.
- Fixed version cvar.
- Animation playback rate now set according to survivor_crawl_speed.
- Added player_spawn hook to unblock animation, just incase.
- Added UnhookEvents.
- Optimized some code.
- Added version cvar.
- 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.
- Added "McFlurry"'s code to stop crawling whilst pounced.
- Fixed crawling breaking on round restart.
- Added cvar to enable thirdperson view on crawling.
- Stopped crawling on round end.
- Fixed silly mistake.
- Positioned the clone better.
- Added a cvar to enable/disable glow on crawling.
- Delayed the animation by 0.1 to correct angles.
- Initial release.
Updating from 2.0 or older:
- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- Download "translations_incapped_crawling.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.
- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
: English (en), Danish (da), French (fr), German (de), Hungarian (hu), Portuguese (pt), Russian (ru), Spanish (es).