Beispiel #1
0
 //Buttons.ButtonPressed(0, Buttons.R3 & Buttons.L3))
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (NoClip == false)
     {
         if (Buttons.ButtonPressed(0, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x02 });
             NoClip = true;
         }
         if (Buttons.ButtonPressed(1, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x02 });
             NoClip = true;
         }
         if (Buttons.ButtonPressed(2, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x02 });
             NoClip = true;
         }
         if (Buttons.ButtonPressed(3, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x02 });
             NoClip = true;
         }
     }
     else if (NoClip == true)
     {
         if (Buttons.ButtonPressed(0, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x00 });
             NoClip = false;
         }
         if (Buttons.ButtonPressed(1, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x00 });
             NoClip = false;
         }
         if (Buttons.ButtonPressed(2, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x00 });
             NoClip = false;
         }
         if (Buttons.ButtonPressed(3, Buttons.R3))
         {
             PS3.SetMemory(0xF47C9F + ((uint)(Players.SelectedIndex * 0x3700)), new byte[] { 0x00 });
             NoClip = false;
         }
     }
 }