1. Hello Guest! Welcome to the Official ConsoleCrunch website. To help support our site, please disable Adblock and purchase a Premium Upgrade HERE! to get exclusive access to our hidden content.

    We hope that you enjoy your time with us! Thank you.

  2. Please DO NOT repost Console ID's, check if they are posted first!
    Dismiss Notice
  3. Want to Advertise Here? Contact @Younis
  4. Visit our dev section, where you can get help with your code, view examples, and ask for help from those with experience. We are currently after more developers, so now's your time to shine!
    Dismiss Notice
  5. Read Rules Before Posting Post Virus Scans with every program.
    Dismiss Notice

PS3 C# Bo2 1.19 Loop Directions

Discussion in 'Call of Duty Black Ops 2 General' started by Elite_Modz, Jul 31, 2016.

  1. Elite_Modz

    Elite_Modz Active Poster Retired Staff Active Member Console ID Poster

    Joined:
    Dec 19, 2014
    Messages:
    519
    Likes Received:
    364
    Trophy Points:
    133
    Start:
    Code:
    timer14.Start();
    
    Stop:
    Code:
    timer14.Stop();
    
    Add this under "public static PS3API PS3 = new PS3API();":
    Code:
    private static int Countername1;
    
    Add this under "InitializeComponent();":
    Code:
    Countername1 = 0;
    
    Loop Code(Put this in a timer):
    Code:
    try
      {
      Countername1++;
      switch (Countername1)
      {
      case 1:
      {
      byte[] bytes = Encoding.ASCII.GetBytes("[{+forward}]");
      Array.Resize<byte>(ref bytes, bytes.Length + 1);
      PS3.SetMemory(0x26c0658, bytes);
      PS3.SetMemory(0x26C067F, bytes);
      break;
      }
      case 2:
      {
      byte[] array = Encoding.ASCII.GetBytes("[{+back}]");
      Array.Resize<byte>(ref array, array.Length + 1);
      PS3.SetMemory(0x26c0658, array);
      PS3.SetMemory(0x26C067F, array);
      break;
      }
      case 3:
      {
      byte[] buffer3 = Encoding.ASCII.GetBytes("[{+moveright}]");
      Array.Resize<byte>(ref buffer3, buffer3.Length + 1);
      PS3.SetMemory(0x26c0658, buffer3);
      PS3.SetMemory(0x26C067F, buffer3);
      break;
      }
      case 4:
      {
      byte[] buffer4 = Encoding.ASCII.GetBytes("[{+moveleft}]");
      Array.Resize<byte>(ref buffer4, buffer4.Length + 1);
      PS3.SetMemory(0x26c0658, buffer4);
      PS3.SetMemory(0x26C067F, buffer4);
      break;
      }
      }
      if (Countername1 == 4)
      {
      Countername1 = 0;
      }
      }
      catch
      {
    
      }
    
    Credits: Mx1357
     
    vt6Ip likes this.
  2. NextLevelModz

    NextLevelModz I sexually identify as depressed CC Dev Team Active Member

    Joined:
    Aug 7, 2015
    Messages:
    115
    Likes Received:
    61
    Trophy Points:
    88
    This is really messy?
    What is all this?
     
  3. Elite_Modz

    Elite_Modz Active Poster Retired Staff Active Member Console ID Poster

    Joined:
    Dec 19, 2014
    Messages:
    519
    Likes Received:
    364
    Trophy Points:
    133
    Depends what you consider messy?

    Its a bo2 name changer by using a timer it will loop the d-pad directions.
    The Counternames are so it can repeat (the cases go back to 1; a loop).
    The timers are needed if you were to have a start/stop button.
     
Loading...

Share This Page

Top