Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TrashMan on April 30, 2003, 02:47:54 pm

Title: Separate compability slots
Post by: TrashMan on April 30, 2003, 02:47:54 pm
How about havin a fighter with ..let's say total 6 primary.
4 + 2
Is it possible to make it so that the first slot (4) can equip only lighter laser, while the second one (2) can even heavy ones...
The same for secondary?
Title: Separate compability slots
Post by: Nico on April 30, 2003, 02:58:05 pm
if I'm not mistaken that's already done.
Title: Separate compability slots
Post by: TrashMan on April 30, 2003, 02:58:48 pm
By whom? If so where can I get it?
Title: Separate compability slots
Post by: LAW ENFORCER on April 30, 2003, 04:02:56 pm
bob of course:) dont know where you get it....

have a nice day...
Title: Separate compability slots
Post by: Bobboau on April 30, 2003, 08:20:27 pm
it was in everything past 3.5 and goober reimplemented it after me though I don't know how much was his code
Title: Separate compability slots
Post by: TrashMan on May 01, 2003, 10:23:57 am
Starange...didn't see it in FS2_Open readme....I'll take another look!!!!!!
Title: Separate compability slots
Post by: HotSnoJ on May 01, 2003, 12:44:27 pm
Quote
Originally posted by Venom
if I'm not mistaken that's already done.


You're right http://www.hard-light.net/forums/index.php/topic,11987.0.html

It was my idea. ;)
Title: Separate compability slots
Post by: Goober5000 on May 01, 2003, 03:09:49 pm
The readme is massively out of date.  There are many things in the code that are not in the readme - this is one of them.

It's very straightforward - just add another list of weapons, and Freespace will treat each list as pertaining to a particular bank.

Example:
Code: [Select]
// a single list affects all banks
$Allowed PBanks: ( "ML-16" "Avenger" "Prometheus" "Banshee" )

Code: [Select]
// the first list affects bank 1; the second list affects bank 2
$Allowed PBanks: ( "ML-16" "Avenger" ) ( "Prometheus" "Banshee" )
Title: Separate compability slots
Post by: HotSnoJ on May 01, 2003, 03:56:24 pm
Quote
Originally posted by Goober5000
The readme is massively out of date.  There are many things in the code that are not in the readme - this is one of them.

It's very straightforward - just add another list of weapons, and Freespace will treat each list as pertaining to a particular bank.

Example:
Code: [Select]
// a single list affects all banks
$Allowed PBanks: ( "ML-16" "Avenger" "Prometheus" "Banshee" )

Code: [Select]
// the first list affects bank 1; the second list affects bank 2
$Allowed PBanks: ( "ML-16" "Avenger" ) ( "Prometheus" "Banshee" )
[/B]


I see you (or bob) didn't go with the second(?) idea on how to do this.

Code: [Select]

$Allowed SBanks: ( "MX-50" "D-Missile" "Fury" "Interceptor" "Hornet")
+SBank0: ("Fury" "MX50") ;;if not set (written) then unwritten bank can hold weapons flaged in "$Allowed SBanks"
+SBank2: ("Bigbomb")
$Default SBanks: ( "MX-50" "Hornet" "Fury")
+Sbank1: ("Interceptor")
$SBank Capacity: ( 40 ) ( 35 )



Just to give credit where creidt is due. I got the above idea from WMCoolmon
Code: [Select]
Secondary bank 1: ( "MX-50" "D-Missile" "Fury" )
Secondary bank 2: ("Interceptor" "Hornet")
Secondary bank 3: ( "MX-50" "D-Missile" "Fury" )
Secondary bank 4: ("Interceptor" "Hornet")
[/SIZE]


[EDIT] Is the feature for both primary and secondary weapons?
Title: Separate compability slots
Post by: Goober5000 on May 01, 2003, 04:01:09 pm
Quote
Originally posted by HotSnoJ
I see you (or bob) didn't go with the second(?) idea on how to do this.

Code: [Select]

$Allowed SBanks: ( "MX-50" "D-Missile" "Fury" "Interceptor" "Hornet" )
+SBank0: ("Fury" "MX50" ) ;;if not set (written) then unwritten bank can hold weapons flaged in $Allowed SBanks
+SBank2: ("Bigbomb" )
$Default SBanks: ( "MX-50" "Hornet" "Fury" )
+Sbank1: ("Interceptor" )
$SBank Capacity: ( 40 ) ( 35 )
[/b]


Heh - that was actually my proposal, and I realised when I was revising Bobboau's code that it would be more efficient to do it the first way.

Quote
Is the feature for both primary and secondary weapons?


Yes.
Title: Separate compability slots
Post by: HotSnoJ on May 02, 2003, 05:15:14 am
Quote
Yes.

Oh goodie!

*Goes and starts to tbl edit some ships*