wurzil
20th September 2004, 08:04
There may be a couple of sizes left for you to find on your own.I advise you use mguys 1.3 codhelper to find the sizes.
Thanks to gsds for the method and mguy for help.
#include <gl/glext.h>
struct models{
public:
bool mh;
bool allwh;
bool allwh2;
bool allwh3;
bool allwh4;
bool modelhack;
int index;
};
models mods;
float allwh[]={12408, 9756, 5340, 3324, 10200, 5532, 3444, 11760, 7092, 5004, 16128, 11184, 6096, 4512, 18144, 13200, 8112, 6528, 17352, 12408, 9756, 5340, 16896, 11952, 9300, 4884, 9660, 4716, 8916, 3828, 10392, 7740, 3324, 10200, 5424, 3324,12216, 7572, 5460};
float allwh2[]={13080, 8304, 6204, 3324, 16896, 11952, 9300, 4884, 8952, 6300, 7824, 16704, 11760, 7092, 5004, 10080, 5436, 3324, 10968, 8316, 3900, 12216, 7440, 5340, 13272, 10620, 6204, 3324, 10200, 5556, 3444, 14520, 9576, 4356, 1884, 12216, 7572, 5460, 11928, 2304, 6840};
float allwh3[]={9108, 3924, 1944, 12984, 8040, 3924, 8904, 4092, 2328, 14376, 5160, 3552, 7164, 5076, 5628, 10212, 5268, 3180, 17856, 8100, 6492, 4884, 12864, 7920, 5832, 6384, 13056, 8112, 6024, 6576, 5460, 3372, 12924, 7344, 7968, 3888, 16248, 6492, 4884, 12108,};
float allwh4[]={7164, 7740, 5652, 6204, 14292, 4212, 2904, 14856, 4656, 3348, 14736, 4656, 3348, 19680, 14736, 4656, 3348, 14736, 4656, 3348, 14856, 4656, 3348, 2904, 11880, 6444, 2328, 10032, 4596, 2328};
GLsizeiptrARB savesize;
void DoModelRec(int size)
{
mods.modelhack=false;
for(mods.index =0; mods.index<200; mods.index++)
{
if(size == allwh[mods.index]) mods.modelhack=true;
if(size == allwh2[mods.index]) mods.modelhack=true;
if(size == allwh3[mods.index]) mods.modelhack=true;
if(size == allwh4[mods.index]) mods.modelhack=true;
}
}
Then In glBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
if(GetAsyncKeyState(VK_NUMPAD1)&1==1) mh=!mh;
if(mods.mh)
{
glEnable(GL_DEPTH_TEST);
savesize=size;
DoModelRec(size);
if(mods.modelhack)
{
glDisable(GL_DEPTH_TEST);
}
}
Have phun :)
Thanks to gsds for the method and mguy for help.
#include <gl/glext.h>
struct models{
public:
bool mh;
bool allwh;
bool allwh2;
bool allwh3;
bool allwh4;
bool modelhack;
int index;
};
models mods;
float allwh[]={12408, 9756, 5340, 3324, 10200, 5532, 3444, 11760, 7092, 5004, 16128, 11184, 6096, 4512, 18144, 13200, 8112, 6528, 17352, 12408, 9756, 5340, 16896, 11952, 9300, 4884, 9660, 4716, 8916, 3828, 10392, 7740, 3324, 10200, 5424, 3324,12216, 7572, 5460};
float allwh2[]={13080, 8304, 6204, 3324, 16896, 11952, 9300, 4884, 8952, 6300, 7824, 16704, 11760, 7092, 5004, 10080, 5436, 3324, 10968, 8316, 3900, 12216, 7440, 5340, 13272, 10620, 6204, 3324, 10200, 5556, 3444, 14520, 9576, 4356, 1884, 12216, 7572, 5460, 11928, 2304, 6840};
float allwh3[]={9108, 3924, 1944, 12984, 8040, 3924, 8904, 4092, 2328, 14376, 5160, 3552, 7164, 5076, 5628, 10212, 5268, 3180, 17856, 8100, 6492, 4884, 12864, 7920, 5832, 6384, 13056, 8112, 6024, 6576, 5460, 3372, 12924, 7344, 7968, 3888, 16248, 6492, 4884, 12108,};
float allwh4[]={7164, 7740, 5652, 6204, 14292, 4212, 2904, 14856, 4656, 3348, 14736, 4656, 3348, 19680, 14736, 4656, 3348, 14736, 4656, 3348, 14856, 4656, 3348, 2904, 11880, 6444, 2328, 10032, 4596, 2328};
GLsizeiptrARB savesize;
void DoModelRec(int size)
{
mods.modelhack=false;
for(mods.index =0; mods.index<200; mods.index++)
{
if(size == allwh[mods.index]) mods.modelhack=true;
if(size == allwh2[mods.index]) mods.modelhack=true;
if(size == allwh3[mods.index]) mods.modelhack=true;
if(size == allwh4[mods.index]) mods.modelhack=true;
}
}
Then In glBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
if(GetAsyncKeyState(VK_NUMPAD1)&1==1) mh=!mh;
if(mods.mh)
{
glEnable(GL_DEPTH_TEST);
savesize=size;
DoModelRec(size);
if(mods.modelhack)
{
glDisable(GL_DEPTH_TEST);
}
}
Have phun :)