The idea of the plugin is that players can be reproduce movements (that were previously recorded by someone else with the [L4D2] Movement Reader
) on the specific player positions fulfilling the conditions of "position" and "weapons in hand" and other conditions specified in the [L4D2] Movement Anim Detector
Thus achieving to reproduce movements that are normally very complicated to do.
Currently the plugin is functional, but it has many limitations that have not been implemented yet.
to make the sm_prueba command automatic (also keep the sm_prueba command), that when the players stand in the correct positions, in a period of 3 seconds, it is activated automatically (this is canceled if they leave the positions or the animation is other than "normal run") (eye for this, you must use the Silvers plugin: Trigger Multiple Commands and thus avoid the validations of all entities)
add a custom list (using .cfg files) of boosts per map for each different map and with the possibility of adding many boosting sites, this means that 2 or more boosting sites could be activated at the same time, timers are needed independent and can activate in random moment.
add a third/four person in the formula to do the "Super Boost
" (this also includes more than 4 players because they can be multiple boosters and runners, the number of runners can be varied, that is, it does not matter if they are 1 or 32 people, all are Boost because the pipe/molotov can Boost up to 32 people, you can associate the timer number with the customer number) Edit:
Now can boost Forced 3 players, we are working to make it manageable for the number of players you want.
add a new command that when a player uses it, this command forcibly stops the movement reader of the players involved, the condition is that this player can only use this command when they are in their OWN active movement reader, otherwise they cannot use this command (this option can be variable, dependes of Runner actions)
add specific admin flag to define who can do Runner and who can do Booster and too add in the new stop command describe in the 4 option.
add conditions depending on map events (configurable by cfg file), for example c5m5, that boost cannot be used until the bridge is fully lowered.
[L4D2] Speedrunner Tools
(Require this gamedata
[L4D2] Movement Reader
(Require this gamedata
[L4D & L4D2] Left 4 DHooks Direct
( Require DHooks (Experimental Dynamic Detour support)
[ANY] Dev Cmds
(Optional SMLib new syntax
or old syntax
in github press button green CODE and after press Download ZIP)
[Any] Strip Weapons from Player
[L4D1 & L4D2] Console Cmd As Host (Listen Server Only)
(only if you test with "map" command,lobby or listen server and not in Source Dedicated Server)
For [L4D2] Movement Anim Detector
For [L4D2] Speedrunner Tools
and [L4D2] Movement Reader
For [L4D2] Movement Reader
(attached in this post) in left4dead2\addons\sourcemod\plugins\disabled\ movements\c1m2\sboost
(create folder if they don't exist)
For [L4D & L4D2] Left 4 DHooks Direct
(sourcemod folder) in left4dead2\addons
(this name change with every new version and need download 110 to sourcemod 1.10+)(addons folder) in left4dead2\
For [ANY] Dev Cmds
Put sm_dev_cmds.smx in left4dead2\addons\sourcemod\plugins
(gamedata and scripting folder) in left4dead2\addons\sourcemod
For [Any] Strip Weapons from Player
For [L4D1 & L4D2] Console Cmd As Host (Listen Server Only)
How to use:
Start in map c1m2_streets
Put this cvars in console:
sm_cvar st_idle 1
sm_cvar st_idle_anytime 1
sm_cvar st_edgebug 1
sm_cvar st_disableledgehang 1
sm_cvar director_afk_timeout 999999
Kick Bots and create 3 fakebots in saferoom with command:
Give weapons to players:
Player 1 - (Any Weapon/Item in Hands)
Player 2 - Grenade Launcher (in Hands):
sm_fcmd 2 give grenade_launcher
Player 3 - Vomitjar (in Hands):
sm_fcmd 3 give vomitjar
Then teleport 3 players to positions:
Player with Any Weapon/Item:
sm_setpos @me 1635.812 4727.136 704.031
Player with Grenade Launcher:
sm_setpos 2 1440.752 4390.685 468.842
Player with Vomitjar:
sm_setpos 3 1360.234 4260.946 478.149
Then you can put in console the command to trigger the Movement Anim Detector plugin.
24-Feb-21: First release, the validation of positions was done for 2 players.
Version 126.96.36.199 (29-Jul-21): The validation of positions was modified to 3 players.
Version 188.8.131.52 (07-Aug-21): Adjustment and correction to the list of valid animations relative to left4dhooks.l4d2.cfg
Version 184.108.40.206 (10-Aug-21): Code was commented that at the moment is not used, warnings were eliminated when compiling and white spaces/indents were eliminated