/* ================== SCR_Init ================== */ void SCR_Init (void) { Cvar_RegisterVariable (&scr_fov); Cvar_RegisterVariable (&scr_viewsize); Cvar_RegisterVariable (&scr_conspeed); Cvar_RegisterVariable (&scr_showram); Cvar_RegisterVariable (&scr_showturtle); Cvar_RegisterVariable (&scr_showpause); Cvar_RegisterVariable (&scr_centertime); Cvar_RegisterVariable (&scr_printspeed); Cvar_RegisterVariable (&scr_conheight); Cvar_RegisterVariable (&r_dithering); Cvar_RegisterVariable (&scr_coloredtext); Cvar_RegisterVariable (&crosshairalpha); Cvar_RegisterVariable (&crosshairsize); Cvar_RegisterVariable (&crosshaircolor); // // register our commands // Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = qtrue; }
/* ================== SCR_Init ================== */ void SCR_Init (void) { Cvar_RegisterVariable (&scr_fov); Cvar_RegisterVariable (&scr_viewsize); Cvar_RegisterVariable (&scr_conspeed); Cvar_RegisterVariable (&scr_showram); Cvar_RegisterVariable (&scr_showturtle); Cvar_RegisterVariable (&scr_showpause); Cvar_RegisterVariable (&scr_centertime); Cvar_RegisterVariable (&scr_printspeed); Cvar_RegisterVariable (&gl_triplebuffer); // // register our commands // Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = true; }
/* ================== SCR_Init ================== */ void SCR_Init (void) { Cvar_RegisterVariable (&scr_fov, NULL); Cvar_RegisterVariable (&scr_viewsize, NULL); Cvar_RegisterVariable (&scr_weaponsize, NULL); Cvar_RegisterVariable (&scr_weaponfov, NULL); Cvar_RegisterVariable (&scr_conspeed, NULL); Cvar_RegisterVariable (&scr_showfps, NULL); Cvar_RegisterVariable (&scr_showstats, NULL); Cvar_RegisterVariable (&scr_showturtle, NULL); Cvar_RegisterVariable (&scr_showpause, NULL); Cvar_RegisterVariable (&scr_centertime, NULL); Cvar_RegisterVariable (&scr_printspeed, NULL); Cvar_RegisterVariable (&gl_triplebuffer, NULL); scr_initialized = true; Con_Printf ("Screen initialized\n"); // // register our commands // Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); }
/* ================== SCR_Init ================== */ void SCR_Init (void) { scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); // CAPTURE <*****@*****.**> CaptureHelper_Init(); scr_initialized = true; }
/* =============== Draw_LoadPics -- johnfitz =============== */ void Draw_LoadPics (void) { byte *data; src_offset_t offset; data = (byte *) W_GetLumpName ("conchars"); if (!data) Sys_Error ("Draw_LoadPics: couldn't load conchars"); offset = (src_offset_t)data - (src_offset_t)wad_base; char_texture = TexMgr_LoadImage (NULL, WADFILENAME":conchars", 128, 128, SRC_INDEXED, data, WADFILENAME, offset, TEXPREF_ALPHA | TEXPREF_NEAREST | TEXPREF_NOPICMIP | TEXPREF_CONCHARS); draw_disc = Draw_PicFromWad ("disc"); draw_backtile = Draw_PicFromWad ("backtile"); }
/* ================== SCR_Init ================== */ void SCR_Init (void) { // // register our commands // Cmd_AddCommand ("screenshot", quake::screen::screenshot); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = true; }
void SCR_Init (void) { // // register our commands // Cmd_AddCommand ("screenshot", SCR_ScreenShot_f, "Take a screenshot and write it as qfxxx.tga in the current directory"); Cmd_AddCommand ("snap", SCR_RSShot_f, "Take a screenshot and upload it to the server"); Cmd_AddCommand ("sizeup", SCR_SizeUp_f, "Increase the size of the screen"); Cmd_AddCommand ("sizedown", SCR_SizeDown_f, "Decrease the size of the screen"); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = true; }
void SCR_Init (void) { // // register our commands // Cmd_AddCommand ("screenshot", SCR_ScreenShot_f, "Take a screenshot, saves as qfxxx.tga in the current directory"); Cmd_AddCommand ("snap", SCR_RSShot_f, "Send a screenshot to someone"); Cmd_AddCommand ("sizeup", SCR_SizeUp_f, "Increases the screen size"); Cmd_AddCommand ("sizedown", SCR_SizeDown_f, "Decreases the screen size"); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = true; }
void SCR_Init(void) { CVar::registerCVar(&scr_fov); CVar::registerCVar(&scr_viewsize); CVar::registerCVar(&scr_conspeed); CVar::registerCVar(&scr_showturtle); CVar::registerCVar(&scr_showpause); CVar::registerCVar(&scr_centertime); CVar::registerCVar(&scr_printspeed); CVar::registerCVar(&gl_triplebuffer); // register our commands Cmd::addCmd("screenshot", SCR_ScreenShot_f); Cmd::addCmd("sizeup", SCR_SizeUp_f); Cmd::addCmd("sizedown", SCR_SizeDown_f); scr_net = Draw_PicFromWad("net"); scr_turtle = Draw_PicFromWad("turtle"); // CAPTURE <*****@*****.**> CaptureHelper_Init(); scr_initialized = true; }
/* ================== SCR_Init ================== */ void SCR_Init (void) { // 2001-09-18 New cvar system by Maddes (Init) start /* scr_fov = Cvar_Get ("fov", "90", CVAR_ORIGINAL); scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE|CVAR_ORIGINAL); scr_conspeed = Cvar_Get ("scr_conspeed", "300", CVAR_ORIGINAL); scr_showram = Cvar_Get ("showram", "1", CVAR_ORIGINAL); scr_showturtle = Cvar_Get ("showturtle", "0", CVAR_ORIGINAL); scr_showpause = Cvar_Get ("showpause", "1", CVAR_ORIGINAL); scr_centertime = Cvar_Get ("scr_centertime", "2", CVAR_ORIGINAL); scr_printspeed = Cvar_Get ("scr_printspeed", "8", CVAR_ORIGINAL); gl_triplebuffer = Cvar_Get ("gl_triplebuffer", "1", CVAR_ARCHIVE|CVAR_ORIGINAL); // 2000-01-12 Variable console height by Fett start scr_conheight = Cvar_Get ("scr_conheight", "0.5", CVAR_ARCHIVE); Cvar_SetRangecheck (scr_conheight, Cvar_RangecheckFloat, 0, 1); Cvar_Set(scr_conheight, scr_conheight->string); // do rangecheck // 2000-01-12 Variable console height by Fett end */ // 2001-09-18 New cvar system by Maddes (Init) end // // register our commands // Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); scr_initialized = true; }
void SCR_Init (void) { Cvar_RegisterVariable (&default_fov, CL_Default_fov_f); Cvar_RegisterVariable (&scr_fov, CL_Fov_f); Cvar_RegisterVariable (&scr_viewsize, NULL); Cvar_RegisterVariable (&scr_conspeed, NULL); Cvar_RegisterVariable (&scr_showram, NULL); Cvar_RegisterVariable (&scr_showturtle, NULL); Cvar_RegisterVariable (&scr_showpause, NULL); Cvar_RegisterVariable (&scr_centertime, NULL); Cvar_RegisterVariable (&scr_printspeed, NULL); #ifdef GLQUAKE Cvar_RegisterVariable (&gl_triplebuffer, NULL); #endif Cvar_RegisterVariable (&pq_drawfps, NULL); // JPG - draw frames per second Cvar_RegisterVariable (&show_speed, NULL); // Baker 3.67 // register our commands Cmd_AddCommand ("screenshot",SCR_ScreenShot_f); Cmd_AddCommand ("sizeup",SCR_SizeUp_f); Cmd_AddCommand ("sizedown",SCR_SizeDown_f); scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); #ifdef SUPPORTS_AVI_CAPTURE Movie_Init (); #endif scr_initialized = true; }
/* ================== SCR_LoadPics -- johnfitz ================== */ void SCR_LoadPics (void) { scr_ram = Draw_PicFromWad ("ram"); scr_net = Draw_PicFromWad ("net"); scr_turtle = Draw_PicFromWad ("turtle"); }
/* =============== Sbar_Init =============== */ void Sbar_Init(void) { int i; for (i = 0; i < 10; i++) { sb_nums[0][i] = Draw_PicFromWad(va("num_%i", i)); sb_nums[1][i] = Draw_PicFromWad(va("anum_%i", i)); } sb_nums[0][10] = Draw_PicFromWad("num_minus"); sb_nums[1][10] = Draw_PicFromWad("anum_minus"); sb_colon = Draw_PicFromWad("num_colon"); sb_slash = Draw_PicFromWad("num_slash"); sb_weapons[0][0] = Draw_PicFromWad("inv_shotgun"); sb_weapons[0][1] = Draw_PicFromWad("inv_sshotgun"); sb_weapons[0][2] = Draw_PicFromWad("inv_nailgun"); sb_weapons[0][3] = Draw_PicFromWad("inv_snailgun"); sb_weapons[0][4] = Draw_PicFromWad("inv_rlaunch"); sb_weapons[0][5] = Draw_PicFromWad("inv_srlaunch"); sb_weapons[0][6] = Draw_PicFromWad("inv_lightng"); sb_weapons[1][0] = Draw_PicFromWad("inv2_shotgun"); sb_weapons[1][1] = Draw_PicFromWad("inv2_sshotgun"); sb_weapons[1][2] = Draw_PicFromWad("inv2_nailgun"); sb_weapons[1][3] = Draw_PicFromWad("inv2_snailgun"); sb_weapons[1][4] = Draw_PicFromWad("inv2_rlaunch"); sb_weapons[1][5] = Draw_PicFromWad("inv2_srlaunch"); sb_weapons[1][6] = Draw_PicFromWad("inv2_lightng"); for (i = 0; i < 5; i++) { sb_weapons[2 + i][0] = Draw_PicFromWad(va("inva%i_shotgun", i + 1)); sb_weapons[2 + i][1] = Draw_PicFromWad(va("inva%i_sshotgun", i + 1)); sb_weapons[2 + i][2] = Draw_PicFromWad(va("inva%i_nailgun", i + 1)); sb_weapons[2 + i][3] = Draw_PicFromWad(va("inva%i_snailgun", i + 1)); sb_weapons[2 + i][4] = Draw_PicFromWad(va("inva%i_rlaunch", i + 1)); sb_weapons[2 + i][5] = Draw_PicFromWad(va("inva%i_srlaunch", i + 1)); sb_weapons[2 + i][6] = Draw_PicFromWad(va("inva%i_lightng", i + 1)); } sb_ammo[0] = Draw_PicFromWad("sb_shells"); sb_ammo[1] = Draw_PicFromWad("sb_nails"); sb_ammo[2] = Draw_PicFromWad("sb_rocket"); sb_ammo[3] = Draw_PicFromWad("sb_cells"); sb_armor[0] = Draw_PicFromWad("sb_armor1"); sb_armor[1] = Draw_PicFromWad("sb_armor2"); sb_armor[2] = Draw_PicFromWad("sb_armor3"); sb_items[0] = Draw_PicFromWad("sb_key1"); sb_items[1] = Draw_PicFromWad("sb_key2"); sb_items[2] = Draw_PicFromWad("sb_invis"); sb_items[3] = Draw_PicFromWad("sb_invuln"); sb_items[4] = Draw_PicFromWad("sb_suit"); sb_items[5] = Draw_PicFromWad("sb_quad"); sb_sigil[0] = Draw_PicFromWad("sb_sigil1"); sb_sigil[1] = Draw_PicFromWad("sb_sigil2"); sb_sigil[2] = Draw_PicFromWad("sb_sigil3"); sb_sigil[3] = Draw_PicFromWad("sb_sigil4"); sb_faces[4][0] = Draw_PicFromWad("face1"); sb_faces[4][1] = Draw_PicFromWad("face_p1"); sb_faces[3][0] = Draw_PicFromWad("face2"); sb_faces[3][1] = Draw_PicFromWad("face_p2"); sb_faces[2][0] = Draw_PicFromWad("face3"); sb_faces[2][1] = Draw_PicFromWad("face_p3"); sb_faces[1][0] = Draw_PicFromWad("face4"); sb_faces[1][1] = Draw_PicFromWad("face_p4"); sb_faces[0][0] = Draw_PicFromWad("face5"); sb_faces[0][1] = Draw_PicFromWad("face_p5"); sb_face_invis = Draw_PicFromWad("face_invis"); sb_face_invuln = Draw_PicFromWad("face_invul2"); sb_face_invis_invuln = Draw_PicFromWad("face_inv2"); sb_face_quad = Draw_PicFromWad("face_quad"); Cmd_AddCommand("+showscores", Sbar_ShowScores); Cmd_AddCommand("-showscores", Sbar_DontShowScores); Cmd_AddCommand("+showteamscores", Sbar_ShowTeamScores); Cmd_AddCommand("-showteamscores", Sbar_DontShowTeamScores); sb_sbar = Draw_PicFromWad("sbar"); sb_ibar = Draw_PicFromWad("ibar"); sb_scorebar = Draw_PicFromWad("scorebar"); }
/* =============== Sbar_Init =============== */ void Sbar_Init (void) { int i; Cvar_RegisterVariableWithCallback(&sbar_scale, CheckSbarScale); //qb: added // mankrip - begin Cvar_RegisterVariable (&sbar_show_scores); Cvar_RegisterVariable (&sbar_show_ammolist); Cvar_RegisterVariable (&sbar_show_weaponlist); Cvar_RegisterVariable (&sbar_show_keys); Cvar_RegisterVariable (&sbar_show_runes); Cvar_RegisterVariable (&sbar_show_powerups); Cvar_RegisterVariable (&sbar_show_armor); Cvar_RegisterVariable (&sbar_show_health); Cvar_RegisterVariable (&sbar_show_ammo); Cvar_RegisterVariable (&sbar_show_bg); Cvar_RegisterVariable (&sbar); Cvar_RegisterVariable (&crosshair_color); Cvar_RegisterVariable (&crosshair_custom16); //qb: custom color Cvar_RegisterVariable (&crosshair_custom17); //qb: custom color Cvar_RegisterVariableWithCallback (&sbar, Sbar_SizeScreen); // mankrip - end for (i=0 ; i<10 ; i++) { sb_nums[0][i] = Draw_PicFromWad (va("num_%i",i)); sb_nums[1][i] = Draw_PicFromWad (va("anum_%i",i)); } sb_nums[0][10] = Draw_PicFromWad ("num_minus"); sb_nums[1][10] = Draw_PicFromWad ("anum_minus"); sb_colon = Draw_PicFromWad ("num_colon"); sb_slash = Draw_PicFromWad ("num_slash"); sb_weapons[0][0] = Draw_PicFromWad ("inv_shotgun"); sb_weapons[0][1] = Draw_PicFromWad ("inv_sshotgun"); sb_weapons[0][2] = Draw_PicFromWad ("inv_nailgun"); sb_weapons[0][3] = Draw_PicFromWad ("inv_snailgun"); sb_weapons[0][4] = Draw_PicFromWad ("inv_rlaunch"); sb_weapons[0][5] = Draw_PicFromWad ("inv_srlaunch"); sb_weapons[0][6] = Draw_PicFromWad ("inv_lightng"); sb_weapons[1][0] = Draw_PicFromWad ("inv2_shotgun"); sb_weapons[1][1] = Draw_PicFromWad ("inv2_sshotgun"); sb_weapons[1][2] = Draw_PicFromWad ("inv2_nailgun"); sb_weapons[1][3] = Draw_PicFromWad ("inv2_snailgun"); sb_weapons[1][4] = Draw_PicFromWad ("inv2_rlaunch"); sb_weapons[1][5] = Draw_PicFromWad ("inv2_srlaunch"); sb_weapons[1][6] = Draw_PicFromWad ("inv2_lightng"); for (i=0 ; i<5 ; i++) { sb_weapons[2+i][0] = Draw_PicFromWad (va("inva%i_shotgun",i+1)); sb_weapons[2+i][1] = Draw_PicFromWad (va("inva%i_sshotgun",i+1)); sb_weapons[2+i][2] = Draw_PicFromWad (va("inva%i_nailgun",i+1)); sb_weapons[2+i][3] = Draw_PicFromWad (va("inva%i_snailgun",i+1)); sb_weapons[2+i][4] = Draw_PicFromWad (va("inva%i_rlaunch",i+1)); sb_weapons[2+i][5] = Draw_PicFromWad (va("inva%i_srlaunch",i+1)); sb_weapons[2+i][6] = Draw_PicFromWad (va("inva%i_lightng",i+1)); } sb_ammo[0] = Draw_PicFromWad ("sb_shells"); sb_ammo[1] = Draw_PicFromWad ("sb_nails"); sb_ammo[2] = Draw_PicFromWad ("sb_rocket"); sb_ammo[3] = Draw_PicFromWad ("sb_cells"); sb_armor[0] = Draw_PicFromWad ("sb_armor1"); sb_armor[1] = Draw_PicFromWad ("sb_armor2"); sb_armor[2] = Draw_PicFromWad ("sb_armor3"); sb_items[0] = Draw_PicFromWad ("sb_key1"); sb_items[1] = Draw_PicFromWad ("sb_key2"); sb_items[2] = Draw_PicFromWad ("sb_invis"); sb_items[3] = Draw_PicFromWad ("sb_invuln"); sb_items[4] = Draw_PicFromWad ("sb_suit"); sb_items[5] = Draw_PicFromWad ("sb_quad"); sb_sigil[0] = Draw_PicFromWad ("sb_sigil1"); sb_sigil[1] = Draw_PicFromWad ("sb_sigil2"); sb_sigil[2] = Draw_PicFromWad ("sb_sigil3"); sb_sigil[3] = Draw_PicFromWad ("sb_sigil4"); sb_faces[4][0] = Draw_PicFromWad ("face1"); sb_faces[4][1] = Draw_PicFromWad ("face_p1"); sb_faces[3][0] = Draw_PicFromWad ("face2"); sb_faces[3][1] = Draw_PicFromWad ("face_p2"); sb_faces[2][0] = Draw_PicFromWad ("face3"); sb_faces[2][1] = Draw_PicFromWad ("face_p3"); sb_faces[1][0] = Draw_PicFromWad ("face4"); sb_faces[1][1] = Draw_PicFromWad ("face_p4"); sb_faces[0][0] = Draw_PicFromWad ("face5"); sb_faces[0][1] = Draw_PicFromWad ("face_p5"); sb_face_invis = Draw_PicFromWad ("face_invis"); sb_face_invuln = Draw_PicFromWad ("face_invul2"); sb_face_invis_invuln = Draw_PicFromWad ("face_inv2"); sb_face_quad = Draw_PicFromWad ("face_quad"); Cmd_AddCommand ("+showscores", Sbar_ShowScores); Cmd_AddCommand ("-showscores", Sbar_DontShowScores); sb_sbar = Draw_PicFromWad ("sbar"); sb_ibar = Draw_PicFromWad ("ibar"); sb_scorebar = Draw_PicFromWad ("scorebar"); //MED 01/04/97 added new hipnotic weapons if (hipnotic) { hsb_weapons[0][0] = Draw_PicFromWad ("inv_laser"); hsb_weapons[0][1] = Draw_PicFromWad ("inv_mjolnir"); hsb_weapons[0][2] = Draw_PicFromWad ("inv_gren_prox"); hsb_weapons[0][3] = Draw_PicFromWad ("inv_prox_gren"); hsb_weapons[0][4] = Draw_PicFromWad ("inv_prox"); hsb_weapons[1][0] = Draw_PicFromWad ("inv2_laser"); hsb_weapons[1][1] = Draw_PicFromWad ("inv2_mjolnir"); hsb_weapons[1][2] = Draw_PicFromWad ("inv2_gren_prox"); hsb_weapons[1][3] = Draw_PicFromWad ("inv2_prox_gren"); hsb_weapons[1][4] = Draw_PicFromWad ("inv2_prox"); for (i=0 ; i<5 ; i++) { hsb_weapons[2+i][0] = Draw_PicFromWad (va("inva%i_laser",i+1)); hsb_weapons[2+i][1] = Draw_PicFromWad (va("inva%i_mjolnir",i+1)); hsb_weapons[2+i][2] = Draw_PicFromWad (va("inva%i_gren_prox",i+1)); hsb_weapons[2+i][3] = Draw_PicFromWad (va("inva%i_prox_gren",i+1)); hsb_weapons[2+i][4] = Draw_PicFromWad (va("inva%i_prox",i+1)); } hsb_items[0] = Draw_PicFromWad ("sb_wsuit"); hsb_items[1] = Draw_PicFromWad ("sb_eshld"); } if (rogue) { rsb_invbar[0] = Draw_PicFromWad ("r_invbar1"); rsb_invbar[1] = Draw_PicFromWad ("r_invbar2"); rsb_weapons[0] = Draw_PicFromWad ("r_lava"); rsb_weapons[1] = Draw_PicFromWad ("r_superlava"); rsb_weapons[2] = Draw_PicFromWad ("r_gren"); rsb_weapons[3] = Draw_PicFromWad ("r_multirock"); rsb_weapons[4] = Draw_PicFromWad ("r_plasma"); rsb_items[0] = Draw_PicFromWad ("r_shield1"); rsb_items[1] = Draw_PicFromWad ("r_agrav1"); // PGM 01/19/97 - team color border rsb_teambord = Draw_PicFromWad ("r_teambord"); // PGM 01/19/97 - team color border rsb_ammo[0] = Draw_PicFromWad ("r_ammolava"); rsb_ammo[1] = Draw_PicFromWad ("r_ammomulti"); rsb_ammo[2] = Draw_PicFromWad ("r_ammoplasma"); } Draw_CachePic ("gfx/complete.lmp"); // mankrip Draw_CachePic ("gfx/inter.lmp"); // mankrip }