Scrap Mechanic

Scrap Mechanic

Laser Tools
150 条留言
Ulon 8 月 20 日 上午 3:54 
Fair. Have a great day! I love your mod! <3
Vajdani  [作者] 8 月 20 日 上午 12:59 
I probably could, but I wont.
Ulon 8 月 19 日 下午 8:20 
Can you make it work with Fant Mod Skills?
Vajdani  [作者] 7 月 9 日 上午 10:51 
I've thought of an easier way of doing it.
At the top of the file, there is a table that defines what collision types instantly kill the laser.

ProjectileManager.killTypes = {
terrainSurface = true,
terrainAsset = true,
limiter = true
}

A clean and simple way of disabling block damage is to add body collisions to it as well.

ProjectileManager.killTypes = {
terrainSurface = true,
terrainAsset = true,
limiter = true,
body = true
}

Now, the projectiles will destroy themselves when colliding with blocks and parts, without harming them.
Time_pug 7 月 9 日 上午 10:40 
which line in ProjectileManager.lua should I edit to disable block destruction? So far every attempt has just completely disabled the lasers.
Vajdani  [作者] 7 月 9 日 上午 10:24 
There are no damage values, the script just deletes them outright. Do a search for the functions I mentioned earlier( destroyBlock , destroyShape ).
Time_pug 7 月 9 日 上午 10:19 
I've checked and changed every damage value I could find in all the json files and still the laser will infinitely destroy anything it touches. Having a comment for each function would help a lot with understanding them.
Time_pug 7 月 9 日 上午 10:06 
where can I find the damage value for placeable items (blocks, electronics etc)
Vajdani  [作者] 7 月 9 日 上午 7:24 
I didn't make any really substantial additions, just a few small ones.
Time_pug 7 月 9 日 上午 7:17 
I've made multiple backups of my edit so I still have all the original values so nothing will be lost
Time_pug 7 月 9 日 上午 7:11 
are the other functions still the same so I can just port over my settings to the new one?
Vajdani  [作者] 7 月 9 日 上午 6:53 
Hi, I had a few changes piled up on my end, so I pushed an update just now. It might override some of your changes, sorry about that.

Search for usages of the destroyBlock and destroyShape functions, I used them for destroying blocks and parts.
Time_pug 7 月 9 日 上午 5:59 
All I could find that could be related to the issue is spherecast and update pos. Literally learning Lua on the spot just to disable block destruction.
Time_pug 7 月 9 日 上午 5:56 
What line of code is responsible for the projectile penetration for placeable items? I've managed to tweak pretty much everything else except the destruction of blocks. Been working non stop for 4 days now on trying to disable the block destruction and still no luck. Best I was able to do was to cause the laser to freeze in place once it hit a placeable item.
Vajdani  [作者] 7 月 8 日 下午 5:35 
I would have to code that, no way to do that currently.
B. 7 月 8 日 下午 2:57 
I love the laser pistol, but is there a way to change the damage it does primarily to blocks? as it is, it just goes through everything without stopping.
Vajdani  [作者] 5 月 16 日 下午 1:59 
The uuid is 69c063fe-385a-4135-8f5e-6247aec89769
Onas 5 月 16 日 下午 12:03 
does anyone know what the item id is for the plasma ammo?
Kototop_CMB 5 月 9 日 上午 10:09 
r e a d d e s c r i p t i o n
LelEnox 5 月 9 日 上午 9:55 
How to switch mode of the mountable laser ?
HaRaN 4 月 21 日 下午 12:58 
if they only will dont destroy creations, some option to turn off destruction. Only damage trees, rocks, bots...
puff_adder 2024 年 12 月 22 日 下午 1:37 
The railgun justs really needs a model because it seems to work and shoot right
Vajdani  [作者] 2024 年 12 月 22 日 下午 12:15 
Tested both of them out again and they're so much worse than I remember, its kinda crazy lol
Yeah, both of these are staying hidden.
puff_adder 2024 年 12 月 22 日 上午 11:58 
The katana still looks fine without the extra animations but the railgun is kinda not looking all that working in terms of the model.
Vajdani  [作者] 2024 年 12 月 22 日 上午 10:09 
I wasn't satisfied with how the cutting worked, unfortunately no matter how hard I tried to make it better, I just couldn't. We were planning on making custom animations for it. but we only got around to making the cut animations(I think?), after which we got busy with other stuff and all of our plans just fizzled out. Besides those two things, I wanted to add a cost to slicing things but i didnt get around to it.

