Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Diagnostics;
- namespace GlowUsp
- {
- class GlowUsp
- {
- private static Memory mem;
- private static int client_dll;
- static void Main(string[] args)
- {
- try
- {
- Process csgo = Process.GetProcessesByName("csgo")[0];
- mem = new Memory("csgo");
- foreach (ProcessModule Module in csgo.Modules)
- {
- if (Module.ModuleName == "client_panorama.dll")
- client_dll = (int)Module.BaseAddress;
- }
- Console.WriteLine("dll got");
- }
- catch
- {
- Console.WriteLine("Error");
- }
- while (true)
- {
- int LocalPlayer = mem.Read<int>(client_dll + Offsets.dwLocalPlayer);
- int PlayerTeam = mem.Read<int>(LocalPlayer + Offsets.m_iTeamNum);
- for (int i = 0; i < 64; i++)
- {
- int EntityList = mem.Read<int>(client_dll + Offsets.dwEntityList + i * 0x10);
- int EntityTeam = mem.Read<int>(EntityList + Offsets.m_iTeamNum);
- if (EntityTeam != 0 && EntityTeam != PlayerTeam)
- {
- int GlowIndex = mem.Read<int>(EntityList + Offsets.m_iGlowIndex);
- DrawEntity(GlowIndex, 0, 0, 255);
- }
- else if (EntityTeam != 0 && EntityTeam == PlayerTeam)
- {
- int GlowIndex = mem.Read<int>(EntityList + Offsets.m_iGlowIndex);
- DrawEntity(GlowIndex, 255, 0, 0);
- }
- }
- }
- }
- static void DrawEntity(int GlowIndex,int red,int green,int blue)
- {
- int GlowObject = mem.Read<int>(client_dll + Offsets.dwGlowObjectManager);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 4, red /100f);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 8, green / 100f);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 12, blue / 100f);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 0x10, 255 / 100f);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 0x24, true);
- mem.Write(GlowObject + (GlowIndex * 0x38) + 0x25, false);
- }
- }
- class Offsets
- {
- public const Int32 cs_gamerules_data = 0x0;
- public const Int32 m_ArmorValue = 0xB340;
- public const Int32 m_Collision = 0x31C;
- public const Int32 m_CollisionGroup = 0x474;
- public const Int32 m_Local = 0x2FBC;
- public const Int32 m_MoveType = 0x25C;
- public const Int32 m_OriginalOwnerXuidHigh = 0x31B4;
- public const Int32 m_OriginalOwnerXuidLow = 0x31B0;
- public const Int32 m_SurvivalGameRuleDecisionTypes = 0x1320;
- public const Int32 m_SurvivalRules = 0xCF8;
- public const Int32 m_aimPunchAngle = 0x302C;
- public const Int32 m_aimPunchAngleVel = 0x3038;
- public const Int32 m_angEyeAnglesX = 0xB344;
- public const Int32 m_angEyeAnglesY = 0xB348;
- public const Int32 m_bBombPlanted = 0x99D;
- public const Int32 m_bFreezePeriod = 0x20;
- public const Int32 m_bGunGameImmunity = 0x392C;
- public const Int32 m_bHasDefuser = 0xB350;
- public const Int32 m_bHasHelmet = 0xB334;
- public const Int32 m_bInReload = 0x3285;
- public const Int32 m_bIsDefusing = 0x3918;
- public const Int32 m_bIsQueuedMatchmaking = 0x74;
- public const Int32 m_bIsScoped = 0x3910;
- public const Int32 m_bIsValveDS = 0x75;
- public const Int32 m_bSpotted = 0x93D;
- public const Int32 m_bSpottedByMask = 0x980;
- public const Int32 m_bStartedArming = 0x33D0;
- public const Int32 m_clrRender = 0x70;
- public const Int32 m_dwBoneMatrix = 0x26A8;
- public const Int32 m_fAccuracyPenalty = 0x3310;
- public const Int32 m_fFlags = 0x104;
- public const Int32 m_flC4Blow = 0x2990;
- public const Int32 m_flDefuseCountDown = 0x29AC;
- public const Int32 m_flDefuseLength = 0x29A8;
- public const Int32 m_flFallbackWear = 0x31C0;
- public const Int32 m_flFlashDuration = 0xA3F4;
- public const Int32 m_flFlashMaxAlpha = 0xA3F0;
- public const Int32 m_flLastBoneSetupTime = 0x2924;
- public const Int32 m_flLowerBodyYawTarget = 0x3A78;
- public const Int32 m_flNextAttack = 0x2D70;
- public const Int32 m_flNextPrimaryAttack = 0x3218;
- public const Int32 m_flSimulationTime = 0x268;
- public const Int32 m_flTimerLength = 0x2994;
- public const Int32 m_hActiveWeapon = 0x2EF8;
- public const Int32 m_hMyWeapons = 0x2DF8;
- public const Int32 m_hObserverTarget = 0x3388;
- public const Int32 m_hOwner = 0x29CC;
- public const Int32 m_hOwnerEntity = 0x14C;
- public const Int32 m_iAccountID = 0x2FC8;
- public const Int32 m_iClip1 = 0x3244;
- public const Int32 m_iCompetitiveRanking = 0x1A84;
- public const Int32 m_iCompetitiveWins = 0x1B88;
- public const Int32 m_iCrosshairId = 0xB3AC;
- public const Int32 m_iEntityQuality = 0x2FAC;
- public const Int32 m_iFOV = 0x31E4;
- public const Int32 m_iFOVStart = 0x31E8;
- public const Int32 m_iGlowIndex = 0xA40C;
- public const Int32 m_iHealth = 0x100;
- public const Int32 m_iItemDefinitionIndex = 0x2FAA;
- public const Int32 m_iItemIDHigh = 0x2FC0;
- public const Int32 m_iMostRecentModelBoneCounter = 0x2690;
- public const Int32 m_iObserverMode = 0x3374;
- public const Int32 m_iShotsFired = 0xA380;
- public const Int32 m_iState = 0x3238;
- public const Int32 m_iTeamNum = 0xF4;
- public const Int32 m_lifeState = 0x25F;
- public const Int32 m_nFallbackPaintKit = 0x31B8;
- public const Int32 m_nFallbackSeed = 0x31BC;
- public const Int32 m_nFallbackStatTrak = 0x31C4;
- public const Int32 m_nForceBone = 0x268C;
- public const Int32 m_nTickBase = 0x342C;
- public const Int32 m_rgflCoordinateFrame = 0x444;
- public const Int32 m_szCustomName = 0x303C;
- public const Int32 m_szLastPlaceName = 0x35B0;
- public const Int32 m_thirdPersonViewAngles = 0x31D8;
- public const Int32 m_vecOrigin = 0x138;
- public const Int32 m_vecVelocity = 0x114;
- public const Int32 m_vecViewOffset = 0x108;
- public const Int32 m_viewPunchAngle = 0x3020;
- public const Int32 clientstate_choked_commands = 0x4D28;
- public const Int32 clientstate_delta_ticks = 0x174;
- public const Int32 clientstate_last_outgoing_command = 0x4D24;
- public const Int32 clientstate_net_channel = 0x9C;
- public const Int32 convar_name_hash_table = 0x2F0F8;
- public const Int32 dwClientState = 0x58CCFC;
- public const Int32 dwClientState_GetLocalPlayer = 0x180;
- public const Int32 dwClientState_IsHLTV = 0x4D40;
- public const Int32 dwClientState_Map = 0x28C;
- public const Int32 dwClientState_MapDirectory = 0x188;
- public const Int32 dwClientState_MaxPlayer = 0x388;
- public const Int32 dwClientState_PlayerInfo = 0x52B8;
- public const Int32 dwClientState_State = 0x108;
- public const Int32 dwClientState_ViewAngles = 0x4D88;
- public const Int32 dwEntityList = 0x4D04B04;
- public const Int32 dwForceAttack = 0x31361C0;
- public const Int32 dwForceAttack2 = 0x31361CC;
- public const Int32 dwForceBackward = 0x3136208;
- public const Int32 dwForceForward = 0x3136214;
- public const Int32 dwForceJump = 0x51A81BC;
- public const Int32 dwForceLeft = 0x313622C;
- public const Int32 dwForceRight = 0x3136220;
- public const Int32 dwGameDir = 0x632F70;
- public const Int32 dwGameRulesProxy = 0x521A504;
- public const Int32 dwGetAllClasses = 0xD1795C;
- public const Int32 dwGlobalVars = 0x58CA00;
- public const Int32 dwGlowObjectManager = 0x5245018;
- public const Int32 dwInput = 0x514FB50;
- public const Int32 dwInterfaceLinkList = 0x8C7E94;
- public const Int32 dwLocalPlayer = 0xCF2A3C;
- public const Int32 dwMouseEnable = 0xCF8588;
- public const Int32 dwMouseEnablePtr = 0xCF8558;
- public const Int32 dwPlayerResource = 0x313454C;
- public const Int32 dwRadarBase = 0x5139864;
- public const Int32 dwSensitivity = 0xCF8424;
- public const Int32 dwSensitivityPtr = 0xCF83F8;
- public const Int32 dwSetClanTag = 0x896A0;
- public const Int32 dwViewMatrix = 0x4CF6534;
- public const Int32 dwWeaponTable = 0x5150614;
- public const Int32 dwWeaponTableIndex = 0x323C;
- public const Int32 dwYawPtr = 0xCF81E8;
- public const Int32 dwZoomSensitivityRatioPtr = 0xCFD408;
- public const Int32 dwbSendPackets = 0xD286A;
- public const Int32 dwppDirect3DDevice9 = 0xA6030;
- public const Int32 force_update_spectator_glow = 0x393362;
- public const Int32 interface_engine_cvar = 0x3E9EC;
- public const Int32 is_c4_owner = 0x39F5A0;
- public const Int32 m_bDormant = 0xED;
- public const Int32 m_pStudioHdr = 0x294C;
- public const Int32 m_pitchClassPtr = 0x5139B10;
- public const Int32 m_yawClassPtr = 0xCF81E8;
- public const Int32 model_ambient_min = 0x58FD1C;
- public const Int32 set_abs_angles = 0x1CA8B0;
- public const Int32 set_abs_origin = 0x1CA6F0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement