Script Call to check if Zandronum is in Software or OpenGL
-
TheRPGLPer
- Posts: 25
- Joined: Sat Aug 04, 2012 12:30 am
- Location: La Follette, TN
- Contact:
Script Call to check if Zandronum is in Software or OpenGL
Is there a script call I can use to check if the client (In this case, Zandronum), is using Software or Hardware mode?
My Website
If you want to use my WADs in your server, this is the global download link:
http://redt0xic.webuda.com/wads/
If you want to use my WADs in your server, this is the global download link:
http://redt0xic.webuda.com/wads/
RE: Script Call to check if Zandronum is in Software or OpenGL
Code: Select all
if (GetCVar("vid_renderer") != 1)
{
blah blah;
}
Last edited by agaures on Wed Jun 18, 2014 8:20 pm, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
- ibm5155
- Addicted to Zandronum
- Posts: 1641
- Joined: Tue Jun 05, 2012 9:32 pm
- Location: Somewhere, over the rainbow
RE: Script Call to check if Zandronum is in Software or OpenGL
#define OPENGL_PLAYER 1
#define SOFTWARE_PLAYER 0
if(getplayerrender()==SOFTWARE_PLAYER){
...
}else{
...//opengl dud
}
function int GetPlayerRender(void) {return GetCVar ("vid_renderer");}
#define SOFTWARE_PLAYER 0
if(getplayerrender()==SOFTWARE_PLAYER){
...
}else{
...//opengl dud
}
function int GetPlayerRender(void) {return GetCVar ("vid_renderer");}
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!
<this post is proof of "Decline">
-
TheRPGLPer
- Posts: 25
- Joined: Sat Aug 04, 2012 12:30 am
- Location: La Follette, TN
- Contact:
RE: Script Call to check if Zandronum is in Software or OpenGL
Thank you guys!
My Website
If you want to use my WADs in your server, this is the global download link:
http://redt0xic.webuda.com/wads/
If you want to use my WADs in your server, this is the global download link:
http://redt0xic.webuda.com/wads/
RE: Script Call to check if Zandronum is in Software or OpenGL
One note, the script has to be clientside in order to work properly.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