Scripts
102 files
-
Bomb Hammer + Expandable Debug Viewer
By geeko55
Bomb Hammer is a mod I built for fun and coding practice, and was written with new programmers in mind. Other mods might have fancy custom debug menus, but I'm hoping that my commented code will be easy to follow and teach something to beginners.
Also included is an expandable, beginner friendly structured debug viewer for general or customized use. I've commented the code, and did my best to make this mod friendly and straight forward for new or inexperienced programmers.
The Expandable Debug Viewer will automatically expand its formatting for new entries. Simply define your new line and add it to the table of lines.
This code was made to be expanded and tinkered with, so if you want more bombs, or larger explosions, please read bomb_hammer.lua and mess around! 🙂
How to Use:
1. Place 'explosive wisps' by clicking on a voxel with the Hammer drawn.
1b. Note, the 'wisps' will only be placed with the hammer drawn, and while the player is not too close to the target area. This was a safety feature I left in when the mod originally just exploded, even at the player's feet.
2. The number of wisps that can be placed, and their strength, is editable in the bomb_hammer.lua file
3. To explode any placed wisps, click while the Extinguisher is drawn. Exploding wisps will delete them, freeing up room for more wisps!
------------------ readme.txt ------------------
This mod uses:
(a) Antipolo's Teardown ModLoader utility
(b) Data Dumper table from lua-users wiki.
If this mod stops working, try seeing if either your ModLoader's included ui/hud.lua file isn't out of date, or for some reason your inclusion of Data Dumper is misbehaving.
Installation:
1. Back up any files that might be replaced at the installer's discretion.
2. Extract the folders 'mods' and 'ui' to your C:/...<Steam Installation>.../Teardown/data folder
3. In Teardown/data/ui is modloader.lua, use this to toggle mods on or off through comments.
Sources:
(a)
https://github.com/antopilo/TeardownModLoader
(b)
http://lua-users.org/wiki/DataDumper
289 downloads
0 comments
Updated
-
Better fonts
By VoxModding
Mod information
The mod has 2 different font files which are better than basic fonts.
Installation guide
Drop data folder in teardown folder and replace files. Restart the game if it's running. My other mods
Small costruction site Broken tools32 downloads
-
script Fang's Custom Weapons
By Fang86
This mod will only work with version 0.5 or later. There are a few minor issues present, but nothing major. Planned updates are on the way.
You can now open the menu by pressing "M" instead of going into the escape menu. You will be able to change the hotkey soon.
https://github.com/Fang86/Custom-Weapons
This mod allows you to shoot weapons with your own settings. You can set your RPM (rounds per minute), spread, ammo type (rockets or bullets), bullets per shot, infinite ammo, burst firing mode, and recoil/flash visibility!
How much can you change your custom gun?
RPM ranges from 10 to 10000 Spread ranges from 0 to 10, with 10 having the most spread You can change your ammo type from bullets to ROCKETS! Bullets per shot ranges from 1 to 100. However, the game gets very laggy when its set to 100, so make sure your rpm isnt too high! Burst speed ranged from 60 to 2000. This controls the speed between each shot in a burst with the higher number making it faster Burst shots ranges from 2 to 10 rounds per burst. Set a tool that the mod is restricted to
Demo of version 1.2:
----------------------------------------------------------------------------------------------------------
Installation:
1. Open file explorer - go to Documents/Teardown/mods
2. Open "Custom Weapons.zip" and drag the folder called "Custom Weapons" into the mods folder
----------------------------------------------------------------------------------------------------------
How to use:
1. Enable the mod in the game's main menu
2. Press "M" to open up the menu (this also closes the menu)
3. You should now see options to change the RPM, spread, and bullets per shot. You should also see buttons to toggle Modded weapon, Rocket ammo, Infinite ammo, Burst firing mode, and a Recoil/Flash hider.
Modded weapon allows you to shoot with the given RPM and spread. It will work on any tool
as long as you hold the mouse button down. It is enabled by default. Rocket ammo allows you to shoot rockets (while "Modded weapon" is on) at the given RPM
and spread. Infinite ammo allows you make all normal weapon ammo infinite. The modded weapon ammo is inherently
infinite, so you do not need this on unless you are not using modded weapon. Burst mode allows you to shoot in bursts with custom rounds per burst and delay per shot in each burst Recoil/Flash allows you to hide the initial flash and recoil when shooting with the mod Mod's HUD allows you to hide or show the new HUD in v1.2. ----------------------------------------------------------------------------------------------------------
To do:
Add custom model integration (possibly tied to rpm/spread/bullets per shot) so others can use this script for their own voxel weapon models. Create Github page Add recoil if possible - If anyone knows out how to do this I would appreciate any help! Add damage and range slider if possible Add option for finite ammo counter (and maybe reloading?) Some more UI changes Ability to turn off certain things in the HUD (Maybe) Ability to change the color scheme Beginning of template production for other modders This will include a very readable text file to make it easier to change default, minimum, and maximum values Tool/Weapon hider ----------------------------------------------------------------------------------------------------------
Game version: 0.5 and above ONLY
Discord: Fang#7832
DM me if you need help or have suggestions!
You can change the default RPM, spread, etc. in the weaponMod.lua file.
*Special thanks to My Cresta for his helpful slider code
*COMING SOON!* I plan to update this mod so that other mod creators can use it as a "template script" to create their own custom weapons using their models. This will be much better if the devs give us the ability to spawn new weapons, but for now this mod will affect all weapons/tools (soon you can change it to only affect certain tools).
9,978 downloads
-
Custom Levels Extended - More custom maps
By mikkel20088
This addition to the game allows for up to 45 custom maps
This is a quick rescript which allows for way more custom levels in the menu.
This mod does not provide custom levels but only the option to add more.
1,160 downloads
-
100% game save.
By Mega
This Is A 100% game save.
==================
INSTALLATION:
Documents\Teardown
===============
Enjoy 🙂
2,079 downloads
-
script Quick Save Manager
By Gh0st
This is a python script that I wrote that allows you to save and load quicksaves.
The process is pretty self explanatory and the program guides you through pretty well, but just make sure that when loading a save you first quicksave BEFORE you load the save and then you can load it in the program and then in the game. As of right now there is no ui, although I will most likely add it soon.
Although the program gives you simple explanations, if you find yourself confused I recommend you read the READ.txt in the zip.
How to install:
1. Extract the file anywhere you want.
2. Move the quicksaves folder to Documents\Teardown (The folder where your save files are). You can delete the txt in the quicksaves folder if you want; it is completely useless other then allowing me to put the folder into a zip file.
3. Run the script when you're ready and:
Enjoy!
Also make sure to check out another save manager made by MrAdhit that improves on the idea a lot!
If you would prefer not to download the zip, the code is below:
from shutil import copyfile from os import remove from getpass import getuser def startSave(): choose = input('save (s) or load/delete (l)? ') if choose == 's': print() save() else: if choose == 'l': print() loadChoose() def save(): try: saveListTxt = loadlist() except: print('savelist.txt not found, creating new file') saveListTxt = loadlist('x') saveListTxt.close() saveListTxt = loadlist() saveName = input('What do you want to call your save? ') saveNameNl = saveName + '\n' saves = saveListTxt.readlines() count = 0 for i in saves: count += 1 if saveNameNl == i: print() print('you already have a save with this name :(') print() saveListTxt.close() break else: if count == len(saves): saveListTxt.close() saveListTxt = loadlist('a') copyfile(r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksave.bin', r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksaves\\' + saveName + '.bin') saveListTxt.write(saveNameNl) saveListTxt.close() print() print('Save created') print() break if len(saves) == 0: saveListTxt.close() saveListTxt = loadlist('a') copyfile(r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksave.bin', r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksaves\\' + saveName + '.bin') saveListTxt.write(saveNameNl) saveListTxt.close() print() print('Save created') print() def loadlist(method = 'r'): resultlist = open(r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksaves\savelist.txt', method) return resultlist def loadChoose(): saveTxt = loadlist('r') saveList = saveTxt.readlines() saveTxt.close saveTxt = loadlist('r') saveListOg = saveTxt.readlines() saveTxt.close if len(saveListOg) > 0: for i in range(len(saveList)): print(i + 1) print(saveList[i]) print() saveNum = int(input('type the number of the save you want to load/delete ')) print() if not saveNum > len(saveList) and not saveNum < 1: delOrLoad = input('delete (d) or load (l)? ') if delOrLoad == 'd': for i in range(len(saveList)): saveList[i] = saveList[i].rstrip('\n') remove(r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksaves\\' + saveList[saveNum - 1] + '.bin') print() print('deleted!') print() newTxt = loadlist('w') saveListOg.pop(saveNum - 1) newTxt.writelines(saveListOg) else: if delOrLoad == 'l': for i in range(len(saveList)): saveList[i] = saveList[i].rstrip('\n') copyfile(r'C:\Users\\' + username + r'\OneDrive\Documents\Teardown\quicksaves\\' + saveList[saveNum - 1] + '.bin', r'C:\Users\ypier\OneDrive\Documents\Teardown\quicksave.bin') print() print('loaded!') print() else: print() print('You don\'t have any saves! Input \'s\' to save!') print() username = getuser() debug = 'false' while 'true': #debug = 'true' if debug == 'false': try: print() startSave() except: print() print() print('oops, something went wrong') print() print() else: startSave()
75 downloads
0 comments
Updated
-
TearDOOM
By Golden
This mod adds an attack helicopter on *every map* (including the hub and custom Create maps, literally any map that loads main.lua will spawn this thing!) that is reskinned to have a doom Cacodemon sprite.
(you can also change/remove the music and sprite to your liking.)
The mod includes a backup for the main.lua script for when you want to disable the mod.
There is also a version with no music included as well.
Have fun!
USE WINRAR OR 7ZIP TO OPEN.
189 downloads
0 comments
Submitted
-
No crosshair[Not work]
By dima101130
этот мод убирает прицел !!! Его можно использовать для красивых видеороликов.
при установке замените файл hud.lua на путь steam \ steamapps \ common \ Teardown \ data \ ui
66 downloads
-
stronk NOT WORKING Stronk Mod
By MyCresta
NOT WORKING WITH LATEST VERSION OF TEARDOWN
NEW: Thors Hammer added! Bring down powerful lightning strikes with the sledge!
Demo of thors hammer: https://youtu.be/4cfHwN2j5RY
ADDED a vox model for Thors Hammer which looks awsome, thanks to cCheerSs for making it and letting me use it
To use it: place thorhammer.vox in "Teardown/data/vox/tool", rename sledge.vox to something else to save it, then rename thorhammer.vox to sledge.vox and voila!
Features:
Bring down powerful lightning that leaves smoke and fire like the real ones. Store up to ten objects, they are teleported below the map, you can teleport them in front of you with the spray (Very experimental) Grow big biceps and throw objects with very high velocity, the bigger the thing you can grab, the harder you throw it. Blink like a mage without cooldown using the mouse scroll down Grab and rotate stuff (Very experimental, works well with vehicles and some interactables, does not work well with world shapes) Functions:
Swing your hammer to smack down a violent lightning bolt Throw something with plank equipped to store it Spray with can to spawn it in front of you Throw something very hard with extinguisher equipped Scroll down with rocker launcher equipped to teleport 10m in aim direction Grab things with blowtorch equipped to rotate it Press TAB and click the Stronk Mod button in the bottom left corner for options menu
I have included two ways of installation, use one of them:
If you don't have any other modded ui files and just want to test this mod, use the first method.
If you already have modded files and would like to run this mod together with it, you can install with method 2, it will only place a hook at the end of the needed lua files without replacing any of your existing code.
Second method also includes a console in the main menu and esc menu.
You can read more about this on the git link below.
To use vox model: place thorhammer.vox in "Teardown/data/vox/tool", rename sledge.vox to something else to save it, then rename thorhammer.vox to sledge.vox and voila!
Installation method 1:
Download Stronk Install 1.rar and extract files Place all three files in Teardown/data/ui Enjoy! Installation method 2:
Download Stronk Install 2.rar and extract files Place the mods folder and hook_modloader.bat directly in the Teardown game folder next to teardown.exe Run hook_modloader.bat ONCE to initialize Enjoy! If you need help installing DM me on discord: My Cresta#4859
Ideas for future:
Options to change keybinds/tools used List stored objects to be able to spawn selected one
Creds to the creator of the mod framework:
Thomasims
https://github.com/Thomasims/TeardownUMF
Please leave a review and/or suggestions as this has many areas which can be improved upon.
2,930 downloads
-
Show Player Coordinates
By MrAdhit
Installation
Just drag and drop to your Teardown directory Saving Coordinates
Pause your game Click Save Coords Button Check your last line of savegame.xml file (Normally in your documents/Teardown folder)79 downloads
-
endless alarm[Not work]
By dima101130
this makes the signaling time infinite.
Do not be intimidated by the inscription. I'm trying to delete this inscription.
This is my first scenario.
installation: go to steam \ steamapps \ common \ Teardown \ data \ script and replace the file.
for developers:
SetFloat ("level.alarmtimer", 60)
470 downloads
-
elboydos vehicle and mounted gun Script - script only
By elboydo
A mod that enables player controlled turrets through both physics based control and in vehicle control - includes extensions to change fire rate, type, and ammo capacities.
Excerpt from Readme:
ELBOYDOS MOUNTED GUN AND PLAYER CONTROLLED TURRET SCRIPT
Author : elboydo
published 11-11-2020
i dunno, i may extend this readme later.
____________________________________________________________
To install::
Place files within create folder here to your create folder in teardown/create
To enable weapon usage, copy the hud.lua file to teardown/data/ui
IF YOU DON'T WANT TO MESS WITH YOUR HUD.LUA DUE TO OTHER MODS:
copy this line into the "draw()" method in hud.lua
if UiIsMousePressed() then
SetBool("mouse.pressed",true)
else
SetBool("mouse.pressed",false)
end
SetInt("mouse.wheel", UiGetMouseWheel())
if you have these methods already in your hud.lua then happy days, the mods should work fine.
FAILURE TO COPY THE HUD.LUA FILE WILL MEAN WEAPONS WON'T WORK AND ASKING WHY WEAPONS WON'T WORK DUE TO NOT DOING THIS
MAY RESULT IN PANDAS HAVING THEIR FAVOURITE TOYS TAKEN AWAY FROM THEM
Setting configs:
A default config for a mounted gun has been included in this script. description to modify for your vehicular setups as follows:
Always include "#include mountedGun.lua" to enable mounted gun functionality.
config values:
--[[
Vehicle config
]]
vehicle = {
mainName = <VEHICLE NAME> ,
Vehiclename = <VEHICLE BODY NAME>,
CannonName = <VEHICLE TURRET / GUN NAME> ,
CannonJointName = <VEHICLE TURRET JOINT NAME>,
Create = "elboydo",
barrelOffset = <Y OFFSET FROM TURRET TO SPAWN MUNITIONS>
manualControl = <ONLY ENABLE PHYSICS BASED CONTROL - FALSE BY DEFAULT, SET TO TRUE TO BLOCK IN VEHICLE TURRET CONTROL>
}
--[[
Mounted gun config
]]
weaponFeatures = {
armed = <TRUE/FALSE - VEHICLE CAN USE WEAPONS>
timeToFire = <INT - PERIOD OVER WHICH TO FIRE A BURST>,
magazineCapacity = <INT - TOTAL NUMBER OF SHOTS PER BURST>,
reloadTime = <INT - TIME AFTER BURST TO RELOAD WEAPON>,
hasRockets = <BOOL - CAN THE GUN FIRE ROCKETS>,
hasRocketCapacity = <BOOL - DOES THE GUN HAVE A FINITE ROCKET SUPPLY,
rocketCapacity = <INT - TOTAL NUMBER OF ROCKETS THE VEHICLE CAN HAVE>,
rocketStartingAmmo = <INT - NUMBER OF ROCKETS THE GUN SPAWNS WITH>,
startRockets = <BOOL - DOES THE GUN SPAWN WITH ROCKETS LOADED>,
hasMG = <BOOL - CAN THE GUN USE AN MG>,
hasMGCapacity = <BOOL - DOES THE MG HAVE A FINITE MG ROUND SUPPLY>,
MGCapacity = <INT - TOTAL NUMBER OF MG ROUNDS THE GUN CAN HAVE>,
MGStartingAmmo = <INT - NUMBER OF MG ROUNDS THE GUN SPAWNS WITH>,
displayWeaponDetails = <BOOL - DISPLAY EXTRA WEAPON DETAILS ABOUT AMMO LEFT SHOWS ON THE GUN ITSELF>,
rocketExtraconsumption = <INT - DOES FIRING ROCKETS USE EXTRA MUNITIONS (ONLY IMPACTS BURST LENGTH NOT ROCKET AMMMO)>,
rocketReloadPenalty = <INT - EXTRA TIME ADDED TO RELOAD TIME PER ROCKET FIRED>,
ammoBoxMGName = <STRING - NAME OF PROP ACTING AS MG AMMO BOX FOR CHOOSING MUNITION>,
ammoBoxRocketName = <STRING - NAME OF PROP ACTING AS ROCKET AMMO BOX FOR CHOOSING MUNITIONS>
}
733 downloads
0 comments
Updated
-
Skip Splash Screen
By MrAdhit
Instruction
Just extract the file to your Teardown folder
191 downloads
-
Better Tesla Cube Explosion
By Bricktronic
This is just an edit to the tesla cube script that makes the tesla cube explosion at lee's chemicals much more powerful. The old one just seemed too small and lame.
444 downloads
0 comments
Updated
-
Hyperaggressive Security Helicopter
By specman17
A script mod that makes the helicopter's pilot much more trigger happy, ready to fire his missiles, and even more of a prick than he was before. Looks like his contacts came in too, because now he can spot you much faster than before (unless you're hiding in water).
Works for both An Assortment of Dishes and The Chase!
794 downloads
-
maps-menu 1.1 (is not optimized for most recent teardown update)
By lyzux
In order to import a bunch of maps instead of replacing the existing 5 over and over again i would suggest you use this menu script.
(This was created for Teardown v.04.6 and does not work for recently updated versions)
972 downloads
-
destruction Click to Explode (NEW ON STEAM)
By Doomdrvk
Updated: Steam Only https://steamcommunity.com/sharedfiles/filedetails/?id=2590678617
Outdated:
Features:
Toggle between Click and Draw (Hold)
Set Explosive Size
Click to Explode
Click to Draw Fire
Click to Spawn Activated Explosive
Click to Spawn Timed Activated Explosive
Delay option to delay each explosive to wait a certain amount of time before the next explosive.
Set Tool for Explosive spawn
Set Tool for Detonator
Disable Explosive Size and Detonator Notifications
Mini Nuke mod supported use, the uncap button to use it
New Uncap Sliders (for Mini Nuke) Added:
Click Explosion Uncapped Size: Values 1 - 100
Precision Explosion Size: Values 0.1 - 10 this slider adds to Click Explosion Uncapped Size and allows for decimal sizes.
Due to a modding limitation I'm unable to attach explosives to actual objects, they will unfortunately only explode in the same area they are placed. When possible I will make this a toggle.
Installation Note: You only need to download the zip. The raw files are so users who may not have Winrar or 7zip can still install the mod.
Installation instructions are included in the zip.
Does not require mini nuke dll, I just support the use of it through the uncap toggle.
NOT COMPATIBLE WITH MODS WHICH MODIFY HUD.LUA OR OPTIONS.LUA
18,201 downloads
-
Teardown Lua Tester
By The_Sink
This mod is a development tool that allows you to execute Lua code inside "Teardown/data/run.lua" while in-game without needing to restart. The most useful feature of this mod is the ability for it to display print() messages and errors, which makes debugging certain code easier, and the ability to easily hook and un-hook functions to the hud.lua's draw() function (which lets you do stuff like draw UI on the screen without modifying any 'core' files).
If you'd like more detailed information on how to use this, visit it's GitHub repository here:
https://github.com/AStainlessSteelSink/TeardownLuaTester
140 downloads
-
Renderscale slider
By Shibe
Simple mod that turns the renderscale option into a slider, ranging from 0.1 to 2x renderscale, it might help performance if you're willing to play what looks to be an early 90's doom game
--How to install--
If you ARE using the timed explosives mod and/or minigun mod then delete "options.lua" and rename "optionsTimedExplosives.lua" to "options.lua". Then place options.lua into /teardown/data/ui replacing the original options.lua. Included is "hud.lua" this makes it so the explosion mod and minigun mod can work together, drag this file into the same directory.
If you are NOT using the time explosives mod just take the options.lua file and put it in the same directory as previously stated. (/teardown/data/ui)
12,607 downloads
-
OBSOLETE Speedometer
It is a speedometer above the vehicle condition that you can enable in the settings
230 downloads
-
Extra Custom Slots
By The_Wolfian
Extra Custom Map Slots!
This mod simply adds more custom map slots for you to put your maps into and freely swap between
them without having to move files around all the time!
Guide:
To add a map to one of the other custom slots simply drag and drop the map .vox and place it into one of the other folders
For example you download a map called "minecraft.vox" so you place it into the custom2 folder then rename "minecraft.vox" to "custom2.vox"
After that simply load up the game, click create then click on "Custom 2"
Installation:
Extract the zip folder and drag and drop the data and create folders into your Teardown game folder
("C:\Program Files (x86)\Steam\steamapps\common\Teardown")
1,671 downloads
-
Retrowave main menu
By Shibe
Replaces the main menu, main menu music, mission complete and mission fail music. (music credit can be found in the folder)
To install, extract the zip and drag the data folder into the root of your teardown replacing any files it asks.
Only known incompatibilities: mods that change loading.lua and menu.lua, best to make a backup.
511 downloads
0 comments
Submitted
-
Extended Alarms
By TheBand
How To Use
Replace heist.lua with the corresponding heist.lua file that you prefer in the scripts directory of Teardown.
This mod is currently just a small script edit on line 20 of heist.lua and can be done by anybody themselves without downloading the file if they wish by modifying the level.alarmtimer. I may add a way to modify the timer in-game later when I study the games code a bit more.
220 downloads
0 comments
Submitted
-
Unlock Weapons and Free Weapon Upgrades
By TheBand
How To Use
Navigate to Teardown Scripts folder and place the wanted game.lua file in the directory and reboot the game.
This is a pretty basic script which really just involved editing a few lines in the stored tables and setting a few bools to true which determine if the weapon is unlocked or not.
1,062 downloads