Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Trying to hack Unity Engine car game help!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
sauceman666
How do I cheat?
Reputation: 0

Joined: 06 Jun 2018
Posts: 1

PostPosted: Wed Jun 06, 2018 3:15 pm    Post subject: Trying to hack Unity Engine car game help! Reply with quote

So I decompiled an Assembly-CSharp and found all the Coin and other values for the game, for example Premium values/offsets/tokens, DLC values etc. I just need to know how to use them in cheat engine, the game is called CarX Drift Racing, pretty fun game. As of now I know this and I believe it would be very useful on cheat engine once I learn how to use it. Also the developer has no problem with this at all, I would post URL but I'm not allowed to do so.

Code:
using System;
using System.Diagnostics;
using CodeStage.AntiCheat.ObscuredTypes;
using DB;
using DB.Meta;
using DI;
using GameOverlay;
using SimpleJSON;

namespace PrefsModels
{
   // Token: 0x020001CA RID: 458
   public class MoneyModel : BasePrefsModel
   {
      // Token: 0x06000960 RID: 2400 RVA: 0x00079D8C File Offset: 0x00077F8C
      public MoneyModel()
      {
         this.m_moneyCoins.ApplyNewCryptoKey();
         GlobalGameSettings single = DependencyInjector.Resolve<BaseModel>().GetSingle<GlobalGameSettings>();
         this.m_moneyCoins = single.startCoins;
         this.m_ratingPoints = single.startRatingPoints;
      }

      // Token: 0x14000030 RID: 48
      // (add) Token: 0x06000961 RID: 2401 RVA: 0x00079DD8 File Offset: 0x00077FD8
      // (remove) Token: 0x06000962 RID: 2402 RVA: 0x00079E10 File Offset: 0x00078010
      [JsonIgnore]
      [DebuggerBrowsable(DebuggerBrowsableState.Never)]
      public event Action<int, ECurrencyType> OnMoneyChanged;

      // Token: 0x17000143 RID: 323
      // (get) Token: 0x06000963 RID: 2403 RVA: 0x00018266 File Offset: 0x00016466
      // (set) Token: 0x06000964 RID: 2404 RVA: 0x00018273 File Offset: 0x00016473
      public int coins
      {
         get
         {
            return this.m_moneyCoins;
         }
         set
         {
            if (this.m_moneyCoins != value)
            {
               this.m_moneyCoins = value;
               this.OnMoneyChanged.Call(value, ECurrencyType.Coins);
               this.Save();
            }
         }
      }

      // Token: 0x17000144 RID: 324
      // (get) Token: 0x06000965 RID: 2405 RVA: 0x000182A5 File Offset: 0x000164A5
      // (set) Token: 0x06000966 RID: 2406 RVA: 0x000182B2 File Offset: 0x000164B2
      public int ratingPoints
      {
         get
         {
            return this.m_ratingPoints;
         }
         set
         {
            if (this.m_ratingPoints != value)
            {
               this.m_ratingPoints = value;
               this.OnMoneyChanged.Call(value, ECurrencyType.RatingPoints);
               this.Save();
            }
         }
      }

      // Token: 0x06000967 RID: 2407 RVA: 0x000182E4 File Offset: 0x000164E4
      public override void PostLoad()
      {
         base.PostLoad();
         this.ApplyDLCMoney();
      }

      // Token: 0x06000968 RID: 2408 RVA: 0x00079E48 File Offset: 0x00078048
      public void ApplyDLCMoney()
      {
         if (this.isDLCMoneyApplied)
         {
            return;
         }
         if (Overlay.Instance.IsDLCInstalled(DLCCode.Gold))
         {
            GlobalGameSettings single = DependencyInjector.Resolve<BaseModel>().GetSingle<GlobalGameSettings>();
            this.isDLCMoneyApplied = true;
            this.coins += single.goldMoney;
            this.Save();
         }
      }

      // Token: 0x06000969 RID: 2409 RVA: 0x00018266 File Offset: 0x00016466
      public int GetMoney(ECurrencyType type)
      {
         return this.m_moneyCoins;
      }

      // Token: 0x0600096A RID: 2410 RVA: 0x000182F2 File Offset: 0x000164F2
      public void SetMoney(ECurrencyType type, int money)
      {
         this.coins = money;
      }

      // Token: 0x040008E6 RID: 2278
      public bool isDLCMoneyApplied;

      // Token: 0x040008E7 RID: 2279
      private ObscuredInt m_moneyCoins;

      // Token: 0x040008E8 RID: 2280
      private ObscuredInt m_ratingPoints;
   }
}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites