Author Topic: Linking primaries  (Read 3257 times)

0 Members and 1 Guest are viewing this topic.

Offline origin

  • 27
How do you link the primary weapon banks to shoot at the same time?

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
It was explained in main FS2 (and FS1) training, press "," or "." key twice.
Or any keys you assigned to cycling primaries.

 

Offline Commander Zane

  • 212
  • Spoot Knight of Anvils
*Headdesk*

Someone doesn't play tutorial missions. :doubt:

  

Offline origin

  • 27
My bad - I did not give enough information...

I have a made a fighter with 2 primaries that has 2 guns per primary for a fred designed mission and I want that ship to be able to shoot both of its primaries at once.  It is not the ship that I am flying - it's the bad guys.  I can only get it to shoot one set of primaries at a time - I assume there is some flag or something to do this but I have not been able to find it.

Thanks

 
I would assume that has more to do with the AI behavior than anything else. Someone more familiar with the code may know what's up.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Yep, that's something defined by the AI behaviour. The AI class may be too low, or the weapons energy usage may be too high for the AI to consider linking weapons a good choice.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline origin

  • 27
Really?  Hm... pretty smart AI - I make adjustments and see.

 

Offline Stormkeeper

  • Interviewer Extraordinaire
  • 211
  • Boomz!
You know, if you don't finish training you don't get your wings? I played through FS2 once without getting my wings.
Ancient-Shivan War|Interview Board

Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Stormkeeper, read the whole thread before posting.
He wants to force linked primaries on AI ships.

 

Offline origin

  • 27
Yep, that's something defined by the AI behaviour. The AI class may be too low, or the weapons energy usage may be too high for the AI to consider linking weapons a good choice.

I lowered the power consumption for both weapons to just about nothing (0.1) and gradually increased the AI class all the way to General and still no luck - only one bank at a time will fire.  By switch the order of the default primaries between the 2 weapons in the ships.tbm, I am sure that both banks are operational but they just won't fire together.

Any ideas?

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
You should be looking at editing the ai_profiles.tbl.  Depending on the depth of your mod, you may want to make a new profile, and have your missions use that, or you may want to write a tbm and just modify the existing FS2_RETAIL profile.  Either way, you probably want to edit:

$AI Always Links Energy Weapons:
FS2 Open, 3.6.10 or earlier:

    * AI ships will link energy primaries if energy levels are greater than these percents.
    * Syntax: Float list
          o Default: 100, 80, 60, 40, 20


$AI Maybe Links Energy Weapons:
FS2 Open, 3.6.10 or earlier:

    * Defines the same as $AI Always Links Energy Weapons: but in situations when its hull is below 33 % of maximum hitpoints.
    * Syntax: Float list
          o Default: 90, 60, 40, 20, 10

Granted, it sounds like your ships should have already been linking up at least some of the time since they should be at full weapon energy, do you have the game on a higher difficulty as well?  Otherwise they will likely not link up weapons very often.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline origin

  • 27
I have been very bad and taken a short cut which is bitting me in the butt....
I like the sounds and of effect of terrians so I have simply been putting terrian as the species for my bad guys and then made them hostile. 

Clearly I should make a new species in a tbm and customize them how I want.  I seem to recall when I tried to do this before I ran into some problem, so took the easy way which has clearly lead me to the dark side.

Thanks for all of the input guys - this should be a relatively (i hope) easy fix and will make the mod more robust to boot.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Wait, does species actually matter at all here?

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Nope. This is purely an AI matter, species-defs.tbl won't do anything here.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
It's AI Profiles not species defs.
Changing the species defs won't do anything.
Perhaps he read it wrong.
(´・ω・`)
=============================================================

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Yeah there shouldn't even be anything wrong with hostile terrans.  It's done all the time in retail with the NTF, they should have no problem linking weapons against you.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Stormkeeper

  • Interviewer Extraordinaire
  • 211
  • Boomz!
Actually, I can't remember the last time I remembered AIs linking weapons against me. My wingmen do it most of the time, but hostile AI doesn't seem to.
Ancient-Shivan War|Interview Board

Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Then there might be a bug at play here.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Stormkeeper

  • Interviewer Extraordinaire
  • 211
  • Boomz!
Is there anyway to test this?
Ancient-Shivan War|Interview Board

Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 

Offline Commander Zane

  • 212
  • Spoot Knight of Anvils
I usually see enemies using all their primary hardpoints, especially Seraphims.