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 → need a cog
need a cog
2002-04-03, 9:01 AM #1
im looking for a cog....im doing a startrekkie thing and it would be cool to have working replicators...so im trying to find a cog that when u activate a surface it creates an object at a ghost position...any body seen one? it can be used to dispense ammo.....or bacta tanks ...
2002-04-03, 4:51 PM #2
There are tons of these types of cogs...

Code:
# Star trek style object generator
#
# 03/2002 GBK - Packman573@aol.com
Symbols
Message Startup
Message Activated
Message Timer
Surface Switch
Thing Ghost
Template Type0		#3 object types, randomly selects from these.
Template Type1
Template Type2
Template Effect
Flex Create_delay=0.5	#Delay between effect, and creation of object.
Flex Reset_delay=1.0		#Pause until activation is allowed again.
Sound Beep
Int R=0			Local
End
Code
Startup: Setwallcel(Switch, 0); Stop;
Activated:
If(Getsenderref() != Switch || Getwallcel(Switch) != 0) Stop;
Setwallcel(Switch, 1);
Playsoundpos(Beep, Surfacecenter(Switch), 1, 0, 10, 0);
Creatething(Effect, Ghost);
Settimerex(Create_delay, 0, -1, -1);
Stop;
Timer: 
If(Getsenderid() == 0) {
R = Rand() * 3;
Creatething(Type0[R], Ghost);
Settimerex(Reset_delay, 1, -1, -1); }
Else Setwallcel(Switch, 0);
Stop;
End


It works, I tested it.

Do note, the switch has to be multi-celled. The entire operation of the cog depends on it.

If you have any difficulty installing the cog, reply with further queries.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-04-04, 1:45 PM #3
how do i create a multiceleed mat? all i have are startrek consopel textures..i dont want to use jk switches
2002-04-04, 1:49 PM #4
i cannot cog worth a damn..could u please send it to me in cog format?
2002-04-04, 3:39 PM #5
Check your email... [http://forums.massassi.net/html/tongue.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-04-04, 3:51 PM #6
wtf...clean it up?? how?? whats ubb code tags.......ACK il ldo ti all wreong..ill just continue looking thanks anyway i need something that i can get and put in my level without any of that extra work
2002-04-04, 4:26 PM #7
i got it to work.........anyway.....it wotn create the object inside the recpliator when i hti the switch..but it does make the souND OOOOOOOOH U SAID IT NEEDED TO BE....multicelled...hwo do i do that........
2002-04-07, 12:36 PM #8
Use matmaster
Ive moved over to JK2
2002-04-08, 1:32 AM #9
the problem has nothing to do with the multicelled mat. But anyway:
A multicelled mat is easy to create. Fire up matmaster, load any switch material, extract it to .mtm/.bmp, delete the .bmps. Now take your own switch, convert it to .bmp. This is the first cel of your multicelled mat. Call it exactly like the first .bmp you just deleted. Then load this .bmp in an Image Editor (Paintshop, whatever) and create the second cel (it should look like the first cel, but should have some "activated" feeling, maybe you want to look at the .bmps you deleted before). Call that .bmp like the second one you deleted before. Now make sure you have the two new .bmps and the .mtm in the same folder and go back to matmaster. There, you choose open and select the .mtm (you might have to change the dropdown list to "show .mtm"). Convert it to .mat and save it anywhere. Rename it, and there you have your multicelled switch.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-08, 1:33 AM #10
I just noticed that your problem could though be because of the lack of a second cel...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-08, 6:05 AM #11
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Do note, the switch has to be multi-celled. The entire operation of the cog depends on it.</font>



I wasnt kidding. If the switch material isnt multicelled, the cog wont work.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.

[This message has been edited by GBK (edited April 08, 2002).]
And when the moment is right, I'm gonna fly a kite.
2002-04-08, 9:25 AM #12
well then is there one that doesnt require a multi cell
2002-04-08, 11:32 AM #13
it's not that hard to make a multicelled mat...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-08, 1:41 PM #14
> [http://forums.massassi.net/html/redface.gif] ahh!!!!!!!!!!! fine ill try to make a multi celled mat..im also confused......im doin this new cog tryin to make small phaser mod to go with my lvl ...
2002-04-08, 11:21 PM #15
for your phaser mod, I suggest you have a look at laser guns, such as the ones in GaS or PWP2...

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-04-12, 9:59 AM #16
pahser mod= done....i am sucky at making gun models..so its just a bryar pistol that shoots a yellow transparent BEAM not bolt.
2002-04-14, 12:38 PM #17
<testing... testing . . . is this thing on?>

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!