Inside3D!



QuakeC Pastebin Is Down For The Count, BBL

Posted by Electro on 2008/04/29

.float scope_zoomed;


if (self.weapon == IT_SHOTGUN)
{
	if (self.impulse == 2)
	{
		self.scopebutton_count = self.scopebutton_count + 1;

		if (self.scopebutton_time > time)
		{
			if ( (self.scopebutton_count == 2) && (!self.scope_zoomed) )
			{
				self.scopebutton_count = 0;
				self.scope_zoomed = TRUE;
				stuffcmd(self, \"fov 30\\n\");
			}
			else if ( (self.scopebutton_count == 3) && (self.scope_zoomed) )
			{
				self.scopebutton_count = 0;
				self.scope_zoomed = FALSE;
				stuffcmd(self, \"fov 101\\n\");
			}
		}
		else
			self.scopebutton_count = 0;
		self.scopebutton_time = time + 0.1;
	}
}
Username
Recent Posts Code
    (By clicking this you are making your code public)


Generated in 0.01669s
Copyright 1996-2005 Inside3D.com