Page 1 of 1
Script Call to check if Zandronum is in Software or OpenGL
Posted: Wed Jun 18, 2014 8:09 pm
by TheRPGLPer
Is there a script call I can use to check if the client (In this case, Zandronum), is using Software or Hardware mode?
RE: Script Call to check if Zandronum is in Software or OpenGL
Posted: Wed Jun 18, 2014 8:20 pm
by agaures
Code: Select all
if (GetCVar("vid_renderer") != 1)
{
blah blah;
}
RE: Script Call to check if Zandronum is in Software or OpenGL
Posted: Wed Jun 18, 2014 8:20 pm
by ibm5155
#define OPENGL_PLAYER 1
#define SOFTWARE_PLAYER 0
if(getplayerrender()==SOFTWARE_PLAYER){
...
}else{
...//opengl dud
}
function int GetPlayerRender(void) {return GetCVar ("vid_renderer");}
RE: Script Call to check if Zandronum is in Software or OpenGL
Posted: Wed Jun 18, 2014 9:01 pm
by TheRPGLPer
Thank you guys!
RE: Script Call to check if Zandronum is in Software or OpenGL
Posted: Thu Jun 19, 2014 3:01 pm
by Klofkac
One note, the script has to be clientside in order to work properly.