[quote=“Jimbo_Jamerson, post:32, topic:1797”]All a power generator is is an engine, they are very simple pieces of machinery really. I’ve identified a number of pieces of coding that with a few tweeks should be able to produce the effects (all source code, those JSON files are far too simplified to achieve a goal that isnt cheating)
I think a good start is as was suggested to me stealijng some pieces off the UPS code, except change “Player is wearing power armor” to “player is wielding welder” and some sort of additional constraint to do with proximity or whether or not you have applied a power cord to both ends of the equations.
I think the hardest part will be the coding of the logic for power cords.
The welder i am trying to make is an arc welder not an acetylene torch or something where heat is the driving force.
And i can easily chomp through over 10000 battery charges without getting close to finishing the vehicle designs i like to make, i generally transform a Mack truck into a fully fledged (heavily) armored, multiple engined SWAT-like bus with enough storage to have highly organised and compartmented storage for anything and everything i may need or encounter (which is probably around 10 trunks, all used regually for different missions)
When i say i exhaust near on EVERY tin can or aluminium can in the quest for more batteries, i am not over exaggerating, and believe me, every last charge i use is needed, after all, the goal of such super dooper rigs is to have a mobile missile bunker basically.
The apocalypse is a dangerous place, i dont plan on dying (yet it happens?)
Oh well, off to have some fun with code…[/quote]
uhh i mean no offense but then is the goal here really just to give you enough welding power to do whatever you want? as i explained above the game already has that. go find an integrated toolset and a metabolic interchange.
if we’re going to overhaul welding, it shouldn’t result in a welding system where you’re easily able to get infinite welding resources.
i thought this was supposed to be a post-apocalyptic survival game, not a kerbal vehicle simulator.