Author Topic: Real-time multi-part turret tracking  (Read 2462 times)

0 Members and 1 Guest are viewing this topic.

Offline Fury

  • The Curmudgeon
  • 213
Real-time multi-part turret tracking
It'd be quite awesome if multi-part turrets could track their targets in real-time, instead of moving like they are on cogs. Turret movement animation cannot often keep up with fast targets, resulting them firing to different direction than what they are facing. This can be fixed with "fire down normals" or "fire on target" subsystem flags, but that does not fix slow turret movement animation, making the turret inaccurate against fast moving targets. Any mod that relies a lot on multi-part turrets, like Diaspora would benefit from better turret animation code.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Real-time multi-part turret tracking
 :yes:

being able to set the tracking speed would be usefull too (not good to see massive anticapital cannons tracking at the same speed as a little anti fighter gun)
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: Real-time multi-part turret tracking
being able to set the tracking speed would be usefull too (not good to see massive anticapital cannons tracking at the same speed as a little anti fighter gun)
You already can. The number after subsystem hp is how long it takes to rotate.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Real-time multi-part turret tracking
Never tried it with turrets but you can also set turn time for subsystems via sexp. 

One problem I have encountered (by accident) is that an object rotating too fast will crash FS2.  Once it gets moving so fast the code will try to slow it down but it gets to a point it can't and the recursive calls finally = splat. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Real-time multi-part turret tracking
You already can. The number after subsystem hp is how long it takes to rotate.
Uh, no. That value controls how fast it rotates, not how often it rotates. The turret still behaves like it is on cogs and problem as described still persists.

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: Real-time multi-part turret tracking
You already can. The number after subsystem hp is how long it takes to rotate.
Uh, no. That value controls how fast it rotates, not how often it rotates. The turret still behaves like it is on cogs and problem as described still persists.
Since when has rotation time not been inversely proportional to rotation speed?

I don't see what "on cogs" has to do with rotation frequency anyway.

  

Offline Fury

  • The Curmudgeon
  • 213
Re: Real-time multi-part turret tracking
:rolleyes: Maybe someone else will explain it better for you.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Real-time multi-part turret tracking
the turret speed in the table is just how fast the sub object can rotate. but turret target re-acquisition works at a set interval.evety time it passes it will update its targeting data. i think the request is to allow modders to set that interval. an interval of zero would make the turret update every frame, -1 would be default, and any other value would be the number of (milli?)seconds between updates.

you could also pull it off with scripting if you were so inclined.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Real-time multi-part turret tracking
Yes! Finally someone understands. :D