Author Topic: Primary Weapons with Ammunition  (Read 3495 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
Well since I got only one response to the last thread, I started a new one. :) Here is what I am thinking of: Machine Guns.  I know this has been discussed before for primaries (with ammunition that runs out) but I thought that much the same effect could be achieved using secondaries.  If you ignore the in the primary weapon slot, you can pretend that your secondary weapon is a primary.

For the T-V War Project, one of the options that we're floating is that energy-based weapons weren't developed until the begining of the T-V War.  This means that the Unification War will have machine guns and all that cool stuff. :cool:

I posted an attachment of a basic test of what I was thinking of.  It works wonderfully.  Alpha 1 now has a machine gun. :cool:

BUT THE ONLY PROBLEM IS THAT IT DOESN'T WORK FOR AI!!!

Run the mission.  Shoot the cargo.  Shoot the Fenris.  Nice.  Now press 1 to call in an enemy wing.  You can sit there as long as you like, but the AI will never fire its machine gun at you. :mad: :mad: :mad:

I tried hacking around in the table, and if I set the reactor power to 0 and the max gun energy to 0, I can get the AI to fire its machine gun...but only once every several seconds.  This is no fun!  How can I get the AI to lean on the firing trigger?

 

Offline Solatar

  • 211
Primary Weapons with Ammunition
What skill level are you playing on, ai is more agressive at higher skill levels.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
Medium.  But I just tried it on Insane with Generals, and got nearly the same result. :(

 

Offline Solatar

  • 211
Primary Weapons with Ammunition
let me try it on insane with Admirals.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
That's not the point - it shouldn't make any difference what AI level you use.  I need to know why the AI doesn't fire the machine gun in a machine gun fashion.  Can it be hacked by editing the table or editing the mission, or must it require a source code change?

Source code uber-gurus, please post something. :)

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Primary Weapons with Ammunition
I think you'd have to re-write the AI code for something like that, or just use primaries and say the ships have enough ammo that you won't run out in a typical mission. (I know I wouldn't find a mission where you can completely run out of ammo very fun, especially if you have to use the missile button to fire.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
Okay, here's one for the SCP folks (Bobboau? ;7)...

How much work would it be to convert the primary weapon banks into secondaries?

So the primary slots would allow secondaries, deplete like secondaries, and reload like secondaries.  There could be some sort of flag as to which is used in a particular ship: energy-based primaries or ammunition-based primaries.

 

Offline aldo_14

  • Gunnery Control
  • 213
Primary Weapons with Ammunition
How would you link 'powered' and ammo secondaries, though?

 

Offline Stunaep

  • Thread Necrotech.... we bring the dead to life!
  • 210
Primary Weapons with Ammunition
you could always use the ammo based ones for Alpha 1, and the modified-for-ai ones for AI. It's not like the player's gonna know, if they look identical
"Post-counts are like digital penises. That's why I don't like Shrike playing with mine." - an0n
Bah. You're an admin, you've had practice at this spanking business. - Odyssey

 

Offline Solatar

  • 211
Primary Weapons with Ammunition
We'd have to make it so that the player couldn't change his wingmen's loadout.

EDIT: In the UW, a wing of fighters containes two fighters. A wing of bombers contains one bomber, and two fighters with orders to cover it.

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Primary Weapons with Ammunition
I think this is a case where the AI needs a primary weapon to aim.  Had this trouble myself once....with a beam equipped fighter.
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
I don't think that's the problem.  I tried equipping a fighter with a training laser as well as the machine gun, and it didn't work.  The AI fired the laser like it should, but it only fired one round every second or two.  This despite having 40000 rounds of ammunition and a fire delay of 1/100 sec.

Were you able to fix the beam problem?

aldo: I wouldn't allow a fighter to equip energy and ammunition primaries at the same time.  If I wanted to do that, I'd put two copies of the fighter in ships.tbl...one with the conventional laser primaries, and one with the flag for ammunition primaries.

Only two people have downloaded my original attachment.  Please, download it and try it out.  It consists of just two tables, a POF, and a sample mission, and it should take only a few minutes to load and see what I'm talking about.

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Primary Weapons with Ammunition
Quote
Originally posted by Goober5000
I don't think that's the problem.  I tried equipping a fighter with a training laser as well as the machine gun, and it didn't work.  The AI fired the laser like it should, but it only fired one round every second or two.  This despite having 40000 rounds of ammunition and a fire delay of 1/100 sec.


The game is doing exactly what it is supposed to do. The AI was not designed for using things like a machine gun as a secondary weapon. To the AI, secondary weapons are missiles and bombs. Period. That's how it will treat them. If you want a machine gun, you'll have to make it a primary weapon. And the only difference I can see about a primary weapon with ammo and a primary weapon without ammo is that with the first you could (and I likely would) run out of ammo and then you'd be defenseless.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
It adds another strategic element to the game - conservation of ammunition.  Today's fighter pilots need to deal with limited ammunition.

But there's always the support ship.  And there's nothing stopping someone from giving a fighter a capacity of 40,000 bullets or more.  Look at your per-mission statistics and check how many times you fire your primary during the course of a battle. :)

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Primary Weapons with Ammunition
Having a support ship give you more ammo for a primary weapon would require even more source code changes, and it can be very hard to actually get rearmed in the middle of a mission. (I remember going through 3 or more support ships one time trying to get rearmed in a mission. They kept dying before they even got to me.) And FS2 isn't a strategy game, it's an action game.
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Primary Weapons with Ammunition
Then no support ships - just give the fighters tons of ammo.

And there is strategy in Freespace.  Some of the most fun missions are those where you have to make strategic decisions at key points.  But it's a matter of taste - if you don't like it, you don't have to play it. :)

 

Offline diamondgeezer

Primary Weapons with Ammunition
And let's not forget, a machinegun-with-ammo combination would be handy if a S:AAB TC ever got off the flight deck... ;7

 

Offline Solatar

  • 211
Primary Weapons with Ammunition
You really think a number with more that many digits would fit on the HUD? It would look extremely stupid.

EDIT: We could add something to the weapons table, say
$Ammo:                                    40000 ;; determines the amount
;;of ammunition in a primary weapon. If you want unlimited rounds, don't put in this tag.

 
I DL'ed it and will try it after work... in about 13 hours!!!

Oh and DG. Warlock is still working on SAAB right? long as we can get someone to convert the models we all can keep working "unofficially" on SAAB right? I've gotten bored, lazy, and distracted, but if someone makes some finished POFs available I'll get back to tweaking stuff and doing SAAB voice captures...
Don't think of it as being outnumbered. Think of it as having a wide target selection !

ICQ#: 5256653
[email protected]

Projects: Gundam TC, Trek BTFF, REF, and Beyond Redemption
http://photo.starblvd.net/Star_Dragon

 

Offline diamondgeezer

Quote
Originally posted by Star Dragon
Warlock is still working on SAAB right?


Er... was he? To be honest, I assumed that anyone who was serious wabout a TC would have told me (since it was my proposal this time around), but I've not heard from him.