Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: aldo_14 on September 04, 2006, 05:14:10 am
-
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
-
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.
-
Can it be set for all ships of a type now & ever? I don't know FRED.
-
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.
(http://homepage.ntlworld.com/karajorma/Misc-Pics/PreventRearm.jpg)
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.
-
Aha! Smashing, cheers.
Perhaps this should be moved into the FRED forum, then?
-
Can't hurt. Stands more chance of lasting long enough to remind me to add it to the tables there too most likely :)
-
I thought the rearm limit = 0 would be nough, but i've klearnt something vagyuley new today so i'm happy ;)