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 → The Anti-adjoin-HOMing?
The Anti-adjoin-HOMing?
2002-06-24, 9:44 PM #1
I though i remember a trick to get rid of adjoin hom, was it a cog? I'll check the cog section one more time.

------------------
The Dashmaster
2002-06-25, 5:14 AM #2
Code:
For(I=0;I<=Getsurfacecount();I=I+1) For(E=0;E<=Getnumsectorvertices(I);E=E+1) { 
If(Vectordist(Getthingpos(JKgetlocalplayer()), Getsectorvertexpos(I, E)) < TARGET_DISTANCE) Setfacegeomode(I, 0);
Else Setfacegeomode(I, 4); }
Stop;


Sample code to do what you ask. The 'TARGET_DISTANCE' defines how far away a surface must be before setting it to geo4.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

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

↑ Up to the top!