Left 4 Dead 2

Left 4 Dead 2

27 ratings
(MSC) Admin Script
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
26.327 KB
7 Sep, 2020 @ 4:31am
15 Oct, 2020 @ 12:34pm
4 Change Notes ( view )

Subscribe to download
(MSC) Admin Script

In 1 collection by [FoRcE]army_guy3
(MSC) Scripts
33 items
Description
If you like my works you can show your appreciation by donating to support me here[www.patreon.com].

MSC_ID: MSC_AG3_AdminScript
Supports MSC_AUTOLOAD.

This is the fifth test script that runs on the Master Script Controller while hosting your own server. This script hooks into the new MSC admin system to add new commands.

Note: This script requires the Master Script Controller.

You can subscribe to it here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2203978515


This script now supports MSC auto run. It no longer requires MSC_ADDSCRIPT.



Current functions:

kick <target> - Kicks the target from the server. Supports special prefix flags: s

slap <target> <Optional Damage> - Slaps target with damage. Supports special prefix flags: s

slay <target> - Kills the target. Supports special prefix flags: s

teleport <players to teleport> <player to teleport to> - Teleports players to another player. Supports special prefix flags: s

revive <target> - Does defib revive if the target is dead. Does normal incap revive if target is incapped. Supports special prefix flags: s

fullhealth <target> - Sets target to full health. Revives from incap if down. Supports special prefix flags: s

setmaxhealth <target> <new max health> - Sets target's max health. Supports special prefix flags: s

noclip <target> - Toggle noclip on target. Supports special prefix flags: s - enable - disable

fly <target> - Toggle fly mode on target. Supports special prefix flags: s - enable - disable

speedy <target> - Toggle speedy mode on target. Supports special prefix flags: s - enable - disable

god <target> - Toggle god mode on target. Supports special prefix flags: s - enable - disable

addbot - Can add bots that were kicked from the game.

rescue - Attempts to trigger finale rescue vehicle. This command may not work properly on all campaigns.

godrevive <target> - Pairs the revive and god command on the target.

map <map name> - Change the current map.

beckon <target> <player to move to> - Tells player bot targets to move to player. Supports special prefix flags: s

debugoutput <target> - This is a debugging command mainly used for checking if filters are working properly. The output will be printed to activator's console.

spawn <target> - Spawns the target and teleports them to activator. Supports special prefix flags: s



The new MSC advanced target filtering system can be used as well:
@Me
@Invert
@Z
@Zombie
@Infected
@S
@Survivor
@Spec
@Spectator
@H
@Human
@Bot
@All
@Smoker
@Hunter
@Jockey
@Spitter
@Charger
@Tank
@Alive
@Dead
@Closest
@Nearest
@Farthest
@Single

Including one advanced filter:

@Range_#_#





Examples in chat:

/slay @all
/slay @Smoker
/revive @Survivor


These filters can also be paired using the | character to create stacked filters. Remember that only the first filter in a chain should have a @ character AND filter chains should never have a space between any chained filters!

Examples in chat:

/teleport @Survivor|Farthest @me

/slay @Zombie|Bot|Alive


This will first filter to only survivors then among those it will apply the Farthest filter to return which survivor is farthest away.

We can also make it more advanced with:

/teleport @Survivor|alive|Farthest @me

Now it filters survivors.. who are alive... then finds the farthest target.

We could also use the range filter. Remember that the underscores are not optional and are used for parameter splitting. First we need either > or < to indicate less than or greater than distance.

@Range_<_

Now we need a number to compare to.

@Range_<_500 would mean only players with range smaller than 500 to the person activating the chat command.

So an example in chat would be:

/teleport @Range_<_500|Range_>_50 @me

Here we are creating two range filters so only players smaller than 500 in distance AND larger than 50 in distance would be teleported.





Keep in mind that this is an alpha build and some things may change in future builds.



These scripts take a lot of time and effort to produce. If you like them and/or want to see more, you can show your appreciation by throwing some money my way at:
https://www.patreon.com/ag3_killstreak
15 Comments
Octoling Girl and Steve 16 Apr @ 10:34am 
cool
<mark><size=+10000><b><u>Heist 25 Jun, 2024 @ 10:31pm 
speedy issue i found, when you climb ladders your speed goes back to normal once off of it
PHOBIE 9 Apr, 2023 @ 10:57am 
Maybe the first couple lines should be reserved for what it does and how it does that. I've read twice through all that text and still no idea how much hassle it would be. I just need a super unbureaucratic kick option with a remember.txt so they don't join again.
A1ex W1lliam 8 Mar, 2023 @ 6:15am 
i cant fuckin use it
:steamfacepalm:
Niky 20 Apr, 2022 @ 8:16pm 
excellent , time for some trolling :)
[FoRcE]army_guy3  [author] 20 Apr, 2022 @ 8:12pm 
no
Niky 20 Apr, 2022 @ 8:04pm 
this addon disable achievements?
[FoRcE]army_guy3  [author] 30 Jan, 2022 @ 6:34pm 
Sadly I can only make a static menu. I've talked with l4d2 last stand development team about adding this and they gave me some stupid nonsense about it would lag the client, When I made them look retarded with that, They finally admitted a bias for sourcemod and claimed that menus were sourcemod's thing.. Even though mani had it long before sourcemod did.

Long story short.. Assholes are preventing the feature from being added to vscripts because of their bias for sourcemod.

So likely no menu will be included as it will have minimal functionallity.
[FoRcE]army_guy3  [author] 2 Sep, 2021 @ 6:53am 
Yes but you must be the local host.
afiqh515 2 Sep, 2021 @ 1:19am 
is this work on multiplayer