TKC-Community

Hacking and Art => General Modding & Programming / Other Games => OpenGL/Direct3D => Topic started by: hater on July 03, 2007, 05:21:26 am

Title: Sniper scope blackout removal - ArmA
Post by: hater on July 03, 2007, 05:21:26 am
Removal of blackout from most sniper rifles, m24, m82, spr.
first you need this

Code: [Select]
bool IsScope(UINT xNumVertices, UINT  xPrimCount) {
  if (xNumVertices == 28)  {
    if (xPrimCount == 2)  {
 
    return true;
   
    }
  }
  else return false;
}

In DIP

Code: [Select]

if (bNoscope && IsScope(NumVertices, primCount)  {
 
  if (stride == 40)     { // note the different stride to the default
   
     return D3D_OK;
  }

}

Its only basic and more to give u a idea of how to do it. Enjoy