Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Woolie Wool on February 03, 2013, 10:13:31 pm

Title: Sexp request: ship-set-primitive-sensors
Post by: Woolie Wool on February 03, 2013, 10:13:31 pm
Some missions in Twist of Fate feature an electronic warfare Anubis that interferes with sensors but there is no sexp that handles what I'd like to do (not even alter-ship-flag, because many flags are missing). This would be a simple, sexp, named ship-set-primitive-sensors, and would take at least two arguments:

1: Boolean: TRUE or FALSE. TRUE enables primitive sensors, FALSE enables normal sensors.
2+: Names of ships to set primitive sensors on

This would allow the mission author to toggle between normal and primitive sensors on selected ships at will.
Title: Re: Sexp request: ship-set-primitive-sensors
Post by: General Battuta on February 03, 2013, 11:35:18 pm
This should probably be added onto alter-ship-flag.
Title: Re: Sexp request: ship-set-primitive-sensors
Post by: FUBAR-BDHR on February 03, 2013, 11:37:26 pm
Should have this working already.  Post a patch in a bit.

This one scares me.  It was way too simple. 

[attachment deleted by a basterd]
Title: Re: Sexp request: ship-set-primitive-sensors
Post by: karajorma on February 04, 2013, 01:11:36 am
Should have this working already.  Post a patch in a bit.

This one scares me.  It was way too simple. 

The idea behind alter-ship-flag was to make it ridiculously easy to add new flag SEXPs. I haven't tested the code but you shouldn't have to do much more than add the flag in 2-3 places to make it work.