Author Topic: I made a capship chase Alpha 1  (Read 3317 times)

0 Members and 1 Guest are viewing this topic.

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
I made a capship chase Alpha 1
At this point about half of the people here will be saying to themselves "So what?". Sound like an easy thing to do? it ain't. This is how I did it. I made a friendly cruiser called "Target". Told the capship to chase down "Target". Created an every-time event which calculated the differences in X,Y, and Z, co-ordinates between the capship and Alpha 1. Imagine it as the length in X,Y and Z the capship would need to travel to get to Alpha 1. The every-time event then added those lengths to the current X,Y, and Z co-ords of alpha 1 and positioned the target cruiser there. Essentially putting the target cruiser behind Alpha 1. Oh I multiplied up all the lengths by 10,000 as well. So that the target cruiser would be a long way away.

End result, cruiser is always headed for a target which from it's pespective is behind Alpha 1. ie: the capship ends up headed straight at Alpha 1.   :nod: Oh yes. Let the bullying of much smaller ships commence.  :D
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: I made a capship chase Alpha 1
Strange and intruiging, Two thumbs up  :yes2: :yes:
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: I made a capship chase Alpha 1
I kinda wanted to do this for a campaign once, something along the lines of "They really don't like you, Alpha 1."
"Load sabot. Target Zaku, direct front!"

A Feddie Story

 

Offline Prophet

  • 210
  • The know-it-all
Re: I made a capship chase Alpha 1
There's math involved, isn't there? I always just shut down and start drooling like an imbecil when there's math involved. So I have no idea how you did it.

Sounds cool though :yes:
I'm not saying anything. I did not say anything then and I'm not saying anything now. -Dukath
I am not breaking radio silence just cos' you lot got spooked by a dead flying ****ing cow. -Sergeant Harry Wells/Dog Soldiers


Prophet is walking in the deep dark places of the earth...

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: I made a capship chase Alpha 1
Clever, but using these tablesYou could just have given the cruiser Chase Alpha 1 orders.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Shade

  • 211
Re: I made a capship chase Alpha 1
From the description, it looks to me more like "follow Alpha 1" than "chase Alpha 1". Chase has always been fairly simple, as the attack/ai-chase AI goal for capships is already allowed to take fighters as an argument. Follow, though... now that will be exquisitely useful, opens up a lot of options for mission design. Very good work coming up with this :)

Would you mind if I add this to the FRED Examples section of the wiki? It's certainly clever enough to warrant being there.
Report FS_Open bugs with Mantis  |  Find the latest FS_Open builds Here  |  Interested in FRED? Check out the Wiki's FRED Portal | Diaspora: Website / Forums
"Oooooooooooooooooooooooooooooooooooooooh ****ing great. 2200 references to entry->index and no idea which is the one that ****ed up" - Karajorma
"We are all agreed that your theory is crazy. The question that divides us is whether it is crazy enough to have a chance of being correct." - Niels Bohr
<Cobra|> You play this mission too intelligently.

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: I made a capship chase Alpha 1
Oh... follow.

Erm, wouldn't it be simpler to use every-time and the set-object-position sexp to put a waypoint at get-position-x/y/z for Alpha 1, then give the capship waypoint-once orders? If it got too close you could clear its orders, and then trigger the waypoint order again when the player got further away.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: I made a capship chase Alpha 1
Clever, but using these tables you could just have given the cruiser Chase Alpha 1 orders.

Haven't tried that feature yet. Would be lovely to assign a chase Alpha 1 order to a capship in see it actually move in the direction of Alpha 1, rather than just sitting there like a lemon. I didn't want to override the default tables in this case though. Since it's just for a campaign.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: I made a capship chase Alpha 1
wouldn't it be simpler to use every-time and the set-object-position sexp to put a waypoint at get-position-x/y/z for Alpha 1.

Didn't work. The waypoint move seemed to work the first time but not subsequent times.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: I made a capship chase Alpha 1
Didn't work. The waypoint move seemed to work the first time but not subsequent times.

Moving a waypoint more than once may not work properly. I remember trying to use a moving waypoint in a cutscene and having it crap out on me very quickly. Since I was only moving it very slowly I never bothered to investigate whether it had worked the first time or simply not worked at all.

I'll take a look at the issue if I get a chance though cause this is something I want to see working. (It's more likely to get done if someone sticks it in Mantis though *subtle hint*). :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: I made a capship chase Alpha 1
(It's more likely to get done if someone sticks it in Mantis though *subtle hint*). :D

Oh okay then. Since it's you asking and I owe you.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline PotzUK

  • 28
    • PyroPort
Re: I made a capship chase Alpha 1
Can you show us what the Event tree looks like?  :)

  

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: I made a capship chase Alpha 1
I thought I responded to this back when it was first posted. :nervous:

Anyway, waypoints were never movable before now, and part of the game still thinks they're unmovable.  Including the path system:  the AI only computes the waypoint path when it first starts following the waypoints.

I'm not sure what it would take to make the path continuously update.  In the meantime, what you might be able to do is repeatedly do clear-goals and ai-waypoints-once so it's forced to keep recomputing the path.