Author Topic: Force a ship to rotate  (Read 6473 times)

0 Members and 3 Guests are viewing this topic.

Offline Joey_21

  • 28
    • http://denebsystem.cjb.net/
Force a ship to rotate
Suppose I have a ship that has beams on its side but for some purpose or another the enemy craft that the ship is supposed to be firing at is directly in front of it instead of beside it.

How about a force-ship-rotate s-exp that works a bit like this:

when
----is-destroyed-delay
--------Aries
----force-ship-rotate
--------GTD Bastion (name of ship doing the turning)
--------X (which axis to turn on)
--------90 (number of degrees, negative values to turn the opposite direction)

 
shouldn't this be in the SEXP thread?
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Killfrenzy

  • Slaughter-class cruiser
  • 210
  • Randomly Existing
Either way, this could be the single most useful thing that could be implemented now. It would make capship battles more believable.
Death has more impact than life, for everyone dies, but not everyone lives. [/b]
-Tomoe Hotaru (Sailor Saturn
------------
Founder of Shadows of Lylat

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Could we also add a little section for to face ship? You could either set it to x degrees and or zero degrees and "ship Name". Or even "Ship name" and x degrees, so you could rotate past a ship.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Um, I just added set-ship-facing a few days ago which will do just this...

However, it does it instantly, not gradually.

 

Offline Joey_21

  • 28
    • http://denebsystem.cjb.net/
Quote
Originally posted by Goober5000
However, it does it instantly, not gradually.


Hence a purpose I would rather have force-ship-rotate. ;)

Seriously though... it's very unrealistic to see a ship automatically change directions like that...

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Meh - someone couuld always add an optional speed parameter.  There's probably a function in the ai somewhere that would do that.

 

Offline Ulala

  • 29
  • Groooove Evening, viewers!
I like this idea! :nod:
I am a revolutionary.

 

Offline Killfrenzy

  • Slaughter-class cruiser
  • 210
  • Randomly Existing
I could see this:

"This is the KS Victorious engaging Swarm carrier. Starboard broadside!"

Ship heels over to port to bring her starboard guns to bear, and they open fire in a blaze of energy.
Death has more impact than life, for everyone dies, but not everyone lives. [/b]
-Tomoe Hotaru (Sailor Saturn
------------
Founder of Shadows of Lylat

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
It would also be a way for Orions to win beamfights. I am fed up with them flying head on to their target, when all the turrets are on the sides.

  

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
I've been proposing the same thing ever since I joined the boards...
WE NEED THE SET-SHIP-FACING sexp!!!!

But you would need more parameters:
- which ship is doing the turning/facing
- ship towards it will face
- how will it face it (left, right, top, bottom..)
- speed at which it will turn

----------------------------
It could be done like this:
 each facing/side has it's own normal (like a weapon) and the ship tries to move around untill that normal points right at the enemy ship. And it tries to keep it that way!
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Geez, calm down. :rolleyes: Didn't you see that it was implemented already?  It's currently instantaneous, but it could be modified.

 

Offline Ulala

  • 29
  • Groooove Evening, viewers!
Modification would be cool. Capship battles might start to make a little more sense. :p
I am a revolutionary.

 

Offline Killfrenzy

  • Slaughter-class cruiser
  • 210
  • Randomly Existing
Yeah, and then these warships might actually act as if there are humans in charge rather than monkeys (or an orang-utan in the case of the Collossus) :D
Death has more impact than life, for everyone dies, but not everyone lives. [/b]
-Tomoe Hotaru (Sailor Saturn
------------
Founder of Shadows of Lylat

 

Offline Ulala

  • 29
  • Groooove Evening, viewers!
I am a revolutionary.

 

Offline redmenace

  • 211
Quote
Originally posted by Killfrenzy
Yeah, and then these warships might actually act as if there are humans in charge rather than monkeys (or an orang-utan in the case of the Collossus) :D
well more or less "Monkeys on space crack". May I add the same monkeys that developed user interface of truespace(3d moddeling program).
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline LAW ENFORCER

  • Turret Fiend
  • 210
    • http://www.armouredstar.com
Thats a bit harsh! ... blender:rolleyes:

Now THATS a user interface!

It was originaly going to be Myst IV: Blended Worlds, all about how some books were blended and seperated and how you had to solve many diffrent pussles over strangly twisted lanscapes that intertwinded with eachother leaving some pussules from the start not completeable until the end!:eek2:

However, it was deemd to crappin' hard and was made into a 3D modeler instead...


:ha: ;7
Conflict GRDLA:
Operation Return To Riker
www.ARMOUREDSTAR.com - the latest site is not finished yet!
[What we have here is the source to the Freespace ENGINE, not the Freespace GAME. By allowing the ENGINE to support all kinds of cool stuff, we're allowing the creation of all new GAMES] - TurboNed

 
In ai-chase, the ship approaches its target, then starts circling it as it gets close enough. Another AI goal type to chase without approaching could be done. I'll see what I can do.

 

Offline Raven2001

  • Machina Terra Reborn
  • 211
  • Im not the droid your looking for, move along
A really nice thing would be, instead of forcing the ship to face another ship, the SCP dudes could implement AI engage scripts where we could shoose the tactics the ship would use...

For example, a Ravana would use a "dive" tactic... it faces the target, fires, at a certain range the Ravana will have to disengage, fly a bit, and turn around for another dive... a ship that has beams on the side, will always fly circles around the Target in order to have the side beams pointing at it... this sort of stuff... but implemented in AI scripts so that the capship battles look realistic, where the BIG GUYS do some maneuvering
Yeah, I know you were waiting for a very nice sig, in which I was quoting some very famous scientist or philosopher... guess what?!? I wont indulge you...

Why, you ask? What, do I look like a Shivan to you?!?


Raven is a god.

 
Quote
Originally posted by Raven2001
A really nice thing would be, instead of forcing the ship to face another ship, the SCP dudes could implement AI engage scripts where we could shoose the tactics the ship would use...

For example, a Ravana would use a "dive" tactic... it faces the target, fires, at a certain range the Ravana will have to disengage, fly a bit, and turn around for another dive... a ship that has beams on the side, will always fly circles around the Target in order to have the side beams pointing at it... this sort of stuff... but implemented in AI scripts so that the capship battles look realistic, where the BIG GUYS do some maneuvering

Something wrong with the Ravana just facing its target and shooting away? (It still approaches its target if it gets too far away, of course.)

If it tries to dive like that, it'll lose almost every battle against ships with lateral turrets, because it will spend most of its time diving and therefore unable to bring its main guns to bear, while the target is still busy putting beams through it. When attacking another ship you're supposed to shoot at it. :)