Script Call to check if Zandronum is in Software or OpenGL

Discuss all aspects related to modding Zandronum here.
Post Reply
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

#1

Post by TheRPGLPer » Wed Jun 18, 2014 8:09 pm

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/

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Script Call to check if Zandronum is in Software or OpenGL

#2

Post by agaures » Wed Jun 18, 2014 8:20 pm

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

User avatar
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

#3

Post by ibm5155 » Wed Jun 18, 2014 8:20 pm

#define OPENGL_PLAYER 1
#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">

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

#4

Post by TheRPGLPer » Wed Jun 18, 2014 9:01 pm

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/

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: Script Call to check if Zandronum is in Software or OpenGL

#5

Post by Klofkac » Thu Jun 19, 2014 3:01 pm

One note, the script has to be clientside in order to work properly.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

Post Reply