View Single Post
  #1  
Old 11-25-2014, 08:04 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Light/Weather/Particle Toggle Options

This can be it's own weapon script or be added to any weapon really.

PHP Code:
//#CLIENTSIDE

function OptGeneralPane2D.onShow() {
  
with (OptGeneralPane2D) {
    new 
OptOpenGLToggle2D("OptLightsToggle2D") {
      
OptFilenameScanToggle2D.32;
      
188 4;
      
text "Light Effects";
      
checked lighteffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptWeatherToggle2D") {
      
OptFilenameScanToggle2D.80;
      
188 4;
      
text "Weather Effects";
      
checked weathereffectsenabled;
    }
    new 
OptOpenGLToggle2D("OptParticlesToggle2D") {
      
OptFilenameScanToggle2D.32;
      
OptAutomappingToggle2D.4;
      
text "Particle Effects";
      
checked particleeffectsenabled;
    }
  }
}

function 
OptLightsToggle2D.onAction() {
  
lighteffectsenabled OptLightsToggle2D.checked;
}

function 
OptWeatherToggle2D.onAction() {
  
weathereffectsenabled OptWeatherToggle2D.checked;
}

function 
OptParticlesToggle2D.onAction() {
  
particleeffectsenabled OptParticlesToggle2D.checked;

__________________
Quote:
Reply With Quote