December 22, 2024, 21:08:22

Author Topic: Limited ammunition for bombers?  (Read 10069 times)

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
Limited ammunition for bombers?
« on: February 07, 2011, 02:47:37 »
Got a rather strange problem: I'm simply trying to limit the amount of missiles my bombers carry, because they're... well... rather strong. Now I did it the same way I did it for capital-ship-based missiles: on the missile launcher DEVICETYPE setting MaxCount to the desired amount of ammo and CountDec to 1. Still I only see one missile fired by each bomber and then nothing more...

Bug? Feature? Am I forgetting something?

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Limited ammunition for bombers?
« Reply #1 on: February 07, 2011, 02:52:37 »
no, you need to specify it in the bomber's shipclass in the defDevices tab, when you're adding the weapon, like this:

#weaponConstant / number of projectiles

Example:

SHIPCLASS 142   
   Name "Squadron_F302"
   Mesh "Tauri\F302"
   GUIIcon "icons\f302"
   ImpactEfx 1 0.05
   FinalEfx 1 0.3
   ChannelEfx 3 1
   Civilization 3
   Velocity 1600
   RotVelFact 15000
   RangeBehav 2 2
   Behaviour 0
   TargetType 2
   SupportOutput 10
   HPmax 12
   Slots 39 39 31 ;
   Slots 51  ;
   Slots 61 71 ;
   DefDevices #weap_f302Flak #weap_f302rocFlak/10 #weap_f302rocAD/10 #eng_F302 #supp_ecm #supp_boatWGen ;
   Available
SHIPCLASS

« Last Edit: February 07, 2011, 02:57:42 by Mularac »

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
Re: Limited ammunition for bombers?
« Reply #2 on: February 07, 2011, 02:59:53 »
Ah, of course, stupid me.

Thx for the impromptu answer ;)

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Limited ammunition for bombers?
« Reply #3 on: February 07, 2011, 03:40:06 »
No problem.

Looking forward the release of your mod, btw.

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
Re: Limited ammunition for bombers?
« Reply #4 on: February 07, 2011, 10:45:06 »
Yeah, me too... I just want to get it out as soon as possible, but there always seems something to improve on ;)

Btw, making missile weapons sucks :P

You need to:
... create a missile SHIPCLASS
... create launch and explosion EFX
... create an engine DEVICETYPE
... create an engine EFX
... create a missile launcher DEVICETYPE
... add it to the desired SHIPTYPEs or fighter/bomber SHIPCLASSes in the right slot
... not to even mention creating the actual missile and launcher models and textures

And the worst of it all: if you're going to tinker with ANY of that (e.g. adjusting the EFX to look right), you'll need to restart the game each time. *sigh* getting rather tiresome really quick ::)
« Last Edit: February 07, 2011, 10:54:46 by Arparso »

Offline Mularac

  • Lieutenant
  • ***
  • Posts: 531
  • Karma: 11
    • View Profile
Re: Limited ammunition for bombers?
« Reply #5 on: February 07, 2011, 16:06:46 »
Well, for bombers and fighters we found better that instead of having missiles per se, we would code an efx that would look like a missile launch, but in the end it's only a weapon effect.

Nexus handles missiles not as fast, intercept weapons but as heavy, long range siege guns, so they really weren't that good in fighters...

here's our "missile" code, if you want it:

EFX 197  // missile travel

   FLARE
      Type 5
      Size 1000
      Color 0.9 1 0.9
      PulseFactor .5
   FLARE

   SNAKE
      Texture 11
      SRadius 45
      ERadius 200
      Color 0.9 1 0.9
      ColorB 0.4 1 0.6
      Additive
      Attack .2
      NodeSus .1
      NodeDec 3
   SNAKE

EFX

Offline jstubbles

  • Petty Officer
  • **
  • Posts: 169
  • Karma: 2
    • View Profile
    • http://www.ivassago.com
Re: Limited ammunition for bombers?
« Reply #6 on: February 12, 2011, 07:20:16 »
Using this approach is still only a workaround, isn't it? Flak weapons won't be able to target particle-based "missiles".

Offline Arparso

  • Administrator
  • Lieutenant
  • *****
  • Posts: 558
  • Karma: 14
  • I can see you...
    • View Profile
    • http://arparso.de/nexus
Re: Limited ammunition for bombers?
« Reply #7 on: February 13, 2011, 00:15:50 »
Yeah, I think so. Weapons usually only target actual in-game objects, not particles.

Offline jstubbles

  • Petty Officer
  • **
  • Posts: 169
  • Karma: 2
    • View Profile
    • http://www.ivassago.com
Re: Limited ammunition for bombers?
« Reply #8 on: February 13, 2011, 01:30:03 »
the only thing I really hate about missiles right now is that they fly away from ships that are exploding, then fly back at the target after the ship has exploded. I can't seem to find a way to stop that.