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 → I need someone to cog me something!
I need someone to cog me something!
2001-05-28, 2:00 PM #1
Hi there!

Ok, I'd like to know if anyone here could help me with something..

I'd need a COG that would take a 3do, and rotate it 90 degrees on the Z axis, pause, rotate another 90, pause, rotate, pause.. and so on and so on. For MotS.

Can anyone help?
BladeSinger

-Are you sure this is the Sci-Fi Convention? It's full of nerds!
2001-05-28, 7:31 PM #2
Here, this should work(not positive). It requires you to have 4 frames.
Code:
# Jedi Knight Cog Script
#
# FILENAME.COG
#
# 
# 
#
# 
#
#

symbols

message     startup                    
thing     rotator                    

end

# ========================================================================================
code
startup:

Sleep(4.0);
MoveToFrame(rotator, 1, 2);
Sleep(4.0);
MoveToFrame(rotator, 2, 2);
Sleep(4.0);
MoveToFrame(rotator, 3, 2);
Sleep(4.0);
MoveToFrame(rotator, 0, 2);

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

end

NOTE: The Thing named rotator is the thing that you want to rotate.
If this doesnt work, reply to tell me and ill try fix it.

------------------
Forget years of training and commitment!
I found a lightsaber in a garage and that makes me a Jedi!
- DCM JK Special Edition
Dont ask me how it works, it just does.
2001-05-28, 8:24 PM #3
I think he wants it to go around and around, not just move through 4 frames and stop (besides you missed the "return;"). Your cog wont work as the thing will move back the way it came to get from the last frame to the first frame (just like any 3do with frames), it wont take a short-cut to finish the loop. I think you have to use RotatePivot for this one. My cogging is not great so I'm sure someone else will figure it out before I do. Does MotS have RotatePivot?

------------------
Jedi Knight Editing
JK:DFII Editing
ALHan
PSP
2001-05-29, 12:00 AM #4
That won't work at all SlingRat.
2001-05-29, 12:02 PM #5
Hmm Nope.. the cog doesn't do a single thing...

It'd be nice to have the following "user defined" values:

Thing (the thing to rotate)
Speed (the speed at which it rotates)
Sleep (time between each frames)
Sound (the sound it makes when it rotates)


And yes, I'd like it to go around and around forever and ever [http://forums.massassi.net/html/smile.gif]

I've been looking into some of JK/MOTS cogs to find something I could use but to no avail :/
BladeSinger

-Are you sure this is the Sci-Fi Convention? It's full of nerds!
2001-05-30, 11:33 AM #6
I'd like to know the same thing (for MOTS) because I want to speed up the fan 3dos and have them make noise.
Anybody know how the fans are controlled? Is it done with Keys only?

------------------
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2001-05-30, 11:39 AM #7
i'm pretty sure the're controlled in their template using,

thingflags=0x400048 maxrotvel=90
Gravity isn't MY fault--I voted for velcro.
2001-05-30, 5:01 PM #8
I found this cog. It should rotate the object. Maybe you can modify it to stop every 90 degrees??

Code:
# Jedi Knight Cog Script
#
# TJC_rotwalk.cog  by JED_Master 
# rotates a thing on frame 0 continusly (mots version) JED_Master 
#
# the ghost first frame should have a yaw of 360 
# to make it spin in continuous circles.
# lagg can cause the walkway to pause breifly at the end of each turn.
# the walkways first frame should be its starting/ending pos
# Mots version
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols
sector		sec1
thing		ghost
thing        walkway                                                          
sound        whoosh                                                           
int          dummy                              local                         
flex         time                                desc=speed                             
message      startup                                                          
message      arrived                                                          
end                                                                           

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

code
arrived:
	StopSound(dummy, 0);
	Jumptoframe(walkway, 0, sec1);  //fall through to next code
startup:
	Attachthingtothingex(walkway, ghost, 0x8);
	dummy = PlaySoundThing(whoosh, walkway,5,5,10,0x81);
	 RotatePivot(ghost, 0, Time);
	return;

# ..................................................................
end


[This message has been edited by Sylvicolus (edited May 30, 2001).]
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2001-05-31, 9:18 AM #9
For rotating things, check out the rotating doors tutorial on massassi. There's some stuff in there on the RotatePivot() verb under MotS (it works differently).
There's also a brief mention of fans in there too...not sure if its enough to help Sylvicolus tho...

------------------
How do you get an evil herbivore?

Evil G

↑ Up to the top!