PDA

View Full Version : Spectator hack ;)



P47R!CK
03-05-2005, 12:51 PM
void func_hlhovmap()
{
if (gEngineFuncs.Cmd_Argc() < 1)
{
gClientFuncs.HudText("Usage: hlh_ovmap <value>");
return;
}

int iLocalIndex = gEngineFuncs.GetLocalPlayer();

if (iLocalIndex < 0)
return;

C_BaseEntity* pLocalBaseEnt = g_pEntList->GetClientEntity(iLocalIndex)->GetBaseEntity();

if (!pLocalBaseEnt)
return;

C_BasePlayer* pBasePlayer = ToBasePlayer(pLocalBaseEnt);

if (!pBasePlayer)
return;

int iObsmode = pBasePlayer->m_iObserverMode;

pBasePlayer->m_iObserverMode = OBS_MODE_ROAMING;


switch(atoi(gEngineFuncs.Cmd_Argv(1)))
{
case 1:
gEngineFuncs.ClientCmd("overview_mode 1");
break;
case 2:
gEngineFuncs.ClientCmd("overview_mode 2");
break;
case 3:
gEngineFuncs.ClientCmd("overview_mode 3");
break;
default:
break;
}
//pBasePlayer->m_iObserverMode = iObsmode;

}



it's cool if you use noclip too :-/

sp0rky
03-05-2005, 01:40 PM
Too bad you have to use ashoot if you use this and it really fucks up your movement and you can't jump.
It's still neat so good job pat0.

P47R!CK
03-05-2005, 02:06 PM
Too bad you have to use ashoot if you use this and it really fucks up your movement and you can't jump.
It's still neat so good job pat0.

i was more trying to point guys on using pViewport->ShowPanel("overview",true);
:-/

sp0rky
03-05-2005, 02:19 PM
i was more trying to point guys on using pViewport->ShowPanel("overview",true);
:-/

Oh.

V0gelz
03-06-2005, 06:02 AM
Gonne Check that out :scared:

target402
04-03-2006, 04:48 PM
im new here... what should i do with that code ? how that works ?

noobor
04-04-2006, 03:45 AM
im new here... what should i do with that code ? how that works ?

It shows an overview just like it does in spectator mode, this allows radar-like hacks to show you were people are, similar to a radar.

a_ninja
08-02-2006, 10:14 PM
what kind of code is this...and how do i compile it?

pwner222
08-24-2006, 04:23 PM
patrick u seem like a very very experienced programmer, please help me find a CSS hook , thanks man

s0beit
08-25-2006, 07:05 PM
thanks last 2 posters, i lold.

panzer
08-26-2006, 08:11 AM
thanks last 2 posters, i lold.
lol ... I second that!

wav
08-26-2006, 10:31 AM
I rifk'd tbh :o