Author Topic: Any way to count a turrets number of shots?  (Read 1326 times)

0 Members and 1 Guest are viewing this topic.

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Any way to count a turrets number of shots?
Fairly straightforward question, bit I'm fairly sure there's no straightforward answer: Is it possible to count the number of times a given turret has fired? Specifically, missile and blob turrets. I want to simulate limited capship magazines, but as far as I know, there's no way to count these things. But I thought Id make sure nobody had come up with a solution to this problem before?
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline niffiwan

  • 211
  • Eluder Class
Re: Any way to count a turrets number of shots?
You could probably do this with LUA scripting, using the "On Weapon Fired" hooks to increment a counter and a check that when the counter for that turret/weapon reaches a threshold to prevent firing / lock the turret? (please note that I've actually done this myself, but I think it could work).
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Any way to count a turrets number of shots?
Ah. Yeah, I guess I figured scripting wqould be able to handle it. Was hoping for a native way - lua is not one of my things.

Oh well, for now it's not super super urgent.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline procdrone

  • Formerly TheHound
  • 29
  • Balance breaker! Thats me!
    • Steam
Re: Any way to count a turrets number of shots?
Ask Spoon, as I recall, there was a mission in Wings of Dawn featuring something similar, capship was to shoot 3 missiles, and warp out, and it did. Im not sure if this is not just a sneaky depart delay, but Its worth a shot to check.
--Did it! It's RELEASED! VeniceMirror Thread--

  

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: Any way to count a turrets number of shots?
Really, has anyone thought of implementing turret ammo into FSO?
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!