Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hotkey
#1
Code:
VariableZoom()
{
    self endon("death");
    self endon("disconnect");
    if(isdefined(self.zoomtext))
        self.zoomtext destroy();
    self.zoom = 60;
    originalzoom = getDvarInt("cg_fovmin");
    while(1)
    {
        if(self ADSButtonPressed() && WeaponClass(self getCurrentWeapon()) == "sniper")
        {
            if(!isdefined(self.zoomtext))
            {
                self.zoomtext = self createfontstring("default",1.3,self);
                self.zoomtext setpoint("","",0,-195);
                self.zoomtext settext("Press [{+activate}] to increase zoom and Press [{+frag}] to reduce zoom");
                self.zoomtext.color = (1,1,1);
                self.zoomtext.sort = 15;
                self.zoomtext.alpha = 1;
                self.zoomtext.foreground = true;
                self.zoomtext.glowcolor = (0,1,0);
                self.zoomtext.glowalpha = 1;
                self.zoomtext setparent(level.uiParent);
                self.zoomtext.hideWhenInMenu = false;
                self.zoomtext.archived = false;
            }
            if(self UseButtonPressed())
                self.zoom --;
            if(self FragButtonPressed())
                self.zoom ++;
            if(self.zoom > 60)
                self.zoom = 60;
            self setClientDvar("cg_fovmin",self.zoom);
        }
        else
        {
            self.zoomtext destroy();
            self setClientDvar("cg_fovmin",originalzoom);    
        }            
    wait 0.05;
    }
}

how to replace the {+frag} on the {MWHEELDOWN}???
Reply

#2
not possible.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] hotkey Bind and execute iwd files in main folder of game! raminr63 10 5,524 10-10-2012, 16:28
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.