Author Topic: 'Facing' SEXP  (Read 3277 times)

0 Members and 1 Guest are viewing this topic.

Offline diamondgeezer

Er... does the 'facing' SEXP actually work? I'm using it in conjunction with an is-event-true-delay SEXP via an AND operator. I've defined the forward view cone as 60, but it just flat doesn't want to work. Can anyone confirm whether it works or not please?

I'm using one of the end of January FRED and FSO builds, BTW :nod:

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Works for me in the training missions.  Here's how they did it there:
Code: [Select]
+Chained: 7

$Formula: ( when
   ( not ( facing "Instructor" 0 ) )
   ( training-msg "Face Instructor" )
   ( flash-hud-gauge "CENTER_RETICLE" )
   ( flash-hud-gauge
      "WEAPON_LINKING_GAUGE"
   )
   ( flash-hud-gauge "THREAT_GAUGE" )
   ( flash-hud-gauge "THROTTLE_GAUGE" )
)
+Name: Face Instuctor
+Repeat Count: 1
+Interval: 1
+Chained: 12

$Formula: ( when
   ( facing "Instructor" 10 )
   ( training-msg "Good" "Good" 0 10 )
   ( add-goal
      "Instructor"
      ( ai-waypoints-once
         "Waypoint path 3"
         89
      )
   )
)
+Name: Facing Instructor 2
+Repeat Count: 1
+Interval: 1
+Chained: 6
+Objective:  XSTR("Face Instructor", 2131)

 

Offline diamondgeezer

OK, now things are getting weird. I made a test mission with a single Loki and a single event which fired when I faced the Loki (with a cone of 10). It worked, no problem.

Then  I returned to the problematic mission.  I make an event which fires when I face the offending ship, with no other operators or anything else. I set this as a directive. When I enter the mission and the directives pop up on the left, the event is red - it just fails automatically. WTF is going on with that?

 

Offline Lightspeed

  • Light Years Ahead
  • 212
it checks at "0" seconds mission time. You'll prolly not be facing your target at that time so it becomes invalid.
Modern man is the missing link between ape and human being.

 

Offline diamondgeezer

And yet when I ran my test mission and turned to face the Loki, the event fired. No muss, no fuss. This is why I'm confused.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by diamondgeezer
Then  I returned to the problematic mission.  I make an event which fires when I face the offending ship, with no other operators or anything else. I set this as a directive. When I enter the mission and the directives pop up on the left, the event is red - it just fails automatically. WTF is going on with that?


Is the ship present at the start of the mission? It could be failing if the ship isn't there to turn and face.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline diamondgeezer

Ahhh.... good point. It's not. I'll imperiment a bit.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Let us know. I used to do this sort of experimentation all the time :) Kinda miss it now. I need to FRED more often :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline diamondgeezer

Bingo. Fix0red.

Nice one Kara. FRED's ghey, mind.

 

Offline magatsu1

  • 210
No bad tools, only bad workmen.

*runs*
Blitzerland: Knows what he's talkin' about

 

Offline diamondgeezer


 

Offline aldo_14

  • Gunnery Control
  • 213
*aims and fires*

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
*watches the pretty explosions*
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline diamondgeezer

*hits alt-J*

*jumps out*

 

Offline Lightspeed

  • Light Years Ahead
  • 212
if
+is facing
 -diamondgeezer
 -thread
+then
 -self-destruct
 -HLP

:)
Modern man is the missing link between ape and human being.

 

Offline diamondgeezer

I went through a short phase on the VBB of posting entirely in SEXPs. Soon got bored of it :nod:

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
You also went through a short phase of posting little custom signatures after every post.  What happened to that?

 

Offline diamondgeezer

Made rapid-fire arguments with Stryke a bit of a bastard, so I stopped bothering. They were supposed to be 'DG facts' so you could impress your friends with your knowledge of DG trivia. I was impressed I kept the habit up as long as I did :D