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 → Is there a cog that makes...
Is there a cog that makes...
2004-08-09, 6:33 AM #1
Is there a cog that makes, that kyle can you object/3do as cars. Like in GTA, he press use key and then the player dissapear and get in the car/ship/....

------------------
SpriteMod (JO 2003)
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2004-08-09, 8:46 AM #2
They're out there, but nobody dares releasing them.

I've experimented with vehicles and stuff before and I came up with this, I never finished it though:
Code:
# Jedi Knight Cog Script
#
# SHIPFLIGHT.COG
#
# __Ace_1__

symbols

message     activated

thing       ship


int         player=0                      local
int         active=0                      local
vector      playerthrust                  local

message     startup
message     timer

end

# ========================================================================================

code

startup:

   Return;

# ........................................................................................

activated:

   player = GetSourceRef();
   if(active == 0)
   {
      active = 1;
      SetTimerEx(0.1, 1, 0, 0);
      SetCameraFocus(0, ship);
      Print("activated");

   }

   Return;

# ........................................................................................

timer:


   if(GetSenderID() == 1)
   {
      SetTimerEx(0.1, 1, 0, 0);
      playerthrust = GetThingThrust( player );
      SetThingVel(ship, VectorScale(GetThingLVec(ship), 10));
      if(VectorY(playerthrust) > 0)
      {
         xrotation = -100;
      }
      else if(VectorY(playerthrust) < 0)
      {
         xrotation = 100;
      }
      else
      {
         xrotation = 0;
      }

      if(VectorX(playerthrust) > 0)
      {
         zrotation = 100;
      }
      else if(VectorX(playerthrust) < 0)
      {
         zrotation = -100;
      }
      else
      {
         zrotation = 0;
      }

      SetThingRotVel(ship, VectorSet(xrotation, 0, zrotation));

   }

   Return;

# ........................................................................................

end


------------------
I am __Ace_1__ , and I approve this message.

[This message has been edited by Ace1 (edited August 09, 2004).]
I am _ Ace_1 _ , and I approve this message.
2004-08-09, 11:15 PM #3
I've been told (never really tried it myself actually, as vehicles in JK have surprisingly never attracted my full attention for long enough [http://forums.massassi.net/html/wink.gif]) that the math functions just aren't there for truly realistic vehicles in JK; I think it could have been either HellCat, HellRaiser [I get the two confused [img]http://forums.massassi.net/html/wink.gif[/img]] or descent_pilot that mentioned it, although I dare say there have been others that have tried... [http://forums.massassi.net/html/wink.gif]

Actually Ace, SaberMaster did a dang fine job in his "Space Beta" and went on to perfect it further in his "XvT" demo - the main forum thread, as well as links to a truly breath-taking "demo" (always modest was our SaberMaster [http://forums.massassi.net/html/wink.gif]) can be found here: http://forums.massassi.net/html/Forum2/HTML/011099.html

I know I'm going marginally off-topic here (being a ship-based mod rather than wheeled-vehicles) but it's certainly an excellent piece of coding and one that I had the great pleasure of testing and providing feedback for, as did just about everyone who downloaded this project [http://forums.massassi.net/html/biggrin.gif] - geez, I do miss SaberMaster and his invaluable counsel [http://forums.massassi.net/html/frown.gif]

Apologies for the random utterings [http://forums.massassi.net/html/wink.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX
"jackpot is an evil evil man... so evil, in fact, that he's awesome." - Seb

"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-08-10, 1:33 AM #4
I will try it...

------------------
SpriteMod (JO 2003)
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%

↑ Up to the top!