Author Topic: Non-reloadable missile banks?  (Read 2240 times)

0 Members and 1 Guest are viewing this topic.

Offline aldo_14

  • Gunnery Control
  • 213
Non-reloadable missile banks?
Using existing features, I guess, because 3.6.9 is still in testing and thus it'd be churlish to ask for feature additions.  I can't find anything to do this, unless the scripting covers it?

Basically for specific missile banks that can't be reloaded, for example exterior mounts (or with visible weapons).  I did ask/suggest this earlier but wasn't able to find a particularly pressing reason for it, so it was unceremoniously unsuggested :D 

Actually, another thought strikes me - is it possible to mark a ship as un-supportable, i.e. can't be rearmed, etc?  Could be handy in certain cases, for example if you want to allow a selection of ships, some of which are balanced out by this lack of support.

As an aside, can someone take a peek at http://www.hard-light.net/wiki/index.php/Ships.tbl and perhaps add in examples for the custom flags into the sample tbl? (I couldn't find an example for maneuvering thrusters, for example)  Ta :D
« Last Edit: September 04, 2006, 05:19:51 am by aldo_14 »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Non-reloadable missile banks?
Actually that's easily done using the get and set ammo SEXPs I added.

All you have to do is this

Set-Secondary-Ammo
-Ship-Name
-Weapon-Bank
-Get-Secondary-Ammo
--Ship-Name
--Weapon-Bank
-0 <---------------------The rearm limit.

Basically that sets the ammo to exactly whatever it was before but it also sets the amount that can be added to this bank when it is resupplied to zero. It wouldn't be hard to make the SEXPs check the ship class and lock rearm limits based on that.

I've not actually tested using the SEXP in this way but it should work. If it doesn't Mantis it and I'll fix it as soon as I can.

It might be a nice idea to add that option to the tables though. Remind me after 3.6.9 is released. I'll be doing the weapon loadout changes then so I'll be looking at that section of the code in depth already.


Not certain about making a ship unable to call in support though. It's probably possibly. I've just never looked at the code that calls the support ship in.
« Last Edit: September 04, 2006, 05:33:00 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline aldo_14

  • Gunnery Control
  • 213
Re: Non-reloadable missile banks?
Can it be set for all ships of a type now & ever?  I don't know FRED.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Non-reloadable missile banks?
Yep. You can even use SEXPs to loop through all the ship types and set any of them. For instance I knocked this up in a minute.



That Event will prevent any MK II or MK VII vipers in alpha wing from rearming secondary weapons. It wouldn't affect anyone flying a cylon raider. If I wanted to add more ship classes to the list I'd simply add another is-ship-class SEXP to the list. If I wanted to affect ships other than alpha wing too I'd simply add them to the any-of list.

This SEXP would only lock the first secondary bank but you could easily lock the banks depending on the ship class.  Who ever is FREDding the missions for you could probably figure out how to do that in seconds once they've seen the example above.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline aldo_14

  • Gunnery Control
  • 213
Re: Non-reloadable missile banks?
Aha!  Smashing, cheers.

Perhaps this should be moved into the FRED forum, then?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Non-reloadable missile banks?
Can't hurt. Stands more chance of lasting long enough to remind me to add it to the tables there too most likely :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Non-reloadable missile banks?
I thought the rearm limit = 0 would be nough, but i've klearnt something vagyuley new today so i'm happy  ;)
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png