All pastes #2119414 Raw Edit

Stuff

public c v1 · immutable
#2119414 ·published 2012-02-18 04:12 UTC
rendered paste body
vector icon_scale;  void(string icontype) icon_scaler =	{	//local vector medal_pos;		if(icon_scale_y > 20)		icon_scale_y = 20;	if(icon_scale_x > 20)		icon_scale_x = 20;	icon_scale_x += 0.5;	icon_scale_y += 0.5;			drawpic('20 280', "gfx/medback.png", '60 60', '1 1 1', 0.4, 0);	if(icontype == "headshot")		drawpic('40 300', "gfx/headshot.png", icon_scale, '1 1 1', 1, 0);	if(icontype == "assassin")		drawpic('40 300', "gfx/assassin.png", icon_scale, '1 1 1', 1, 0);	if(icontype == "stickied")		drawpic('40 300', "gfx/stuck.png", icon_scale, '1 1 1', 1, 0);	if(icontype == "doublekill")		drawpic('40 300', "gfx/double.png", icon_scale, '1 1 1', 1, 0);	}void CSQC_UpdateView (float width, float height, float menushown) {   // make a function to update any local resolution stuff and call it here.. We'd do this for resolution independent locations to render pictures or things.         clearscene(); 		// CSQC builtin to clear the scene of all entities / reset our view properties      // update our view location for our camera such as a chase camera function here.. Lets do this by using some CSQC global definitions of our local player's simulated origin and our angles	//setproperty(VF_ORIGIN, pmove_org); //pmove_org is a CSQC definition (global vector) of our simulated player location, it is filled in every frame 	//setproperty(VF_CL_VIEWANGLES, input_angles); // input_angles is a CSQC definition (global vector) of our angles as set by our mouse and stuff, we want our view angles to match this!   		setproperty(VF_DRAWWORLD, 1); 		// we want to draw our world!	setproperty(VF_DRAWCROSSHAIR, 1);		 // we want to draw our crosshair!	addentities(MASK_NORMAL | MASK_ENGINE | MASK_ENGINEVIEWMODELS); 		// add entities with these rendermask field var's to our view	renderscene(); 		// render that puppy to our screen, 	if(getstati(STAT_HEALTH) > 0)		InitHUD();  // render hud using builtins like drawstring, drawpic, and any of that fun stuff here!  	if(getstati(STAT_HASMEDAL) == 0)		icon_scale = '1 1';	if(getstati(STAT_HEADMEDAL) == 1)		icon_scaler("headshot");	if(getstati(STAT_ASSMEDAL) == 1)		icon_scaler("assassin");	if(getstati(STAT_STICKMEDAL) == 1)		icon_scaler("stickied");	//if(getstati(STAT_SPREEKILLS) == 2)	//	icon_scaler("doublekill");  }