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 → Couple of Coq Questions.
Couple of Coq Questions.
2001-06-21, 12:05 AM #1
How do I make a COG to do the following? (The parts that I don't know what do do in are in brackets.)

[starts at beginning of level]
Sleep(10);
[change four textures]
Sleep(10);
[change four textures]
[Generate 3do's]
Sleep(10);
[change four textures]
[Generate more 3dos]
Sleep(10);
[Change four textures]
[Kill 3dos]
Sleep(10);
[Change four textures]
[Kill old 3dos]
[Generate stormtroopers]
[activate ship cog that uses a KEY file to make a few ships fly around and stop]
[turn on various lights when the ships stop]

It's a lot, but I'd really like it if someone could help me with it.

------------------
Cordially,
Lord Tiberius Grismath
Head Administrator
GCWC.net
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2001-06-21, 12:55 AM #2
Wow...lemme try and fill in what I can...

Okay...now that I've tried to fill in the blanks, this COG is just way too complicated to explain. You would have to tell me exactly what you wanted to happen and I could do it. The only thing I can't do is the MAT changing, but I can look that up somewhere [http://forums.massassi.net/html/smile.gif] Just lemme know what kind of ships ure looking for and I'll make the COG.

------------------
Dan Gast,
DFLev, Dark Forces Editing
Starfighters 4.0, Invasion! MOD Levels
Dan Gast,
DFLev Founder
http://www.dflev.cjb.net
2001-06-21, 7:12 AM #3
here ya go have fun setting this sucker up, if u don't know how to set it up have someone else explain i am through with this tortous and repetive cog.
Code:
# Jedi Knight Cog Script
#
# DEFAULT.COG
# [Han5678]
# This Cog is Not supported by LucasArts Entertainment Co

symbols


surface surface1
surface surface2
surface surface3
surface surface4
material material1
material material2
material material3
material material4

surface surface5
surface surface6
surface surface7
surface surface8
material material5
material material6
material material7
material material8

template temp1
template temp2
thing ghost1
thing ghost2

surface surface9
surface surface10
surface surface11
surface surface12
material material9
material material10
material material11
material material12

template temp3
template temp4
thing ghost3
thing ghost4

surface surface13
surface surface14
surface surface15
surface surface16
material materia113
material material14
material material15
material material16

surface surface17
surface surface18
surface surface19
surface surface20
material materia117
material material18
material material19
material material20

template temp5
thing ghost5
thing ghost6
thing ghost7
thing ghost8

template shiptemp1
template shiptemp2
template shiptemp3
thing ghost9
thing ghost10
thing ghost11

keyframe key1
keyframe key2
keyframe key3

message starup
end

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

code
startup:
sleep(10);
SetSurfaceMat(surface1, material1);
SetSurfaceMat(surface2, material2);
SetSurfaceMat(surface3, material3);
SetSurfaceMat(surface4, material4);
Sleep(10);
SetSurfaceMat(surface5, material5);
SetSurfaceMat(surface6, material6);
SetSurfaceMat(surface7, material7);
SetSurfaceMat(surface8, material8);
thing1=CreateThing(temp1, ghost1);
thing2=CreateThing(temp2, ghost2);
Sleep(10);
SetSurfaceMat(surface9, material9);
SetSurfaceMat(surface10, material10);
SetSurfaceMat(surface11, material11);
SetSurfaceMat(surface12, material12);
thing3=CreateThing(temp3, ghost3);
thing4=CreateThing(temp4, ghost4);
Sleep(10);
SetSurfaceMat(surface13, material13);
SetSurfaceMat(surface14, material14);
SetSurfaceMat(surface15, material15);
SetSurfaceMat(surface16, material16);
DestroyThing(thing1);
DestroyThing(thing2);
Sleep(10);
SetSurfaceMat(surface17, material17);
SetSurfaceMat(surface18, material18);
SetSurfaceMat(surface19, material19);
SetSurfaceMat(surface20, material20);
DestroyThing(thing3);
DestroyThing(thing4);
CreateThing(temp5, ghost5);
CreateThing(temp5, ghost6);
CreateThing(temp5, ghost7);
CreateThing(temp5, ghost8);
ship1=CreateThing(shiptemp1,ghost9);
ship2=CreateThing(shiptemp2,ghost10);
ship3=CreateThing(shiptemp3,ghost11);
PlayKey(ship1, 1, key1, 0x38);
PlayKey(ship2, 1, key2, 0x38);
PlayKey(ship3, 1, key3, 0x38);
SetThingLight(ghost1,100);
SetThingLight(ghost2,100);
SetThingLight(ghost3,100);
SetThingLight(ghost4,100);
SetThingLight(ghost5,100);
SetThingLight(ghost6,100);
SetThingLight(ghost7,100);
SetThingLight(ghost8,100);
SetThingLight(ghost9,100);
SetThingLight(ghost10,100);
SetThingLight(ghost11,100);
Sleep(.3);
SetThingLight(ghost1,0);
SetThingLight(ghost2,0);
SetThingLight(ghost3,0);
SetThingLight(ghost4,0);
SetThingLight(ghost5,0);
SetThingLight(ghost6,0);
SetThingLight(ghost7,0);
SetThingLight(ghost8,0);
SetThingLight(ghost9,0);
SetThingLight(ghost10,0);
SetThingLight(ghost11,0);
return;
end
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-21, 9:56 AM #4
WHOA!!!!!!!!!!!!

THANKS A BILLION, HAN!!!!!!
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2001-06-21, 10:07 AM #5
yep no prob it wasn't bad writing it but having to set it up seems like it could be bad
roses are red, violets are blue, I am schizophrenic, and I am too!

↑ Up to the top!