Scrap Mechanic

Scrap Mechanic

Crashlander: Square One
MaxStone 2024 年 6 月 21 日 下午 1:28
How to re-enable bots?
I've looked at the code, and it seems that wolves are spawned whenever a bot would, with bears being the farmbot, and it removers the bots afterwards, or something along those effects.

Is there a way to adjust the code to NOT remove the bots? Maybe a future update or addon patch or something?

I just like the idea of fighting wildlife AND remnants of an automated workforce that got left behind in order to do the campaign, but i dont know what to do with the code.
< >
正在显示第 1 - 3 条,共 3 条留言
beny.h 2024 年 6 月 29 日 上午 12:21 
that would be awsome :) i missed the bots overall
The Red Builder  [开发者] 2024 年 6 月 29 日 下午 1:39 
survival_spawns.lua in Scripts\game, line 110. This is where it binds the tags (which are the nodes) to what units it spawns, the vanilla ones are: unit_tapebot, unit_tapebot_red, unit_tapebot_taped_(1,2,3), unit_haybot and unit_farmbot. Just change them to values you want, if oyu know lua enough, you cna make it have a chance to either be an animal or a bot. For raids go into unit_manager.lua in Scripts\game\managers, where the raiders are stored, just change them again.
MaxStone 2024 年 7 月 2 日 下午 9:18 
引用自 The Red Builder
survival_spawns.lua in Scripts\game, line 110. This is where it binds the tags (which are the nodes) to what units it spawns, the vanilla ones are: unit_tapebot, unit_tapebot_red, unit_tapebot_taped_(1,2,3), unit_haybot and unit_farmbot. Just change them to values you want, if oyu know lua enough, you cna make it have a chance to either be an animal or a bot. For raids go into unit_manager.lua in Scripts\game\managers, where the raiders are stored, just change them again.

awesome. however, i have very little knowledge on lua, and while i now know a little more about whats going on here, i dont know enough to feel confident in changing it yet.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50