PDA

View Full Version : My wallhack gives me crits >:-|


RuffianSoldier
20th June 2005, 00:48
I added wallhack to my hack - it compiled fine - but it gives me critical errors in game.


OS: Windows XP 5.1 (Build: 2600)
CPU: AuthenticAMD PentiumPro-class processor @ 2001 MHz with 1023MB RAM
Video: NVIDIA GeForce 6600 (7189)

General protection fault!

History: UObject::ProcessEvent <- (InteractionMaster Transient.InteractionMaster0, Function Engine.InteractionMaster.Process_PostRender) <- UInteractionMaster::MasterProcessPostRender <- UGameEngine::Draw <- UWindowsViewport::Repaint <- UWindowsClient::Tick <- ClientTick <- UGameEngine::Tick <- UpdateWorld <- MainLoop


Here is my script:
function PawnRelated(Canvas Canvas)
{
local Pawn Target;

foreach MyController.dynamicactors(Class'Pawn', Target)
{
if ( bwallhack )
{
wallhack(Target, Canvas);
}
}
}

function Wallhack( Pawn Target, canvas C)
{
C.DrawActor(Target,false,true);
Target.bHidden=false;


}

RuffianSoldier
20th June 2005, 03:58
What did I do wrong?



P.S.
Sorry for double post I ment to edit the first........

DotProduct
20th June 2005, 03:59
make a validtarget function that returns true if target!=none and target!=me... this could be a few probelems depending on the rest of your code... but give this a try

RuffianSoldier
20th June 2005, 04:44
I add this as a completely new function?

DotProduct
20th June 2005, 04:45
yeh ex:

function bool validtarget (pawn target)
{
return target.isalive()&&target!=me&&target!=none;
}

RuffianSoldier
20th June 2005, 05:03
ok - i see why thats needed - i will give an update after i test - ty

Ok, the wallhack works - but it shows my avatar....... kinda like a really annoying 3rd person view thats in front of me so i cant see

RuffianSoldier
20th June 2005, 06:08
http://img226.echo.cx/img226/9536/ravenshield20050619230138047nw.jpg

KizZamP-
20th June 2005, 18:44
oh yes lol i recognize that lol,it looks on the wallhack of the holz hack rofl.the same error.
I'm gonna check the difference between the 1 of holz and then 1 of me.I'll give an update tonight.

DotProduct
20th June 2005, 18:51
that czu ur drawing ur guy when hes supposed to be hidden
me.bhidden=true

or

if(target==me)return;

RuffianSoldier
20th June 2005, 21:45
It still wallhacks me - here is what i have:

function wallhack( Pawn Target, canvas C)
{
C.DrawActor(Target,false,true);
Target.bHidden=false;
me.bhidden=true;


}

KizZamP-
21st June 2005, 14:07
i have the same thing but i don't have those r6 glasses in front of me mmmmmmmmmm weird.

DotProduct
21st June 2005, 15:46
put the me.bhidden=true sumwehre else .... normally its in ur valid target so it wont be called if its in a function thats replicated through target;

KizZamP-
21st June 2005, 17:37
foreach MyController.dynamicactors(Class'Pawn', Target)
{

if ( ValidTarget(Target) )
{
if ( bWallhack )
{
wallhack(Target, Canvas);
}
}


dotproduct wouldn't that be it?

RuffianSoldier
21st June 2005, 19:25
I put it in my valid function.... but it still draws my player

function bool ValidTarget( Pawn Target )
{
if (( Target != None ) && ( Target != Me ) && ( !Target.bHidden ) && ( Target.Health > 0 ) && ( !Target.IsInState('Dying') ) && ( !Target.IsA('StaticPawn') ) && ( Target.PlayerReplicationInfo != None ) && ( !Target.PlayerReplicationInfo.bIsSpectator ) && ( !Target.PlayerReplicationInfo.bWaitingPlayer ) && ( Target.Mesh != None ) && ( Target.PlayerReplicationInfo.m_ihealth <= 1 ) )
{

Return True;
me.bhidden=true;

}
else
{
Return False;
}


}

GLoGG
21st June 2005, 19:31
I put it in my valid function.... but it still draws my player

function bool ValidTarget( Pawn Target )
{
if (( Target != None ) && ( Target != Me ) && ( !Target.bHidden ) && ( Target.Health > 0 ) && ( !Target.IsInState('Dying') ) && ( !Target.IsA('StaticPawn') ) && ( Target.PlayerReplicationInfo != None ) && ( !Target.PlayerReplicationInfo.bIsSpectator ) && ( !Target.PlayerReplicationInfo.bWaitingPlayer ) && ( Target.Mesh != None ) && ( Target.PlayerReplicationInfo.m_ihealth <= 1 ) )
{

Return True;
me.bhidden=true;

}
else
{
Return False;
}


}

rofl u just gave him an old code for wallhack that i gave u killybud.....

RuffianSoldier
21st June 2005, 19:52
I looked through rR6game and XeiaieX - i compared my code with theirs... its the same........ yet it still draws my character

RuffianSoldier
22nd June 2005, 08:58
Im giving up on wallhack - I will mess with skinhack :D

KizZamP-
22nd June 2005, 12:59
glogg don't tell me u gave it to me,i just typed that over from the rr6game.u hack (the default1 from dtp).And he i trying to put a wallhack in 1 file,with no other validtargets on it...so that's why i posted that 1