AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Set CT on T radar (and vice-versa) (https://forums.alliedmods.net/showthread.php?t=90087)

minimiller 04-14-2009 00:22

[HELP] Set CT on T radar (and vice-versa)
 
Is it possible to put T's positions on the CT's radar and CT's positions on the T's radar?

ot_207 04-14-2009 00:28

Re: [HELP] Set CT on T radar (and vice-versa)
 
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.

minimiller 04-14-2009 00:37

Re: [HELP] Set CT on T radar (and vice-versa)
 
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?

Emp` 04-14-2009 02:16

Re: [HELP] Set CT on T radar (and vice-versa)
 
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.

minimiller 04-14-2009 02:33

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

Originally Posted by Emp` (Post 804945)
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

Leon M. 05-05-2010 11:27

Re: [HELP] Set CT on T radar (and vice-versa)
 
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

Amonel 05-05-2010 20:34

Re: [HELP] Set CT on T radar (and vice-versa)
 
Don't know if it helps, but you could use Motion Radar

Leon M. 05-06-2010 00:20

Re: [HELP] Set CT on T radar (and vice-versa)
 
Hmm, I don't know what you mean.

Amonel 05-06-2010 04:29

Re: [HELP] Set CT on T radar (and vice-versa)
 
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

Arkshine 05-06-2010 05:13

Re: [HELP] Set CT on T radar (and vice-versa)
 
It may help you : http://forums.alliedmods.net/showthread.php?t=94042


All times are GMT -4. The time now is 02:23.

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