OPENGL不同血量不同颜色显示的代码

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论OPENGL不同血量不同颜色显示的代码
发帖 回复
正序阅读 最近浏览的帖子最近浏览的版块
4个回复

OPENGL不同血量不同颜色显示的代码

楼层直达
蠢萌萝莉σ

ZxID:1378369

等级: 禁止发言

举报 只看楼主 使用道具 楼主   发表于: 2008-04-12 0
OPENGL不同血量不同颜色显示的代码
OPENGL不同血量不同颜色显示的代码
Information: If you have Good health then the colour will be Green, if health is Medium then the colour will be
      Yellow, if health is Low then the colour will be Red.

This can be PureGL as no engine function access is required.

First you need to use any memory searching tool to find the correct integers.

I am not doing a tutorial on this as it is easy to find for yourself but will include the latest values that
correspond with this post date.

Step 1:

4 Integers;

int iHealth;

int iRed;
int iGreen;
int iBlue;

iHealth will store the Health, and the colour integers will show the colour of the HUD;

Then either every frame, or 5th glViewport you need to collect the players health information by doing the
following;

iHealth = *(int*)0x119848;

Then you setup your code;

if(iHealth >= 100)
    {
      iRed = 100;
      iGreen = 255;
      iBlue = 50;
    }

    else if((iHealth >= 50)
    {
      iRed = 255;
      iGreen = 255;
      iBlue = 50;
    }

    else if(iHealth <= 20)
    {
      iRed = 255;
      iGreen = 0;
      iBlue = 0;
    }

Then with glBlendFunc we do the colouring;

if(dfactor == GL_ONE) { glColor3ub(iRed,iGreen,iBlue); }

Then that is about it, and leaves it upto you to improve.

Below are the latest values fitting in with this post date;

int iCS_Health = *(int*)0x119848;
int iCS_Armor = *(int*)0x1A1D894lease credit if used:


Code:
LanceVorgin
aiwnjoo
Microsoft
UC
OpenGLThanks!
__________________

Code:
IAT, API, Polymorphism, PEB/TEB, ASM, CAT, ring0 - All the possibilities
giupel

ZxID:2609278

等级: 新兵
举报 只看该作者 4楼  发表于: 2008-12-18 0
asasasasa
零点时尚

ZxID:1176695

等级: 禁止发言

举报 只看该作者 地板   发表于: 2008-04-12 0
郁闷,怎么没说怎么用啊?
caonimah

ZxID:1351229

等级: 上校
Ex。。。calibur !

举报 只看该作者 板凳   发表于: 2008-04-12 0
我也不懂得```但路过支持拉
津门刘青云

ZxID:1077454

等级: 大将
Please,Don't try this.
举报 只看该作者 沙发   发表于: 2008-04-12 0
没看太懂 先支持下


« 返回列表
发帖 回复