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 → Imperial Shuttle Takeoff
Imperial Shuttle Takeoff
2002-06-30, 10:31 AM #1
I'm trying to do one in MotS. I've been looking for it for a little while now...Does anyone know the name of it? Or, could anyone tell me the name of the key for the shuttle takeoff? I've looked for that too...

Thanks [http://forums.massassi.net/html/smile.gif]

------------------
Script Warehouse
The Jedi's Saber
2002-06-30, 6:28 PM #2
The name of the takeoff keys is 08vshutl.key or 08vshutr.key in JKMRES.goo.
This should be in the Main Editing Forum, unless you want us (me, GBK, and/or SaberMaster) to write a cog for you. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-06-30, 7:49 PM #3
I was looking for the cog or looking for the key to write the cog so technically it is a cog question. I apologize if I placed it in the wrong forum though. [http://forums.massassi.net/html/frown.gif]

------------------
Script Warehouse
The Jedi's Saber
2002-07-01, 3:33 AM #4
Since you're looking for a cog, you're on the right forum. Here's a cog I wrote a while ago that fits into what you're asking for. Its part of The X Project's cogs.
Code:
# Jedi Knight Cog Script
#
# Shuttle.cog
#
# Controls triggering and animation of a shuttle and the clearing of the surrounding area
#
# [DP]
#

symbols
	message	startup
	message	sighted
	message	timer

	thing		shuttle

	sound		wav0
	sound		wav1

	cog		cog0
	cog		cog1
	cog		cog2
	cog		cog3
	cog		cog4

	keyframe	key0

	int		done=0							local
	int		channel0							local
	flex		time								local
	int		i								local
end

code
startup:
	ThingLight(shuttle, 0.4, 0.0);
	return;

sighted:
	if (done) return;
	done = 1;

	for(i=0;i<=4;i=i+1)
	SendMessage(cog0, user0);

	Sleep(5.0);
	PlayKey(shuttle, key0, 1, 0x4);	
	PlaySoundThing(wav1, shuttle, 1.0, -1, 300.0, 0x0);
	time = GetKeyLen(key0);
	SetTimerEx(0.8, 1, 0, 0);	// play engine whine
	SetTimerEx(time, 2, 0, 0);	// destroy the shuttle
	return;

timer:
	if (GetSenderId() == 1)
	{
		channel0 = PlaySoundThing(wav0, shuttle, 1.0, -1, 300.0, 0x1);
	}
	else if (GetSenderId() == 2)
	{
		StopSound(channel0, 3.0);
		DestroyThing(shuttle);
	}
	return;
	
end

Hope it helps. If you want an easier to read cog, just ask. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

[This message has been edited by Descent_pilot (edited July 01, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-07-01, 7:52 AM #5
Thanks. [http://forums.massassi.net/html/smile.gif]

------------------
Script Warehouse
The Jedi's Saber

↑ Up to the top!