Author Topic: Ramming  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Would that be possible to create a "Ram" operator, which would cause a ship to attack target just like Kamikaze, but instead of being destroyed, it'll be dealt the specified damage (target ship would be destroyed)?
It would be usefull for, for example, destroyers attempting to ram smaller ships, where the difference in size is large enough for the destroyer to come out alive.

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
you could hack this by setting the smaller ship to kamikaze and possibly using some of those new maneuvering SEXPs to control where the first ship goes. Aren't destroyers usually slower than other ships though?

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Well if there's a Fenris trying to blockade something, and it's facing the wrong way to be able to dodge, an Orion ought to be able to just plow straight through it, no problem.

The trick is indeed getting it to explode on cue.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Distance less than?
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 asyikarea51

  • 210
  • -__-||
I had a Hecate ram the backside of a Sathanas once but that was only because of the 1400 horsepower joke and the ensuing beat-up. :nervous:

For some reason this thread reminds me of the MOI issue.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Well if there's a Fenris trying to blockade something, and it's facing the wrong way to be able to dodge, an Orion ought to be able to just plow straight through it, no problem.

The trick is indeed getting it to explode on cue.
That's easy.  Just plow the Orion right into it, and set the other ship to kamikaze.

 
Distance less than?
I was just thinking that. You put your big ship on a waypoint that takes it through the other ship, and at distance-less-than whatever, self-destruct the little one. You'd have to be very careful to set it up right so that the distance is just right so that it'll explode on contact and not before, or at all.
Hmmmm, could you issue a ram order to the big ship, and set up another SEXP to clear orders when it got just close enough to the target? Inertia should carry it through, and then you can self-destruct the target.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
That's easy.  Just plow the Orion right into it, and set the other ship to kamikaze.
The problem is, I'd like an Orion to manouver like it was going to Kamikaze the ship. As far as I know, if something large is between a warship and a waypoint, the warship will try to fly around it. I'd me mostly interested in AI part of the SEXP, since destroying the rammed ship and dealing damage to one doing the ramming can be handled by other SEXPs. I only asked to include Kamikaze-like functionality into it due to potential problems that could arise from ship being rammed and not destroyed (I don't really know how the two should act in such case, I know that capship collisions sometimes behave awkwardly.).

 

Offline -Norbert-

  • 211
I see another problem with just putting the waypoint "though" the smaller ships. More often than not the big ships push each other away before they actually have any hull contact.

 
 

Offline sigtau

  • 29
  • unfortunate technical art assclown
I see another problem with just putting the waypoint "though" the smaller ships. More often than not the big ships push each other away before they actually have any hull contact.

I can confirm this.  I had a corvette and an Orion duke it out, and the corvette jumped in dangerously close to the Orion--to the point of hitting it point-blank it--and pushed it out of the way before actual contact was made.
Who uses forum signatures anymore?

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Yea that collision bug is already in mantis.  http://scp.indiegames.us/mantis/view.php?id=2222
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 Dragon

  • Citation needed
  • 212
  • The sky is the limit.
I also remember having an Argo effortlessly pass throught a Deimos, on retail (playing retail campaign, it was a long time ago).
It was flying waypoints and Deimos jumped in front of it.

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
I also remember having an Argo effortlessly pass throught a Deimos, on retail (playing retail campaign, it was a long time ago).
It was flying waypoints and Deimos jumped in front of it.
Yeah that happens a lot in "Love the Treason..." especially. Some of the SOC loop missions, while epic, had shoddy FREDding work.

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Indeed, there were some bugs which even most basic user campaigns avoid.
Maybe they were too difficult for beta testers to test. :)

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
That's easy.  Just plow the Orion right into it, and set the other ship to kamikaze.
The problem is, I'd like an Orion to manouver like it was going to Kamikaze the ship. As far as I know, if something large is between a warship and a waypoint, the warship will try to fly around it. I'd me mostly interested in AI part of the SEXP, since destroying the rammed ship and dealing damage to one doing the ramming can be handled by other SEXPs. I only asked to include Kamikaze-like functionality into it due to potential problems that could arise from ship being rammed and not destroyed (I don't really know how the two should act in such case, I know that capship collisions sometimes behave awkwardly.).

I would let the Orion fly on a collision course and then order the smaller ship to go kamikaze right before the collision. I wouldn't order it to do so earlier: if the smaller ship gets destroyed before the supposed impact, it would explode directly.

Code: [Select]
Set Kamikaze

-- op  when

---- <
------- distance
---------- Orion Destroyer
---------- Smaller Ship
------- X (insert value - distance)


---- op add-goal
------- Smaller Ship
------- op ai-chase
---------- Orion Destroyer
---------- 100

---- op kamikaze
------- X (insert value - damage)
------- Smaller Ship

If the smaller ship is already supposed to attack the Orion, the add-goal SEXP is not necessary. At this point, you simply need to find the optimal distance that allows you to trigger the ramming effect you intend to represent. Please note that collision detection (and its related problems) will not affect this. :)
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito