PDA

View Full Version : help with esp


saranana
27th July 2005, 11:16
im using this esp and everything is long distance but i added health and is short distance can some one help me make it long distance here is the code the red colored is the health


function ESP(PlayerReplicationInfo PRI)
{
local vector D, X, Y, Z;

if (!PRI.isDead())
{
if(PRI.Team.TeamIndex != MyController.Pawn.PlayerReplicationInfo.Team.TeamI ndex)
{
MyCanvas.SetDrawColor(0,0,170);
}
else if(PRI.Team.TeamIndex == MyController.Pawn.PlayerReplicationInfo.Team.TeamI ndex)
{
MyCanvas.SetDrawColor(0,0,170);
}
else
{
MyCanvas.SetDrawColor(0,0,170);
}

ESPvector = MyController.Player.Console.WorldToScreen(CurrentT argetLocation);

GetAxes(Normalize(MyController.Pawn.PlayerReplicat ionInfo.MyPawn.Rotation) + Rot(0,16384,0),X,Y,Z);
D = PRI.GetPawnLocation() - MyController.Pawn.PlayerReplicationInfo.GetPawnLoc ation();
D.Z = 0;

if( (D dot Y) <0)
{
MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y + 15);
MyCanvas.DrawText("D: "$ String(Int(VSize(PRI.GetPawnLocation() - MyController.Pawn.EyePosition()) / 48)) $ "") ;

MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y - 15);
MyCanvas.DrawText(PRI.PlayerName);

MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y + 0);
MyCanvas.DrawText("H: "$ PRI.myPawn.Health $ "%");
}
}
}

JaMMo
27th July 2005, 12:23
Health return's null from a distance, you will find since the 'new' engine you can't get the Player's health to render all across the map. So make an else and return it with Distance and PRI.PlayerName.

HyPeR-X
27th July 2005, 19:15
Health return's null from a distance, you will find since the 'new' engine you can't get the Player's health to render all across the map. So make an else and return it with Distance and PRI.PlayerName.

You were never able to get health on full map as health isnt a member of playerreplication info on wich everybody gets their full esp :)

- HyPz

PseudoX-Solja
29th July 2005, 17:26
im using this esp and everything is long distance but i added health and is short distance can some one help me make it long distance here is the code the red colored is the health


function ESP(PlayerReplicationInfo PRI)
{
local vector D, X, Y, Z;

if (!PRI.isDead())
{
if(PRI.Team.TeamIndex != MyController.Pawn.PlayerReplicationInfo.Team.TeamI ndex)
{
MyCanvas.SetDrawColor(0,0,170);
}
else if(PRI.Team.TeamIndex == MyController.Pawn.PlayerReplicationInfo.Team.TeamI ndex)
{
MyCanvas.SetDrawColor(0,0,170);
}
else
{
MyCanvas.SetDrawColor(0,0,170);
}

ESPvector = MyController.Player.Console.WorldToScreen(CurrentT argetLocation);

GetAxes(Normalize(MyController.Pawn.PlayerReplicat ionInfo.MyPawn.Rotation) + Rot(0,16384,0),X,Y,Z);
D = PRI.GetPawnLocation() - MyController.Pawn.PlayerReplicationInfo.GetPawnLoc ation();
D.Z = 0;

if( (D dot Y) <0)
{
MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y + 15);
MyCanvas.DrawText("D: "$ String(Int(VSize(PRI.GetPawnLocation() - MyController.Pawn.EyePosition()) / 48)) $ "") ;

MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y - 15);
MyCanvas.DrawText(PRI.PlayerName);

MyCanvas.Font = MyCanvas.SmallFont;
MyCanvas.SetPos(ESPVector.X + 5, ESPVector.Y + 0);
MyCanvas.DrawText("H: "$ PRI.myPawn.Health $ "%");
}
}
}

Im getting this error

Error in MyInteraction.uc (624): Unrecognized member 'isDead' in class 'PlayerReplicationInfo'

Any idea on how I can correct it

YoYoReturns
29th July 2005, 18:23
yeah fix ur engine files.