Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Help! Pilot cog needed!!! Editors plz look!
Help! Pilot cog needed!!! Editors plz look!
2001-08-30, 1:58 PM #1
I need a cog (for MOTS) that, when a ship is "activated", the view switches to that ship, and your keyboard movements make the ship move. If anyone can give me one or walk me through the process that would be great! thanks.

[This message has been edited by Darkmere (edited September 03, 2001).]
2001-08-31, 6:10 AM #2
I don't think it's possible in JK since you can't get the playeraction like in mots.

-Raze
--
You are all just jealous because you can't hear the small voices!!
2001-08-31, 12:04 PM #3
Its gotta be possible....


When you activate, you just delete the ship, and change the player to the ship 3do... I just dont know how to write cogs....

------------------
"I hear You speak and I obey
I walked away from the grave
I will never be the same
I gave my life away"

The Bible is the only religious book to actually state that it is the truth and the only way. Thats why I'm a Christian.

_-=MaTRiX=-_
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2001-08-31, 2:07 PM #4
It's possible without having to do it the cheap change the player way , I did it.
2001-09-01, 11:01 AM #5
Yes, it's possible. I working on some code like that(but it's for a projectile). I don't know anything about linking cogs with levels, but do something like this.

Here's a general idea of what to do:

#=================#
activated:
player=GetSourceRef();
ship=<define your ship>
Setcamerafocus(0, ship);
Setcamerafocus(1, ship);
SetPulse(0.01); #Or use looping timers

Return;
#=================#
pulse:

dir = VectorAdd(GetThingLVec(player), GetThingLVec(ship));
SetThingLook(ship, dir);
SetThingVel(ship, VectorScale(GetThingLVec(ship), .8));
Setthingvel(player, vectorset(0, 0, (vectorz(getthingvel(player)))));
#Limit the player's movement on the x and y axes

Return;
#=================#
Removed:

Setpulse(0);
Setcamerafocus(0, player);
Setcamerafocus(1, player);

Return;
#=========================#

I'm not sure what you would use instead of removed, but anyway, the removed message above will stop the ship piloting. Also, this will only let you stear the ship side-to-side - you won't be able to move up and down(or slide) without making the code a lot more complicated.

Hope that helps you. [http://forums.massassi.net/html/wink.gif]


------------------
Truth is in the eye of the beholder

[This message has been edited by SaberMaster (edited September 01, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-09-01, 12:01 PM #6
I've seen vehicle cog questions atleast 10 times in the last half a year, and never once seen the answer....

Seifer, any insight?
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2001-09-02, 11:04 AM #7
No, no.. us mere mortals can never hope to understand the workings of higher minds. We can only watch as the answers are dangled in front of us, only to be taken away with a laugh.
2001-09-02, 3:16 PM #8
Yeh.... it gets annoying after a while... I usually only get 10% of my questions answered here....

------------------
"I hear You speak and I obey
I walked away from the grave
I will never be the same
I gave my life away"

The Bible is the only religious book to actually state that it is the truth and the only way. Thats why I'm a Christian.

_-=MaTRiX=-_
In my mind I can see your face, as Your love pours down in a shower of grace. Some people tell me that Your just a dream, but my faith is the evidence of things unseen.

Once upon a time God spoke to me, and then I was never the same again.

_-=MaTRiX=-_
2001-09-03, 4:35 AM #9
You could try to get the player's thrust in the cog, and then set the thrust of the ship to the same thing. Tha player would have to move, though, so it wouldn't work on a cliff or something ("weee! i didn't know piloting was so..." *splat*)

------------------
Aisha Clan-Clan: "The Ctarl-Ctarl are an invincible race of people. We're all as strong as ten humans!"
Gene: "Is tht so?"
*Pulls out his Caster Gun and shoots her. She lies on the ground in a daze*
Gene Starwind: "Wow, you really are invincible!"
Aisha Clan-Clan: "The Ctarl-Ctarl are an invincible race of beings. We're all as strong as ten humans!"
Gene Starwind: "Is that so?"
*Pulls out his Caster Gun and shoots her. She lies on the ground in a daze*
Gene Starwind: "Wow, you really are invincible!"

- Excerpt from 'Outlaw Star,' Episode 5
2001-09-03, 11:54 AM #10
I made a vehicle control cog for MotS with four speeds, turning, horn, weapons, damage and engine failure. To do it for JK in the same way would be impossible as I used playeraction a lot to power it. If you look back through the screenshots of the day here (it's a couple of months ago) you should be able to see a shot of it, but the thread at TACC it was originally in has gone now because of the forum upgrade, and I'm not releasing the code until The New Empire 3 is finished.
2001-09-03, 6:26 PM #11
Geez I did it in JK, it is possible !
2001-09-04, 11:25 AM #12
I never said it wasn't possible in JK. It probably is, but just not in the same way as I did it in MotS.
2001-09-04, 2:51 PM #13
I did it! I did it!

------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2001-09-16, 1:28 PM #14
How u do it JK?!?!?!?!?!?!?!? [http://forums.massassi.net/html/confused.gif]

------------------
In the Dark of the night, Beware, for I will come.

↑ Up to the top!