Author Topic: Thought of this, is it possible?  (Read 2359 times)

0 Members and 1 Guest are viewing this topic.

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Thought of this, is it possible?
Using the
get-x-y-z from object,

Is it possible to use an arithmatic operator to add 200 to the z for instance to grab the co-ordanites of the player and make in effect add 200 to his position for use in creating a subspace effect or creating a ship etc....


?


Thanks guys, you are all great and brilliant :)
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 Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Thought of this, is it possible?
Well, you're giving for sure that the player always points at certain locations(same x, same y, higher z). What if it points to another location but the front? It won't work...Unless you use this feature in a cutscene.
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

 

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: Thought of this, is it possible?
It is possible to determine which the direction the player is pointed, Volition did it for "The Place of Chariots" May not be 100% accurate, but it can be done.
"Load sabot. Target Zaku, direct front!"

A Feddie Story

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Thought of this, is it possible?
Well, you're giving for sure that the player always points at certain locations(same x, same y, higher z). What if it points to another location but the front? It won't work...Unless you use this feature in a cutscene.

I've often thought we need a "get-object-facing-x" SEXP. It probably wouldn't be too hard to deconstruct the set-object-facing SEXP and find out which values I needed either.

The only thing stopping me is that every time I think of it I keep getting an inkling that there is already a SEXP that does that.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Thought of this, is it possible?
It can be done with Scripting, I don't know. I don't remember SEXPs that fullfill Dekker's requirements for his idea...
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

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Re: Thought of this, is it possible?
 make a "get-coord-from-player SEXP that gives back coordinates that are X meters in front or behind the player...
Nobody dies as a virgin - the life ****s us all!

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

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Thought of this, is it possible?
Using the
get-x-y-z from object,

Is it possible to use an arithmatic operator to add 200 to the z for instance to grab the co-ordanites of the player and make in effect add 200 to his position for use in creating a subspace effect or creating a ship etc....?

I've tried something similar for camera movements in cutscene (although the camera continusly appeared trebbeling)... worked fine and it would work fine for your prupose
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

  
Re: Thought of this, is it possible?
I've tried something similar for camera movements in cutscene (although the camera continusly appeared trebbeling)... worked fine and it would work fine for your prupose

I've done the same and it works well. Good when you want to see a dogfight...
Steadfast  Project Member

INFERNO: ALLIANCE