Space Engineers

Space Engineers

70 个评价
Froid's WeaponCore Rotor Turret Script
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
479.471 KB
2020 年 8 月 23 日 上午 5:08
2023 年 1 月 28 日 下午 1:42
41 项改动说明 ( 查看 )

订阅以下载
Froid's WeaponCore Rotor Turret Script

在 Sigmund Froid 的 3 个合集中
WeaponCore Ingame Scripts
13 件物品
My WeaponCore Rotor Turrets
6 件物品
Mods I use for my current builds
19 件物品
描述
New Update: Turrets choose their own target now

Hereby I present to you
Froid's WeaponCore Rotor Turret Script
This script was made to fill the gap left by Whip's and Rdav's scripts not being able to fire WeaponCore weapons mounted onto their turrets. As of that this script takes inspiration from both of them and adds a little bit of WeaponCore magic to allow these weapons!

Important Note
You need at least one WeaponCore turret on your main grid, otherwise the script won't be able to initialise the WcApi.
If you don't have WeaponCore weapons in your build use either Whip's Turret Ai Slaving Script for more configuration or Rdav's Easy Auto Turret Script for easier setup. They are both more stable and have better vanilla tracking.
Also this script might get superseded by the Diamond Dome Defense Script as WC support seems to be on the way. I'll keep this up for it's config options and (in my opinion) easier setup aswell as allowing different weapons per turret, however DDS will be a lot more stable and I will modify my turrets to work with both.

Features
Easy Setup: Name your azimuth rotor "Azimuth", your elevator rotors "Elevation" and put your weapons and the rotors into a group named "Turret Group". Setup Examples are in the pictures in the slider. (Blocks only need to include the Name tag). Ai Turrets should be called "Designator".
---
Config Options: Change the name tag for the Azimuth and Elevation rotors and a designator aswell as a timer.
---
Vanilla Support: Previous WeaponCore scripts didn't support Vanilla weapons on the same construct, this script however will take both into account. Wanted to have this one turret work with and without Vanilla Weapon Replacement? Now you can!
---
Trigger Timer on Shoot: The script will trigger a timer the moment a weapon starts shooting (i. e. for the Atlas Super Laser when it starts charging after shoot once was triggered). Use this to emulate recoil on your barrels!
---
Multiple Targeting Modes: The script will always attempt to get targets via WeaponCore turrets and if that fails try to find one using Vanilla turrets. However if you enable the beta config option Allow Main Target Tracking the script will try to target the main target first (main target is the one you see the stats of on screen).
WARNING
The script will only be able to avoid friendly firing when using WeaponCore turrets. Remember to set proper rotation limits!

Limitations
The small grid M2Destroyer launchers in [Mexpex] MWI - Homing Weaponry cause the turret to spin like crazy.
-> The launchers have their front face setup incorrectly, confusing the turret. Reported to Mexpex
Preferably the first elevation rotor should face right or place only hinges for elevation.
-> Unlikely to be fixed at the moment. Fixed by adding a config option per turret.
If the weapons Aim towards 0° in rest position the rotors move awkward
-> Not sure why this happens, investigating

Dark colored turret in the thumbnail picture is Major Jon's Mini Mars.
I also used SEModder4™'s No Edges mod

Bugs And Issues?
=======================
Leave a comment in the bugs discussion or write an issue on the linked github.

Want to learn how to use the WeaponCore PB API?
Check this out: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2178802013

My Workshop

Support Darkstar (Patreon)[www.patreon.com]


I have a github now:
https://github.com/SilicDev/WeaponCoreScripts
热门讨论 查看全部(3)
52
2023 年 6 月 21 日 上午 6:08
置顶: Bugs and Issues Discussion
Sigmund Froid
2
2023 年 3 月 26 日 上午 12:40
Multiple Designator
[OUTSPIN] Venom
0
2020 年 8 月 28 日 下午 2:33
置顶: Show me your builds!
Sigmund Froid
367 条留言
Nighthunter 2 月 17 日 下午 5:53 
@Sigmund Froid Sad to hear that you won't come back in a long time cause you seem to be the only one capable to make scripts funktion with WC weapons. Whip's TCES is basicly a newer version of this mod but he won't make any Wc support for it sadly.
Sigmund Froid  [作者] 2024 年 8 月 8 日 上午 5:09 
The github project also still exists, so if anyone wants to update this, they are more than free to do so
Sigmund Froid  [作者] 2024 年 8 月 8 日 上午 5:03 
I haven't touched this game in like a year, tbh, and I don't have any intention of returning any time soon...

Also, not gonna lie, people just sending a Friend Request uninvited is not making me any more interested in keeping up with this either.
GodShake 2024 年 8 月 8 日 上午 2:22 
Does it still works? the PB says target detected and looks fine, but rotors doesnt move at all
Perryax 2024 年 3 月 8 日 下午 6:11 
This script hasn't been updated in a while, and its the only WC turret script like this. is it still alive?
Fubar 2024 年 1 月 19 日 下午 10:00 
WeaponCore custom turret with Homing missiles (Large Destroyer) with this script tracking targets but not firing ... But y can manual fire from cockpit using WeaponCore HUD. JUst want automated SAM.
howardxu23 2023 年 6 月 21 日 上午 9:17 
right the script has an issue where it crashes when the turret loses a target
Devlah 2023 年 6 月 8 日 上午 9:47 
So, this might be a bit out there, but I'm wondering if there's a way to use this script to automate targetting and firing of the Fleet Support weapons from the Star Trek MOD pack found here:
https://psteamcommunity.yuanyoumao.com/workshop/filedetails/?id=2634862322

I'm trying to find a way to automate this particular style of weapon, but it's proving to be challenging.
a Bit Brutal 2023 年 4 月 4 日 下午 2:34 
i just flat out cannot get it to work PB says its managing a group and detects targets but nope it just sits there and does nothing,using WC btw
Sigmund Froid  [作者] 2023 年 3 月 26 日 上午 4:53 
Are you using this for Vanilla or WC? WC shouldn't need a dedicated Designator per turret anymore. Hinges might cause erratic behaviour if the Weapons are on the wrong side, I'm still investigating how to fix that. However in a lot of cases using the invert Elevation in the turret config helps with these issues