Scrap Mechanic

Scrap Mechanic

95 个评价
Laser Tools
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
24.328 MB
2022 年 8 月 2 日 下午 1:38
7 月 9 日 上午 6:48
35 项改动说明 ( 查看 )

订阅以下载
Laser Tools

描述
This mod adds 4 new items which use lasers to unleash total annihilation!
All of these items use Plasma Batteries as a power source, which can be crafted in the craftbot.

Thanks to Questionable Mark's Modded Craftbot Recipes, they're also craftable in survival!

Credits
  • Vajdani - Scripting, animation
  • Dart Frog - Handheld Laser Cutter model, thumbnail help
  • DriVer - Laser Pistol model
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