Left 4 Dead 2

Left 4 Dead 2

32 ratings
(MSC) AG3 Build Scripts
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
136.269 KB
22 Oct, 2020 @ 7:12am
2 Dec, 2020 @ 9:56pm
14 Change Notes ( view )

Subscribe to download
(MSC) AG3 Build Scripts

In 1 collection by [FoRcE]army_guy3
(MSC) Scripts
33 items
Description
MSC_ID: MSC_AG3_Build_Scripts
Supports MSC_AUTOLOAD.

This is the 20th test script that runs on the Master Script Controller.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2203978515

This script is in alpha. It allows you to spawn props into the map and position them how you want them. I'm planning to make it very similar to my ASQ SERVER source mod build script.

Build forts, smash bots with traincar1, Make masterpieces, Spawn doors, connect them to buttons, and smash more bots with traincar1! (*cough* and get piles of bricks dropped on your head :o *cough*)

chat commands:
physics <modelname OR shortcutmodelname> - Spawns physics prop where you are looking.
dynamic <modelname OR shortcutmodelname> - Spawns dynamic prop where you are looking.
movex <value> - Moves the entity you are looking at along the relative X axis of the map.
movey <value> - Moves the entity you are looking at along the relative Y axis of the map.
movez <value> - Moves the entity you are looking at along the relative Z axis of the map.
rotatex <value> - Rotates the entity you are looking at along the relative X axis.
rotatey <value> - Rotates the entity you are looking at along the relative Y axis.
rotatez <value> - Rotates the entity you are looking at along the relative Z axis.
setrotate <x value> <y value> <z value> - Sets the entity's rotation you are looking at.
disablemotion - Disables movement of the physics prop you are looking at.
enablemotion - Enables movement of the physics prop you are looking at.
delete - Deletes the prop you are looking at. Note: This is restricted to only delete whitelisted entity types.
playeranglegrab <MULTI ARGUMENTS (lockx - locky - lockz - lockangle)> - This is a powerful new alpha tool of the build scripts. It allows you to pickup and move objects with advanced functionality. More examples on how to use this listed below.
releaseobject - Drops the prop you are holding.
create <type> <TYPE PARAMETERS> - This command is going to be very similar to my sourcemod plugin. Currently you can spawn types (dynamic, physics, door, doorsliding, button, elevator(elev), ammopile, weapon, lasersight, minigun, and 50cal). More information on this command can be found on the guide linked at the bottom.
clone - This command clones authorized props.
grabdistance <value> - This command allows you to change the distance.
grab - This command is similar to the playeranglegrab only it doesn't control relative positioning based on the direction you're looking.
disablesafegrab - Disables the safe grab system that restricts grab to only authorized entity types. This will allow you to grab lots of new things you couldn't before but results may vary. :P
selectlink - Sets the button you're looking at to the link button for that player.
setlink <optional: SubType> <optional: subArg1> - Completes the link to the entity you're looking at. Requires selectlink on button first before this command will work.
selectadd - Adds the entity you're looking at to the current selection.
selectclear - Clears all entities from the selection.
setchild - Sets the prop you're looking at as a child of the prop in selection. Note: If more than 1 prop is in selection, it will use the first prop selected as the parent and the rest as children instead of entity you're looking at.
selectelev - Selects the elevator you're looking at as the selected elevator to use with elev command.
elev <SubCommand> <SubCommand Arguments> - Allows you to modify the elevator you're looking at. More information on how to make and modify your elevator will be in the guide.

Examples:
/physics box1
/physics models/props_junk/wood_crate001a.mdl
/dynamic box4
/rotatex -45
/setrotate 0 180 0
/movey 100
/create door door1
/create dynamic box1
/create dynamic models/props_junk/wood_crate001a.mdl
/grabdistance 65
/grabdistance set 500
/create ammopile
/create ammopile box1
/create weapon rifle_ak47
/create lasersight
/setchild




playeranglegrab chat examples:

Simple pickup:
/playeranglegrab

Advanced pickup that locks the prop's X and Y position. This would lock the prop so it can only go up and down without allowing it to rotate.
/playeranglegrab lockx locky lockangle

Advanced pickup that locks the prop's Z position. This would lock the prop so it can only move along a horizontal plane with rotation.
/playeranglegrab lockz

Advanced pickup that locks the prop's angles so it can't rotate. It will be able to move along X, Y, and Z.
/playeranglegrab lockangle

Note: You do not need to use releaseobject to change playeranglegrab. It will continue to hold the same object but use the new rules you set.

Once you are happy with where the object is use:
/releaseobject

to set it back down.

-------------------------
How to make a working button for your doors.

Step 1: create button
/create button button1

Step2: look at button and type
/selectlink

Step3: Look at door and type
/setlink

Step4: Eat cake because you're done. :O

-------------------------

How to select multiple props at once.

Step 1:
For each prop you want to add to selection list:
/selectadd

Step 2:
Use playergrabangles command. Note you do not need to be looking at the props while they are selected.

Step 3:
Remember to clear selection after you're done with the props so the script knows you don't want to grab them again.
/selectclear

-------------------------

The model shortcut names were too long to fit here so I put them in a guide here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2266350928

I added an experimental radial menu as well:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?edit=true&id=2266545571

Currently it only contains 1 menu for grabbing. Any other listed menus won't work yet.



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
32 Comments
RiceIsNice 24 Sep, 2024 @ 4:17am 
can you add light spawning? or this addon discontinued?
elgato 15 Aug, 2024 @ 7:07am 
Really wished there were save files, or you can load your previous build.

Or when you start up a campaign your build, will still be there. Including weapons and etc from the build script.
[FoRcE]army_guy3  [author] 23 Feb, 2022 @ 10:14am 
Hey, Glad you enjoy the mod :)

The guide:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2266350928

has a subsection on how to make a working elevator, add floors, ect.
tabletka 22 Feb, 2022 @ 7:38pm 
how to make an elevator? this addon is the best. things that are in the mod i've seen only in servers.
[FoRcE]army_guy3  [author] 3 Feb, 2022 @ 1:38am 
That doesn't answer either of my questions, banana.
DivineDarkness{A} 31 Jan, 2022 @ 8:13pm 
Army_guy3 all good was just asking
BananaBoi 31 Jan, 2022 @ 6:35pm 
when it trys to load the map
[FoRcE]army_guy3  [author] 31 Jan, 2022 @ 5:32pm 
Does it crash if the MSC is the only loaded script? If not then:

Does it crash if only the MSC and build scripts are loaded?
BananaBoi 30 Jan, 2022 @ 1:28pm 
it crashes every time i load into a map:steamsad:
[FoRcE]army_guy3  [author] 7 Jun, 2021 @ 3:31am 
hey divine

I'm sorry but I have a lot of family medical stuff going on right now.

I haven't had any time to work on any plugins.