How to add player FOV on radar to your hack

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论How to add player FOV on radar to your hack
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
1个回复

How to add player FOV on radar to your hack

楼层直达
作弊辅导员_h

ZxID:1019634

等级: 元老
定做作弊器
举报 只看楼主 使用道具 楼主   发表于: 2007-07-25 0
Use this to draw little lines to indicate a which direction the player is pointing. Makes it easy to see if a person is aiming at you Code:

Vector CalcPViewAngles(int index){

    cl_entity_s *ent = gEngfuncs.GetEntityByIndex(index);
    Vector forward,right,up,newfwd;
    VectorCopy(ent->origin, newfwd);
    gEngfuncs.pfnAngleVectors(ent->angles, forward, right, up);

    // Thanks tetsuo :P im a tard
    newfwd = newfwd + forward * cvar.radar_fovdist; // radar_fovdist is an int, I use 300. change to suit your own taste

    return newfwd;
}

This simply calculates a point in space that is X units in front of the player, I used 300 which seemed to work well on the radar of my size. Code:

void drawRadarFOV(float* origin, int playerindex, int width, int r,int g,int b, int size)
{

    int startX, startY, endX, endY;

    calcRadarPoint(origin, startX, startY);
    calcRadarPoint(CalcPViewAngles(playerindex), endX, endY);

    DrawLine(startX, startY, endX, endY, width, r, g, b, 255);
}

Credits: Tetsuo, OGC
密码被盗,请联系cscheat取回
maliukao

ZxID:1268376

等级: 上士
举报 只看该作者 沙发   发表于: 2007-10-13 0
fffffffffffffff
« 返回列表
发帖 回复