As for the railgun, its kinda just meh.
puff_adder 2024 年 12 月 22 日 上午 9:19 
Do you think you could finish the railgun? It looks cool. The katana looks complete though so why is it hidden?
Utka_Agent 2024 年 12 月 21 日 上午 7:40 
Tysm
:steamhappy::steamthumbsup:
Vajdani  [作者] 2024 年 12 月 21 日 上午 7:38 
1. Go to your steam library, right click on SM and click on Browse local files
2. In the folder path, click on steamapps to go back to that folder
3. Here, you will see a few other folders, click on workshop
4. Click on content , then 387990 . This is where workshop items are stored for SM
5. Type 2843905833 into the search bar, then wait for it to find the folder. That folder contains Laser Tools' files.
6. After clicking on the mod folder, navigate to Tools/Database/ToolSets . Here is where you'll find tools.toolset , which contains all the tools.
7. Open tools.toolset with notepad. You will see that two tools have the showInInventory property set to false . To make them appear in the inventory, set them to true .
After that, you can boot up the game and test the tools. They kinda suck, don't expect to be blown away.
Kototop_CMB 2024 年 12 月 21 日 上午 7:15 
learn how to do mods
Utka_Agent 2024 年 12 月 21 日 上午 7:13 
how to unhide them in toolset??
:steamsad:
Vajdani  [作者] 2024 年 12 月 21 日 上午 6:46 
There are 2 more tools that are in the mod but were never finished, so they are just hidden in the inventory. The only way to access them is to unhide them in the toolset.
Kototop_CMB 2024 年 12 月 21 日 上午 4:03 
what secret items?
Utka_Agent 2024 年 12 月 20 日 下午 3:57 
Where is the command or what is it to reach secret items
or where is link to discord serv
Vajdani  [作者] 2024 年 9 月 24 日 上午 7:55 
All parts have detailed descriptions that explain how to use them
Míša hraje 2024 年 9 月 24 日 上午 7:51 
pls someone now the mounted laser pistol why mine only shoot basic projectile?
lorem dip 2024 年 2 月 20 日 上午 8:35 
horsell common and the heat ray looking ass
Vajdani  [作者] 2023 年 12 月 2 日 上午 4:43 
Mounted weapons - put them in a Plasma Container and connect it to the part
Tools - have the Plasma Batteries in your inventory
dt.siki 2023 年 12 月 1 日 上午 11:11 
how to load ammo in survival
Vajdani  [作者] 2023 年 10 月 30 日 上午 1:37 
Just hook up a switch to them and turn it on(if youre in survival you have to hook up a plasma container too and fill it with plasma batteries)
СултанскийЧикен 2023 年 10 月 30 日 上午 1:24 
I can't make mounted gun shoot, pls help
BJM8 2023 年 8 月 31 日 下午 3:29 
why does it destroy blocks that are like 9-10 durability? seems kinda unfair to me idk, it makes undestructable prisons and stuff less fun even tho the mod is really useful
GigaCars 2023 年 5 月 6 日 下午 8:41 
pew pew pew
Dart Frog  [作者] 2023 年 4 月 30 日 下午 2:39 
skill issue :lunar2019madpig:
Vajdani  [作者] 2023 年 4 月 30 日 下午 2:00 
Thank you
DMR - 01 2023 年 4 月 29 日 下午 10:13 
but not you dartfrog
Vajdani  [作者] 2023 年 4 月 10 日 上午 10:05 
Update's out
Ejcreeper 2023 年 4 月 9 日 上午 8:59 
thanks
Vajdani  [作者] 2023 年 4 月 8 日 上午 10:40 
Im working on it
Ejcreeper 2023 年 4 月 7 日 上午 9:57 
Can you make a version for survival or give us a guide or something I am sorry if you dont want to work on it but I really want to use it for survival
Vajdani  [作者] 2023 年 3 月 31 日 上午 9:11 
I guess?