Barotrauma

Barotrauma

Lua Component
Showing 1-3 of 3 entries
Update: 4 Aug, 2022 @ 12:17am

new logic, 100x less unnecessary load
scripts now run on server or in singleplayer only
memory can use whatever indices
memory is saved to component on round end, loaded from component on round start; can be done manually with msave() and mload()
renamed i, o, m to inp, out, mem, scripts need to be updated
memory can hold numbers, strings and booleans, could do simple functions later
number inputs are now numbers indeed, not strings
input cache lifetime reduced to 1 frame from 15
removed third memory component as it is no longer used
lua components might need to be rewired

Update: 24 May, 2022 @ 12:52pm

first try used too naive approach, rewrite using statuseffect
* added memory feature
* added tonumber() where appropriate
* code cleanup
* now it actually works, yay

Update: 23 May, 2022 @ 2:03pm