Acidmods

Console Modding------ ( Here you can talk about your favorite Consoles ) => XBOX 360 => 360 Controllers / 360 Rapid Fire Controllers => Topic started by: taylorclark on August 07, 2009, 07:24:33 AM

Title: Gow2 cao rate of fire.
Post by: taylorclark on August 07, 2009, 07:24:33 AM
Hello,
I'm creating my own rapid fire, right now I'm using the arduino platform, but once the code is finished i plan on taking the chip out of the arduino and putting it into the controller by itself. I've got most of the bugs worked out of the code, notice it's only one trigger right now. I've still got to finish connecting things inside the controller, and add a few small things to the code, but the code proof of concept works quite well. To create the pulses, I'm actually using pwm, suppled by the arduino. So far, the rapid fire works very well in halo 3, but it doesn't do anything at all in gears. Does anyone know the cap rate of fire for gow2? Notice in the code there are three different modes right now, two are working, one is simply a placeholder for burst or whatever i want. Thanks for the help!

heres the code
Code: [Select]

int switchPin = 3;     
int rledPin = 13;
int rt = 0;
int val1;
int val;                 
int val2;                   
int buttonState;   
int rts = 10;

int lightMode = 0;       

void setup() {
  pinMode(switchPin, INPUT);
  pinMode(rt, INPUT);
  pinMode(rledPin, OUTPUT);
 
  Serial.begin(9600);       
  buttonState = digitalRead(switchPin); 
}

void loop(){
  val = digitalRead(switchPin);     
  delay(10);                         
  val2 = digitalRead(switchPin);     
  if (val == val2) {                 
    if (val != buttonState) {         
      if (val == LOW) {               
        if (lightMode == 0) {         
          lightMode = 1;             
        } else {
          if (lightMode == 1) {       
            lightMode = 2;             
          } else {
            if (lightMode == 2) {     
              lightMode = 3;         
            } else {
  if (lightMode == 3) {
                lightMode = 0;     
              }
}
          }
        }
      }
    }
    buttonState = val;           
  }

 
  if (lightMode == 0) {
    digitalWrite(rledPin, LOW);
  }

  if (lightMode == 1) {
    digitalWrite(rledPin, HIGH);
     val1 = analogRead(rt);
   if (val1 >= 230) {
     analogWrite(rts, 75);
     delay(10);
   }
  }

  if (lightMode == 2) {
    digitalWrite(rledPin, HIGH);
    delay(100);
    digitalWrite(rledPin, LOW);
    delay(100);
         val1 = analogRead(rt);
   if (val1 >= 230) {
     analogWrite(rts, 2);
     delay(10);
   }
  }
  if (lightMode == 3)  {
   Serial.println("mode 3");
  }   
}


 
Title: Re: Gow2 cao rate of fire.
Post by: KingMike_OS on August 07, 2009, 09:54:01 AM
Halo 3 speed is too fast for GOW 2 & 1 ..

need to be around 6 SPS no greater than 6.67 SPS
Title: Re: Gow2 cao rate of fire.
Post by: Modded Matt on August 07, 2009, 11:01:06 AM
thanks mike, good to have you back
Title: Re: Gow2 cao rate of fire.
Post by: taylorclark on August 07, 2009, 01:33:30 PM
thanks! Ill let you know if i get it figured out

Post Merge: August 07, 2009, 09:07:24 PM
Sorry for the double post, but i got it working perfectly. It clears through a pistol clip on gears 2 in about 2 seconds! :D
Title: Re: Gow2 cao rate of fire.
Post by: mhawk134 on August 09, 2009, 03:42:16 AM
for this what hex value did you use?

Hawk
Title: Re: Gow2 cao rate of fire.
Post by: spurgurgle on August 09, 2009, 09:21:48 AM
i find that i cna use my programmable speed kit set to 7.7 sps on gears 2
SimplePortal 2.3.5 © 2008-2012, SimplePortal