PDA

View Full Version : The Anti-adjoin-HOMing?



Dash_rendar
06-25-2002, 12:44 AM
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

gbk
06-25-2002, 08:14 AM
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 (http://www.tbns.net/GBK/ol/index.htm).