Page 2 of 12 FirstFirst 1234 ... LastLast
Results 16 to 30 of 176
  1. #16
    Lystic's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    'Murica
    Posts
    498
    Reputation
    31
    Thanks
    4,717
    My Mood
    Bashful
    Oh since it seems like a 1-up fest here.
    Code:
    //Teleports random vehicle to your player
    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
    Vehicle randVeh = mapVehicles[0];
    Vector3 camPos = Camera.main.transform.position;
    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
    veh.updatePosition(newPos, Camera.main.transform(DOT)rotation);
    veh.transform.position = newPos;
    notice (DOT) in the code above. MPGH doesnt like having a period there.
    Last edited by Lystic; 07-31-2014 at 04:14 AM.

  2. #17
    blackstab1337's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    159
    Reputation
    10
    Thanks
    149
    My Mood
    Amused
    Godmode
    Code:
        public void god()
        {
            if (godmode)
            {
                Life[] LifeArray =
                UnityEngine.Object.FindObjectsOfType(typeof(Life)) as Life[];
                foreach (Life Life in LifeArray)
                {
                    Life.tellWater(100);
                    Life.tellFood(100);
                    Life.tellHealth(100);
                    Life.tellSickness(100);
                    Life.tellBleeding(false);
                    Life.tellBones(false);
                    Sneaky.sneak(0);
                    Sneaky.sneak(0.1f);
                    Sneaky.expose(0);
                    Sneaky.expose(0.1f);
                    Life.energyBuffer();
                }
            }
        }

  3. #18
    blackstab1337's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    159
    Reputation
    10
    Thanks
    149
    My Mood
    Amused
    Quote Originally Posted by Lystic View Post
    Oh since it seems like a 1-up fest here.
    Code:
    //Teleports random vehicle to your player
    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
    Vehicle randVeh = mapVehicles[0];
    Vector3 camPos = Camera.main.transform.position;
    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
    veh.updatePosition(newPos, Camera.main.transform(DOT)rotation);
    veh.transform.position = newPos;
    notice (DOT) in the code above. MPGH doesnt like having a period there.
    Oh how i love you.

    What is veh. you forgot a variable.

  4. #19
    Cabbager001's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by blackstab1337 View Post
    Oh how i love you.

    What is veh. you forgot a variable.
    I think instead of "veh" he meant "randVeh" :P

    Also, a question, how do you include the Steamworks reference in your hack?
    Last edited by Cabbager001; 07-31-2014 at 05:14 AM.

  5. #20
    blackstab1337's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    159
    Reputation
    10
    Thanks
    149
    My Mood
    Amused
    Quote Originally Posted by Cabbager001 View Post
    I think instead of "veh" he meant "randVeh" :P

    Also, a question, how do you include the Steamworks reference in your hack?
    Just find the dll and add it to your references.

  6. #21
    Cabbager001's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by blackstab1337 View Post
    Just find the dll and add it to your references.
    That's the thing - I should have made it more clear - I don't know where to find the dll

  7. #22
    TheMaskedOne's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Home
    Posts
    803
    Reputation
    10
    Thanks
    719
    My Mood
    Yeehaw
    Quote Originally Posted by Cabbager001 View Post
    That's the thing - I should have made it more clear - I don't know where to find the dll
    I did using Steamworks;




    Achievements:

     
    Posts Count: ( Done Not done )

    - 666
    - 750
    - 900
    - 1000

     
    Thanks Recieved: ( Done Not done )

    - 400
    - 550
    - 700
    - 850
    - 1000

     
    Cgallagher21

  8. The Following User Says Thank You to TheMaskedOne For This Useful Post:

    Cabbager001 (07-31-2014)

  9. #23
    Cabbager001's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by TheMaskedOne View Post
    I did using Steamworks;
    Ah, I found my error - I had to add a reference to Assembly-CSharp-firstpass.dll
    After that, your import was successful

  10. #24
    Blueblood1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    711
    Reputation
    132
    Thanks
    7,125
    My Mood
    Mellow
    Quote Originally Posted by Lystic View Post
    Oh since it seems like a 1-up fest here.
    Code:
    //Teleports random vehicle to your player
    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
    Vehicle randVeh = mapVehicles[0];
    Vector3 camPos = Camera.main.transform.position;
    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
    veh.updatePosition(newPos, Camera.main.transform(DOT)rotation);
    veh.transform.position = newPos;
    notice (DOT) in the code above. MPGH doesnt like having a period there.
    You win, gg wp

  11. #25
    Blueblood1's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    711
    Reputation
    132
    Thanks
    7,125
    My Mood
    Mellow
    Quote Originally Posted by Lystic View Post
    Oh since it seems like a 1-up fest here.
    Code:
    //Teleports random vehicle to your player
    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
    Vehicle randVeh = mapVehicles[0];
    Vector3 camPos = Camera.main.transform.position;
    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
    veh.updatePosition(newPos, Camera.main.transform(DOT)rotation);
    veh.transform.position = newPos;
    notice (DOT) in the code above. MPGH doesnt like having a period there.
    This will just constantly give you the same vehicle, even if its exploded. I tried messing with Vehicles to see if i could get it too return its health but sadly not. Anyway here is the same code but with a Randomizer in it so that you don't get the same exploded vehicle every time.

    Code:
      
    if (GUILayout.Button("Teleport Vehicle"))
    {
          Vehicle[] mapVehicles = UnityEngine.Object.FindObjectsOfType(typeof(Vehicle)) as Vehicle[];
          int num = UnityEngine.Random.Range(0, 10);
          Vehicle randVeh = mapVehicles[num];
          Vector3 camPos = Camera.main.transform.position;
          Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
          randVeh.updatePosition(newPos, Camera.main.transform(DOT)rotation);
          randVeh.transform.position = newPos; //CREDITS TO LYSTIC YOU SMEXY BEAST
    }
    Last edited by Blueblood1; 07-31-2014 at 10:13 AM.

  12. #26
    jumboperson187's Avatar
    Join Date
    Jun 2014
    Gender
    male
    Posts
    124
    Reputation
    10
    Thanks
    883
    Quote Originally Posted by Blueblood1 View Post
    This will just constantly give you the same vehicle, even if its exploded. I tried messing with Vehicles to see if i could get it too return its health but sadly not. Anyway here is the same code but with a Randomizer in it so that you don't get the same exploded vehicle every time.

    Code:
      
    if (GUI.Button(new Rect(scrWidth-100, 380, 100, 30), "Get Car"))
                {
                    //Credit to Lystic
                    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
                    int length = mapVehicles.Length;
                    int num = UnityEngine.Random.Range(0, length);
                    Vehicle veh = mapVehicles[num];
                    veh.tellExploded(false);
                    veh.tellFuel(100);
                    veh.tellHealth(100);
                    
                    Vector3 camPos = Camera.main.transform.position;
                    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
                    veh.updatePosition(newPos, Camera.main.transform(dot)rotation);
                    veh.transform.position = newPos;
                }
    Of course you could just set the Vehicle stats, but the randomizer still helps.

    Code:
    if (GUI.Button(new Rect(scrWidth-100, 380, 100, 30), "Get Car"))
                {
                    //Credit to Lystic
                    Vehicle[] mapVehicles = (Vehicle[])(UnityEngine.Object.FindObjectsOfType(Type.GetTypeFromHandle(Type.GetTypeHandle(new Vehicle()))));
                    int num = UnityEngine.Random.Range(0, 10);
                    Vehicle veh = mapVehicles[num];
                    veh.tellExploded(false);
                    veh.tellFuel(100);
                    veh.tellHealth(100);
                    
                    Vector3 camPos = Camera.main.transform.position;
                    Vector3 newPos = new Vector3(camPos[0] + 5, camPos[1] + 5, camPos[2]);
                    veh.updatePosition(newPos, Camera.main.transform****tation);
                    veh.transform.position = newPos;
                }
    Also first person to get MP item spawning working first I will suck their dick. I have some code that I've been working on with limited success. (If someone tells me how to reference methods from other classes with RPC successfully I'll have it done for y'all)
    Last edited by jumboperson187; 07-31-2014 at 10:32 AM.

  13. #27
    Flutts's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    163
    My Mood
    Paranoid
    Heres One I Found.

    Its For Setting Hero/Bandit Ranks.

    Hero
    Code:
    NetworkHandler[] NetArray = UnityEngine.Object.FindObjectsOfType(typeof(NetworkHandler)) as NetworkHandler[];
            foreach (NetworkHandler nets in NetArray)
            {
                nets.setReputation(Network.player, 100);
            }
    Bandit
    Code:
    NetworkHandler[] NetArray = UnityEngine.Object.FindObjectsOfType(typeof(NetworkHandler)) as NetworkHandler[];
            foreach (NetworkHandler nets in NetArray)
            {
                nets.setReputation(Network.player, -100);
            }

  14. The Following 5 Users Say Thank You to Flutts For This Useful Post:

    blackstab1337 (08-01-2014),Blueblood1 (08-01-2014),Cabbager001 (08-01-2014),jumboperson187 (08-01-2014),TheMaskedOne (08-01-2014)

  15. #28
    LemonLimeSoda's Avatar
    Join Date
    Jul 2014
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    And thus the greatest injection mod of all time was born!

  16. #29
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Cant you just inject c# with reflector... why use titanium and such?

  17. The Following User Says Thank You to desertflame For This Useful Post:

    Kunii (08-01-2014)

  18. #30
    desertions's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    183
    Reputation
    10
    Thanks
    291
    Quote Originally Posted by desertflame View Post
    Cant you just inject c# with reflector... why use titanium and such?
    I thought reflector dlls and titanium injections were different?
    Or does reflector work as an injector aswell?..

    #desertlyfe

Page 2 of 12 FirstFirst 1234 ... LastLast

Similar Threads

  1. [Source Code] Release your .SQF Source Code Here! (Godmode, ESP, Etc)
    By ItsZaydeh in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 28
    Last Post: 10-25-2014, 05:00 PM
  2. Post your USED codes here!
    By MuffinHD in forum League of Legends Discussions
    Replies: 47
    Last Post: 01-11-2014, 01:12 AM
  3. [Patched] Post your Auth Codes here! (RSBots.net)
    By Ravallo in forum Runescape Hacks / Bots
    Replies: 220
    Last Post: 10-21-2011, 02:21 PM
  4. [Source Code] Ask for Source Codes here / Release your Source Codes here [Collection]
    By taylan in forum WarRock Hack Source Code
    Replies: 24
    Last Post: 02-01-2011, 11:27 AM
  5. Post your game name here
    By styx23 in forum WarRock - International Hacks
    Replies: 49
    Last Post: 07-17-2007, 08:47 PM