View Single Post
  #5  
Old 01-21-2008, 04:36 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
this.overheat_max 100;
  
this.overheat 0;
}

function 
onWeaponFired()
{
  
this.active = !this.active;
  if (
this.active)
  {
     
setTimer);
  }
  if (!
this.active)
  {
     
onCreated()
  }
}
function 
onKeyPressedcodekeyind)
{
  if (
temp.key == "s")
  {
    if (
this.active)
    {
      if (
this.overheat != 100)
      {
        
this.angle getanglevecxplayer.dir), vecyplayer.dir));
        
shootthis.xthis.ythis.zthis.angle00"arrow"NULL);
        
this.overheat +=1;
        
sleep0.1);
      }
    }
  }
}

function 
onTimeOut()
{
  if (
this.overheat >= this.overheat_max)
  {
     
this.active 2;

      
sleep5);

      
this.active 1;
  }

  
setTimer0.05);

__________________
Deep into the Darkness peering...
Reply With Quote