Space Engineers

Space Engineers

32 个评价
FunLightning
   
奖励
收藏
已收藏
取消收藏
Type: Mod
标签: ServerScripts
文件大小
发表于
更新日期
6.265 MB
2023 年 10 月 5 日 下午 9:19
2023 年 12 月 2 日 下午 10:37
20 项改动说明 ( 查看 )

订阅以下载
FunLightning

在 BDCarrillo 的 1 个合集中
BD's Toolbox
19 件物品
描述
Fun Lightning!

Ever wished that lightning would shut off blocks on a grid? Or maybe depower a grid completely? How about decreasing (or increasing) the damage and radius? Maybe you want a bunch of damage on grids, but for players to be unharmed?

Well now you can make lightning fun too!

Compatible with the Defense Shields and Nebula mods.

Config Location:

AppData\Roaming\SpaceEngineers\Saves\Player ID Number\SaveGame name\Storage\3046477519.sbm_FunLightning\Lightning.cfg

Config Options:

Note that shutting off grid power grabs active power producing blocks and shuts them off. If KillGridPower = true, those power producers will fall under the grid depower time and restore grid power options, _NOT_ the regular block options.

DamageMultiplier - Multiplier for damage (note the admin "Create Lightning" does zero damage!). This multiplies the Damage value from your WeatherEffects.sbc. Most lightning has a value of "1" so a multiplier of 200 would destroy 2 steel plates. Set to zero to eliminate grid damage
RadiusMultiplier - Applies to area to damage/depower blocks, look for grids, and check for characters. Default radius is 1m, unless modified by a custom WeatherEffects.sbc
CharacterDamage - Flat value of amount of damage to apply to characters caught in lightning (survival only!). Set to zero to eliminate character damage

KillGridPower - Turns off grid (similar to pressing Y)
GridDepowerTimeSeconds - Time in ticks to forcibly keep grid turned off. 0 disables this option
RestoreGridPower - Turn grid back on after depower time elapses

TurnOffBlocks - Turn off blocks based on options below
CheckBlocksInRadius - Only checks blocks inside the radius. If false checks all functional blocks on grid
BlockDepowerTimeSeconds - Time in ticks to forcibly keep blocks depowered. 0 disables this option
BlockTurnOffChance - Chance to turn off block, 0-1 as a percent
RestoreBlockPower - Turn blocks back on after depower time elapses
DecoysBlockEffects - If true, lightning that hits a decoy or antenna will not depower the grid or blocks, and only the decoy or antenna will be damaged

Defense Shields specific options-
ShieldsBlockDamage - Determines if shields block damage (if block is inside the shield)
ShieldsStopBlockDepower - Determines if shields stop blocks from being depowered (if block is inside the shield)
ShieldsStopGridDepower - Determines if a whole grid is protected from being depowered if a shield is present and online. Note that power producers outside the shield could still be depowered, depending on the option above

Discord: Other Projects -> bd-stuff at https://discord.gg/tXtpNwX8bf
18 条留言
JarutheDamaja 9 月 16 日 下午 3:59 
Small correction, you wrote that lightning from the admin menu does zero damage. That's only partially true, as it causes damage when the weather is set to thunderstorm. (At least on Earth) But when it's sunny then there is no damage.

Do you have any idea if it's possible to disable the damage to trees only?
Demaros 2 月 10 日 下午 6:15 
Does your mod require the "Lighting Damage" option to be ticked on in the saves World Settings?
Also do you know if this would conflict with the Configurable Parameters mod, because that also has an option to turn lightning on/off and modify lightning strike damage?
BDCarrillo  [作者] 2024 年 11 月 19 日 上午 9:14 
yes
Cornelius 2024 年 11 月 18 日 下午 8:37 
When using this mod on a server, does it use the server's configuration for behaviour?
BDCarrillo  [作者] 2024 年 1 月 19 日 上午 8:44 
The frequency of lightning is driven by the WeatherEffects SBC and would need to be changed in a mini mod specific to your desires. Since it varies a lot by weather type, and custom planets may have their own uniquely named storms, it's not something I'd want to try and globally overwrite with new values.
Mase 2024 年 1 月 18 日 上午 10:45 
Any way of turning the frequency of lightning strikes down?
BDCarrillo  [作者] 2023 年 12 月 4 日 下午 8:21 
Yeah there's two storage spots, one in the SpaceEngineers folder (AKA "Local" storage) and one per world. This mod writes to the world location. Location link updated for clarity
What Trigger 2023 年 12 月 4 日 下午 7:54 
Ok, Finally worked it out.
Just a note for those who also have trouble with this mod and maybe others where you need to go to the storage folder??

I got lost trying to find the config file in
AppData/Roaming/SpaceEngineers/Storage

the correct location is (for me anyway)
AppData/Raoming/SpaceEngineers/Saves/ ((maybe random numbered folder)) / folder that contains your saved game/Storage/3046477519.sbm_FunLightning\Lightning.cfg

Loving the mod with no damage but still inflicted hindrance of strikes
Great work
BDCarrillo  [作者] 2023 年 11 月 18 日 下午 1:14 
Ty hotdogbun!

What trigger- fire up a game with the mod loaded and the config will be written to that folder, not upon subbing
What Trigger 2023 年 11 月 18 日 上午 11:09 
Ok interestingly and confusingly, regarding my question on that lightning.cfg file.
Even after unsubbing then resubbing.
Im only getting the folder 3046477519 in the workshop/content area which obviously doesnt have the cfg file

Said sbm folder in the SpaceEngineers/storage area isnt showing up