Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Test Builds => Topic started by: karajorma on February 18, 2006, 05:44:16 pm

Title: New SEXPs to play with
Post by: karajorma on February 18, 2006, 05:44:16 pm
For those of you who aren't aware I'm an SCP coder now. And I come bearing gifts :)

Click me (http://homepage.ntlworld.com/karajorma/Misc-Downloads/GetAndSetWeaponsBuild.rar)

CVS is from the 13th so this is newer than the latest CVS build posted. It's not just a CVS build either. There's three new SEXPs to play with.

Num-Ships-In-Wing
Basically this returns the number of ships from the wings mentioned that are currently present. This is useful for situations when you want 4 fighters from Cancer wing to be present when something happens but don't care which wave they are from.

Get-Secondary-Ammo
Basically tells you the number of missiles present in a single bank. Tell it to look at bank 4 and it will give you the total number of missiles. Unlike Secondary-ammo-pct this SEXP gives you the actual number not a percentage. This is very useful for

Set-Secondary-Ammo
Sets the ammo to whatever number you type (including 0) or the maximum that bank can carry. I'm sure there are FREDders out there who can think of things to do with this. Rearming when near a certain location or ship subsystem is one that comes to mind. :D


Debug and FRED builds included in the package along with a short mission to test the new SEXPs. Have fun :)


Title: Re: New SEXPs to play with
Post by: karajorma on February 19, 2006, 12:03:17 pm
Here (http://homepage.ntlworld.com/karajorma/Misc-Downloads/fs2_open_r_No_Com.rar)'s a new release build with the extra disable Built-In Command Messages (http://www.hard-light.net/forums/index.php?topic=38442) feature.  CVS is still from the 13th though.
Title: Re: New SEXPs to play with
Post by: IPAndrews on February 20, 2006, 02:32:58 am
I wasn't aware. A SCP coder who can see things from a mission designer's perspective. Things just looked way up. The future's so bright I'm going to have to wear shades, and here they are  :cool:.
Title: Re: New SEXPs to play with
Post by: karajorma on February 20, 2006, 04:06:39 am
Well Goober does that too but yeah I'm probably only going to be working on FRED stuff for quite a while cause that's what interests me :)
Title: Re: New SEXPs to play with
Post by: Goober5000 on February 20, 2006, 10:52:34 am
:hopping:
Title: Re: New SEXPs to play with
Post by: Cobra on February 25, 2006, 02:07:34 pm
Yay! The FRED king has upped his level! :D