Author Topic: Sexp request: ship-set-primitive-sensors  (Read 2292 times)

0 Members and 1 Guest are viewing this topic.

Offline Woolie Wool

  • 211
  • Fire main batteries
Sexp request: ship-set-primitive-sensors
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.
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Sexp request: ship-set-primitive-sensors
This should probably be added onto alter-ship-flag.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Sexp request: ship-set-primitive-sensors
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]
« Last Edit: February 03, 2013, 11:59:59 pm by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Sexp request: ship-set-primitive-sensors
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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