Hi!
I have here a COG that changes a custom made 256x256 blue MAT file into stars2.mat, and tints the room red. But it crashes when I try!
Help?
/Edward
I have here a COG that changes a custom made 256x256 blue MAT file into stars2.mat, and tints the room red. But it crashes when I try!
Code:
# See the inside of the tie from a screen!
#
# By Edward
flags=0x240
symbols
message startup
message activated
surface screen
thing cam
surface window0
surface window1
surface window2
surface window3
surface window4
surface window5
surface window6
surface window7
surface window8
sector room1
sector room2
material type0
material type1
int cmp=0 local
int z=0 local
end
#
code
startup:
SetColorMap(room1,cmp);
SetColorMap(room2,cmp);
for(z=0; z<9; z=z+1)
{
SetSurfaceMat(window0[z],type0[cmp]);
}
return;
activated:
if(GetSenderRef()!=screen) return;
If(cmp==0)
{
cmp=1;
SetCameraFocus(0,cam);
}
else
{
cmp=0;
SetCameraFocus(0,GetLocalPlayerThing());
}
SetColorMap(room1,cmp);
SetColorMap(room2,cmp);
for(z=0; z<9; z=z+1)
{
SetSurfaceMat(window0[z],type[cmp]);
}
return;
endHelp?
/Edward
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)
) (05 06, and 07 & 08 I think...)
09fuel.cmp In fuel places
10cargo.cmp When on the Cargo Ship
11pic.cmp For Gorc & Pic
12escape.cmp When escaping the Cargo Ship
12redmap.cmp I think, in the big reactor thingy...
15maw.cmp In the place before Maw and when Maw comes.
16fall.cmp In the falling cargo ship
16red.cmp For falling ship Red Alert
17sarris.cmp When fighting Sarris
19descent.cmp For Levels 18 & 19
20val.cmp For Boc & Jerec![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)
