HI again
i have this .gsc cod so its work for me but its not perfect because of it active by right click & deactivate by right click again and its not nice
so i want its active by pushing right click and deactivated when release the right click .
pleas if possible edit it for me .
very thanks...
i have this .gsc cod so its work for me but its not perfect because of it active by right click & deactivate by right click again and its not nice
so i want its active by pushing right click and deactivated when release the right click .
pleas if possible edit it for me .
very thanks...
Code:
Toggle()
{
self endon("death");
self notifyOnPlayerCommand( "MOUSE2", "+toggleads_throw" );
self.combatHighOverlay = newClientHudElem( self );
self.combatHighOverlay.x = 0;
self.combatHighOverlay.y = 0;
self.combatHighOverlay.alignX = "left";
self.combatHighOverlay.alignY = "top";
self.combatHighOverlay.horzAlign = "fullscreen";
self.combatHighOverlay.vertAlign = "fullscreen";
for(;;)
{
self waittill("MOUSE2");
self.AutoAimOn = 0;
self.combatHighOverlay FadeOverTime( 1 );
self.combatHighOverlay.alpha = 0;
self waittill("MOUSE2");
self.AutoAimOn = 1;
self.combatHighOverlay setshader ( "combathigh_overlay", 640, 480 );
self.combatHighOverlay FadeOverTime( 1 );
self.combatHighOverlay.alpha = 1;
wait 1;
self.combatHighOverlay setshader ( "combathigh_overlay", 640, 480 );
self.combatHighOverlay FadeOverTime( 1 );
self.combatHighOverlay.alpha = 0;
}
}