Raised This Month: $ Target: $400
 0% 

radar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 06-10-2005 , 12:28   radar
Reply With Quote #1

Is there any way to mark a specific player on the radar? Maybe to send a fake "hostage location" to the client that is updated with the player's position vector?

If you have any ideas, please let me know or catch me on IRC.

Thanks.
L. Duke is offline
Cr3V3TT3
Senior Member
Join Date: Jul 2004
Location: V'dauban
Old 06-20-2005 , 08:08  
Reply With Quote #2

cheat source?
*link deleted*
Cr3V3TT3 is offline
Send a message via MSN to Cr3V3TT3
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-20-2005 , 22:14  
Reply With Quote #3

link deleted? Was it to code or something?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
fysh
Senior Member
Join Date: Oct 2004
Old 06-20-2005 , 23:05  
Reply With Quote #4

It was to a cheat.
fysh is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-21-2005 , 01:20  
Reply With Quote #5

ahhhhh, ok duh that would make sense, I thought it was like to the leaked CS:S source that was out w/that leaked HL2 SDK or whatever
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Cr3V3TT3
Senior Member
Join Date: Jul 2004
Location: V'dauban
Old 06-21-2005 , 05:10  
Reply With Quote #6

Code:
float viewAngle = pBaseEntity->GetAbsAngles()[YAW];
float scale = 64;
Vector offset;
offset.z = 0;

Vector pos = pBaseEntity->GetAbsOrigin();
Vector2D pospanel = WorldToMap( pos );
pospanel = MapToPanel( pospanel );
if (PlayerInPanel(pospanel) == false)
{
	return;
}
offset.x = -scale;offset.y = scale;
VectorYawRotate( offset, viewAngle, offset );

Vector2D pos1 = WorldToMap( pos + offset );
offset.x = scale;offset.y = scale;
VectorYawRotate( offset, viewAngle, offset );

Vector2D pos2 = WorldToMap( pos + offset );
offset.x = scale;offset.y = -scale;
VectorYawRotate( offset, viewAngle, offset );

Vector2D pos3 = WorldToMap( pos + offset );
offset.x = -scale;offset.y = -scale;
VectorYawRotate( offset, viewAngle, offset );

Vector2D pos4 = WorldToMap( pos + offset );
Vertex_t points[4] =
{
	Vertex_t( MapToPanel ( pos1 ), Vector2D(0,0) ),
	Vertex_t( MapToPanel ( pos2 ), Vector2D(1,0) ),
	Vertex_t( MapToPanel ( pos3 ), Vector2D(1,1) ),
	Vertex_t( MapToPanel ( pos4 ), Vector2D(0,1) )
};
surface()->DrawTexturedPolygon( 4, points );
Hope its will not be considerate as cheat
And sorry for the link

( PS : See cMapOverview.cpp @296 VisualizePlayer() )
Cr3V3TT3 is offline
Send a message via MSN to Cr3V3TT3
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode