Avorion
68 个评价
Torpedo Auto-Targeting 2.2+
   
奖励
收藏
已收藏
取消收藏
Mods: Mod
文件大小
发表于
更新日期
517.379 KB
2022 年 8 月 14 日 上午 8:41
2022 年 11 月 22 日 上午 8:46
4 项改动说明 ( 查看 )

订阅以下载
Torpedo Auto-Targeting 2.2+

描述
This script will automatically assign nearby targets for torpedoes fired by player ships if no target is selected or players are targeting themselves. The automatic targeting spreads torpedoes out among enemies in range, enabling a more 'swarm-like' torpedo volley.

Adapted from Nyrin's 'Torpedo auto-target with spread', which appears to be no longer maintained and was too good to remain broken.
24 条留言
Teranoc 1 月 15 日 上午 8:30 
Go to "\SteamLibrary\steamapps\workshop\content\445220\2848979724"
Open "modinfo.lua" and search for dependencies and change it to:

dependencies = {
{id = "Avorion", min = "2.2", max = "2.6.*"}
Zandy man 2024 年 12 月 28 日 上午 9:04 
This mod is not working anymore. Needs an update.
Reuivn 2024 年 3 月 5 日 上午 3:54 
For anyone wanting to "fix" this mod for themselves, you need to do 2 thing. First in modinfo.lua change the Avorion Max version from whatever it is (sorry didn't look) to "2.*.*", alternatively you could delete the whole max argument which also should stop the game yelling at you.

to "fix" the reassignment of targets from self to enemies, change line 45 in torpedoautotargeter.lua from if firingEntityId == torpedoAI.target or torpedoAI.target.isNil then

to if ( firingEntityId == torpedoAI.target or torpedoAI.target.isNil ) then

That should fix the logic this script was using. However, there still seems to remain the issue of targeting yourself and rubbing one out; if there are no targets around it comes home to you.

Finally, I took inspiration from Nyrin (rather than copy) and wrote my own torpedo targeting AI. The logic is different it might be what you're looking for: SerinaAI
Kraegor 2024 年 1 月 12 日 上午 5:23 
The one thing that -does- need to be fixed in this mod is that if you are targetting yourself, your torpedoes come for you. Somehow that got broken between 2.2 and 2.3
Teranoc 2023 年 12 月 10 日 上午 1:27 
@ Tharrick LawsOn Try to change it by yourself. Go to the Installation Folder : SteamLibrary\steamapps\workshop\content\445220\2848979724 and edit the "modinfo.lua". Search for "{id = "Avorion", min = "2.2", max = "2.3.*"}" and change the 2.3.*to 2.4.*.
ripshawe 2023 年 12 月 5 日 上午 5:36 
This is such a good idea.
Th4rrick Laws0n 2023 年 12 月 5 日 上午 5:27 
Today's 2.4 update appears to have broken this sadly - I look forward to seeing an update, because this is, as you say, too good to remain broken :)
kinngrimm 2023 年 7 月 26 日 下午 2:13 
Is this client side or does the server need to install this, too?
Evam 2022 年 11 月 22 日 下午 8:34 
@Vokun Vulon Ah I see, well hopefully one day modders might be able to deal with that
Boiccubus☿Boba⚸ 2022 年 11 月 22 日 下午 3:11 
Thank you so much