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 → Turning every geo4 surface transclurent and back
Turning every geo4 surface transclurent and back
2003-01-10, 6:00 AM #1
how would i do this? I suck at arrays [http://forums.massassi.net/html/smile.gif]

GBK, this is for you, i think [http://forums.massassi.net/html/tongue.gif]

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2003-01-10, 7:34 AM #2
Simple a pie.

Code:
Heapnew(0, Getsurfacecount()+1);  /First, create a heap.

For(I=0;I<=Getsurfacecount(I);I=I+1) {  /Loop through your surfs, and save their geos to the heap.

Heapset(I, Getfacegeomode(I));  /Saving...

Setfacegeomode(I, 4); }  /Then set the surface to geo4.



And then, to return it back to normal...

Code:
For(I=0;I<=Getsurfacecount();I=I+1) Setfacegeomode(I, Heapget(I));  /Loops back through, and set the surfs back to the geos stored in the heap.
And when the moment is right, I'm gonna fly a kite.
2003-01-10, 12:13 PM #3
Simple as pie when you do it correctly, huh GBK? [http://forums.massassi.net/html/tongue.gif]
Code:
Heapnew(0, Getsurfacecount()+1);
For(i=0; i<=Getsurfacecount(); i=i+1)
{
   If(GetSurfaceGeoMode(i) != 4) Return;
   If(GetFaceType(i) != 2) Heapset(i, 2);
   Else (HeapSet(i, 0);
   SetFaceType(i, 0x2);
}

Revert
Code:
For(i=0; i<=GetSurfaceCount(); i=i+1)
   ClearFaceType(i, HeapGet(i));
HeapFree();
I used the != to for the non-traslucent ones because of the clear. If translucent, remove the 0x0 flag.

edit - Wrong flags [http://forums.massassi.net/html/redface.gif]

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

The Magician Saber System.

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

Completed
Judgement Day (HLP), My level pack
2003-01-10, 12:23 PM #4
hrm, since arrays are hebrew to me, could someone make it work only on unadjoined surfaces?

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2003-01-10, 12:56 PM #5
Hey, I can read Hebrew if you need help [http://forums.massassi.net/html/smile.gif]
Dreams of a dreamer from afar to a fardreamer.

↑ Up to the top!