Thread: Question

Results 1 to 6 of 6
  1. #1
    dilemma13's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0

    Question

    I'm not very good with source code or C++ so I have no idea how, or even if it is possible, for someone to change this code (from Roll the Dice mod):

    Code:
    case 51:
    			self****llName = ("^2Satellite");
    			wait 0.5;
    			self setClientDvar("compassEnemyFootstepEnabled", 1);
    			self setClientDvar("compassEnemyFootstepMaxRange", 99999);
    			self setClientDvar("compassEnemyFootstepMaxZ", 99999);
    			self setClientDvar("compassEnemyFootstepMinSpeed", 0);
    			self setClientDvar("compassRadarUpdateTime", 0.001);
    			foreach(player in level.players){
    			player unsetPerk("specialty_quieter");
    			player unsetPerk("specialty_heartbreaker");
    			player unsetPerk("specialty_selectivehearing");}
    			break;
    into C++ so that it could be injected into the client. The "roll" from this mod makes all the enemies appear on uav. Is it possible?

  2. #2
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    When I get home I'll convert it.

  3. The Following User Says Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    dilemma13 (06-14-2011)

  4. #3
    dilemma13's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Thank you! I appreciate it

  5. #4
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    Code:
    cEntity *pEntity = (cEntity*)0x0000; //the entities addy (Remember to build the struct first)
    
    void UAV( LPVOID )
    {
      for(int i=0;i<18;i++)
      {
       if(pEntity[i].name == "PutYourNameHere")
                pEntity[i].name = "^2Satellite";
       Sleep(50);
       *(WORD*)0x7D93EC = 1; //compassEnemyFootstepEnabled (AIW)
       //Now modify the addies as you want
       *(DWORD*)0x000000 = 9999; //compassEnemyFootstepMaxRange
       *(DWORD*)0x000000 = 9999; //compassEnemyFootstepMaxZ
       *(DWORD*)0x000000 = 0; //compassEnemyFootstepMinSpeed
       *(float*)0x000000 = 0.001; //compassRadarUpdatedTime
       if(pEntity[i].perk != NULL)
       {
          pEntity[i].perk = NULL; //Disable the perks
       }
      }
    }
    This is not a copy&paste code, this is a "pre-made" code.
    Last edited by ♪~ ᕕ(ᐛ)ᕗ; 06-14-2011 at 08:33 AM.

  6. The Following User Says Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    dilemma13 (06-14-2011)

  7. #5
    dilemma13's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Thank you. Where could I find the structure to make this?

  8. #6
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    IDK, try on some open source hacks?