Hi!
I have a problem. I have a little Motion Blur Mod. As you know, 16-bit + 0x2 face flag on non adjoins result in a semi-HOM. Now, Problem when switching it off. The surfaces that started off with the 0x2 flags get cleared, and all windows aren't windows anymore...
How should a go to 1, storing which are windows and which aren't and 2, restoring which were windows and which weren't?
[This message has been edited by Edward (edited March 10, 2004).]
I have a problem. I have a little Motion Blur Mod. As you know, 16-bit + 0x2 face flag on non adjoins result in a semi-HOM. Now, Problem when switching it off. The surfaces that started off with the 0x2 flags get cleared, and all windows aren't windows anymore...
Code:
# Motion Blur # # By Edward symbols message startup message activated int i=0 local surface z local surface face0 local surface face1 local surface face2 local surface face3 local ... surface face93 local surface face94 local surface face95 local surface face96 local surface face97 local surface face98 local surface face99 local surface face100 local int f=0 local end # code startup: for(f=0; f<=100; f=f+1) face0[f]==-1; return; activated: jkStringClear(); jkStringConcatPlayerName(GetSourceRef()); jkStringConcatAsciiString(" has turned Motion Blur "); if(i==0) { f=0; for(z=0; z<=GetSurfaceCount(); z=z+1) { if(GetFaceType(z) & 0x2) { face0[f]=z; f=f+1; } Setfacetype(z,0x2); } i=1; jkStringConcatAsciiString("ON!"); } else { for(z=0; z<=GetSurfaceCount(); z=z+1) { for(f=0; f<=100; f=f+1) { if(face0[f]!=z) Clearfacetype(z,0x2); } } i=0; jkStringConcatAsciiString("OFF!"); } jkStringOutput(-3, -1); jkStringClear(); return; end
How should a go to 1, storing which are windows and which aren't and 2, restoring which were windows and which weren't?
[This message has been edited by Edward (edited March 10, 2004).]