Raised This Month: $ Target: $400
 0% 

[HELP] Set CT on T radar (and vice-versa)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 04-14-2009 , 00:22   [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #1

Is it possible to put T's positions on the CT's radar and CT's positions on the T's radar?
__________________
minimiller is offline
Send a message via MSN to minimiller
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-14-2009 , 00:28   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #2

Yes with these messages:
"BombPickup", "BombDrop", "HostageK", "HostagePos" here is how to use them. Hostage messages for CT, and bomb one for T.
http://wiki.amxmodx.org/Half-Life_1_Game_Events

You need to get the coordonates of the players and put them in these messages.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 04-14-2009 , 00:37   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #3

wickedsick
cheers dude
ill take a look soon
=]

+karma

EDIT:
:sad face:
Quote:
Radar:
Draws/updates the dot on the HUD radar which is indicate the given player position.

Note: Works for teammates only.
Why woould those other events help?
__________________

Last edited by minimiller; 04-14-2009 at 00:40. Reason: edit
minimiller is offline
Send a message via MSN to minimiller
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-14-2009 , 02:16   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #4

For CTs you can show "hostages" where the Ts are.
For Ts you can show "bombs*" where the CTs are.

* - It was said that only one dropped bomb can be shown on Ts radar, however, if you give more than one bomb to Ts, have them drop the bombs, you can see both bombs on the radar.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 04-14-2009 , 02:33   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #5

Quote:
Originally Posted by Emp` View Post
For CTs you can show "hostages" where the Ts are.
For Ts you can show "bombs*" where the CTs are.

* - It was said that only one dropped bomb can be shown on Ts radar, however, if you give more than one bomb to Ts, have them drop the bombs, you can see both bombs on the radar.

O rite wicked
That would be enough i think cos ill probly switch the players team so every1 is on CT and make him see the CTs as theoretical "bomb"'s, and for the CTs make the T a theoretical "hostage"

+k for you toooooo
__________________
minimiller is offline
Send a message via MSN to minimiller
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-05-2010 , 11:27   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #6

Hi, I know this is an old thread, but I have a similiar request.

I would like to add a red and a blue dot to the radar. This should be work for all players.

I have tried to create this feature but the following code is not working. Only the red dot will draw, but only for terrorists.

PHP Code:
public func_draw_on_radar(taskid){
    new 
Float:f_vOrigin[3][3], vOrigin[3][3]

    
pev(g_iEntity[TEAM_T], pev_originf_vOrigin[TEAM_T])
    
pev(g_iEntity[TEAM_CT], pev_originf_vOrigin[TEAM_CT])
    
FVecIVec(f_vOrigin[TEAM_T], vOrigin[TEAM_T])
    
FVecIVec(f_vOrigin[TEAM_CT], vOrigin[TEAM_CT])

    for (new 
id 1id <= g_iMaxPlayersid++){
        if (
is_user_alive(id) && !is_user_bot(id)){

            
// Must be called before we can update the position of the red dot
            
message_begin(MSG_ONEgMsgBombPickup, { 000}, id)
            
message_end()

            
// Draw/Update red dot
            
message_begin(MSG_ONEgMsgBombDrop, { 000}, id)
            
write_coord(vOrigin[TEAM_T][0])
            
write_coord(vOrigin[TEAM_T][1])
            
write_coord(vOrigin[TEAM_T][2])
            
write_byte(0)
            
message_end()

            
// Draw/Update blue dot
            
message_begin(MSG_ONEgMsgHostagePos, { 000}, id)
            
write_byte(0)
            
write_byte(6)
            
write_coord(vOrigin[TEAM_CT][0])
            
write_coord(vOrigin[TEAM_CT][1])
            
write_coord(vOrigin[TEAM_CT][2])
            
message_end()

/*            // Remove blue dot
            message_begin(MSG_ONE, gMsgHostageK, { 0, 0, 0}, id)
            write_byte(6)
            message_end()
*/
        
}
    }

Thanks in advance for any ideas
Leon

Last edited by Leon M.; 05-05-2010 at 13:52. Reason: Code added
Leon M. is offline
Amonel
Senior Member
Join Date: May 2009
Old 05-05-2010 , 20:34   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #7

Don't know if it helps, but you could use Motion Radar
Amonel is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 05-06-2010 , 00:20   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #8

Hmm, I don't know what you mean.
Leon M. is offline
Amonel
Senior Member
Join Date: May 2009
Old 05-06-2010 , 04:29   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #9

if you are CT you can see on radar the location of your teammates.

he wants to make T appear on CT radar with a diferent color
Amonel is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-06-2010 , 05:13   Re: [HELP] Set CT on T radar (and vice-versa)
Reply With Quote #10

It may help you : http://forums.alliedmods.net/showthread.php?t=94042
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 02:23.


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