Teardown

Teardown

Ordnance [FD]
Babombo 8 Dec, 2022 @ 1:29pm
Slight modification for cinematic scenes
I have posted in the comments that I would like an option to deactivate the red (and yellow) preview circles while the artillery salve is fired (for cinematic purposes).
I looked into your code and modified it accordingly.

Maybe you want to add these tiny changes into your mod.
I would be very happy and tried to write it as similar as you did. The change is also optional and can be turned on/off in the options (props to you for making such an easily extendable menu!)

constants.lua
(...) ["G_FRAGMENTATION_DEBUG"] = { variable = G_CONFIG_ROOT..".fragmentation.debug_mode", value_type = "boolean", value_default = false }, --from here ["G_DISPLAY_QUEQUE_WHILE_FIRING"] = { variable = G_CONFIG_ROOT..".display_queque_while_firing", value_type = "boolean", value_default = false }, --to here ["SHELL_SEC_CLUSTER_BOMBLET_AMOUNT"] = { variable = G_CONFIG_ROOT..".shells.secondary.cluster_bomblet_amount", value_type = "int", value_default = 50 }, (...) { type = "slider", mapping = CONFIG_VARIABLES["SHELL_SEC_CLUSTER_BOMBLET_AMOUNT"], name = "Bomblets per cluster shell", value_unit = "bomblet(s)", value_min = 5, value_max = 100 }, --from here { type = "textbutton", mapping = CONFIG_VARIABLES["G_DISPLAY_QUEQUE_WHILE_FIRING"], name = "Show target areas of quick salve while firing" }, --to here { category = "fragmentation", type = "textbutton", mapping = CONFIG_VARIABLES["G_SIMULATE_FRAGMENTATION"], name = "Simulate Fragmentation" },

main.lua
(...) --init() G_DEV = CONFIG_getConfValue("G_DEBUG_MODE") G_QUICK_SALVO_DELAY = CONFIG_getConfValue("G_QUICK_SALVO_DELAY") DEFAULT_SHELL.flight_time = CONFIG_getConfValue("G_FLIGHT_TIME") DEFAULT_SHELL.inaccuracy = CONFIG_getConfValue("G_SHELL_INACCURACY") --from here G_DISPLAY_QUEQUE_WHILE_FIRING = CONFIG_getConfValue("G_DISPLAY_QUEQUE_WHILE_FIRING") ordnance_currently_firing = false --to here -- total, hit, miss, redirected FRAG_STATS = { 0, 0, 0, 0 } (...) --tick() --basically only the outer if is new if (not ordnance_currently_firing) or G_DISPLAY_QUEQUE_WHILE_FIRING then if queue_length > 0 then for i=1, queue_length do local shell = QUICK_SALVO
DrawLine(shell.destination, VecAdd(shell.destination, Vec(0, 5, 0)), 1, 0, 0, 0.8)
drawCircle(VecAdd(shell.destination, Vec(0, 0.02, 0)), shell.inaccuracy, 32)
end
end
end
(...) --still tick(), where yellow aiming preview is drawn
--same thing again
if (not ordnance_currently_firing) or G_DISPLAY_QUEQUE_WHILE_FIRING then
drawCircle(VecAdd(aim_pos, Vec(0, 0.02, 0)), STATES.shell_inaccuracy, 32, COLOUR["yellow_dark"])
end
[/code]


That's basically it
Of course you could have done that little bit yourself but since it is important to me and might not so important to you, I didsd it
Would be really happy if it made its way into your mod :)

[Edit]: Seems like steam wants to put the end of my message into the code tag, I can't seem to get it out
Last edited by Babombo; 8 Dec, 2022 @ 1:33pm
< >
Showing 1-3 of 3 comments
FloppyDisk  [developer] 8 Dec, 2022 @ 10:03pm 
Thank you for your suggestion and great effort for implementing it yourself!
I'll add your suggestion into the next update once I have time to work on Ordnance.
(I got three final exams to deal with this weekend)
Last edited by FloppyDisk; 8 Dec, 2022 @ 10:03pm
Babombo 9 Dec, 2022 @ 1:38am 
Originally posted by FloppyDisk:
Thank you for your suggestion and great effort for implementing it yourself!
I'll add your suggestion into the next update once I have time to work on Ordnance.
(I got three final exams to deal with this weekend)

ty and good luck with those exams :)
FloppyDisk  [developer] 13 Dec, 2022 @ 5:19pm 
Originally posted by Terraria Smurf 1337 Hours:
Originally posted by FloppyDisk:
Thank you for your suggestion and great effort for implementing it yourself!
I'll add your suggestion into the next update once I have time to work on Ordnance.
(I got three final exams to deal with this weekend)

ty and good luck with those exams :)

Thank you wishing me luck!

Finally got done with my semester so I implemented your suggestion regarding the ability to hide quick salvo markers. The feature will be a part of the next feature update!
< >
Showing 1-3 of 3 comments
Per page: 1530 50