public Player(GTA gta) { Gta = gta; AutoHealThread = new Thread(new ParameterizedThreadStart(AutoHeal)); PlayerAddy = Gta.ReadInt64(Gta.CPedFactory + 0x8); PlayerInfoAddy = Gta.ReadInt64(PlayerAddy + 0x10B8); Weapon = new Weapon(Gta, PlayerAddy); }
public bool Update() { var addy = Gta.ReadInt64(WpAddy + 0x20); if (addy == CurrentWeaponAddy) { return(false); } if (Backup != null) { Reset(); } CurrentWeaponAddy = addy; Backup = new WeaponBackup() { Damage = Damage, Range = Range, Recoil = Recoil, ReloadMultiplier = ReloadMultiplier, Spread = Spread }; return(true); }
public Vehicle(GTA gta, long addy) { Gta = gta; VehicleAddy = addy; VehicleHandlingAddy = Gta.ReadInt64(VehicleAddy + 0x918); }
public Weapon(GTA gta, long playerAddy) { Gta = gta; WpAddy = Gta.ReadInt64(playerAddy + 0x10C8); }