AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to add an Entity to the player Radar ? (https://forums.alliedmods.net/showthread.php?t=154698)

dias 04-12-2011 02:30

How to add an Entity to the player Radar ?
 
How to add an entity to player radar. ?
Like this:
http://whisper.ausgamers.com/wiki/images/Rdrdpbm_hd.gif

Mini_Midget 04-12-2011 06:51

Re: How to add an Entity to the player Radar ?
 
For CT's: Send the HostagePos and HostageK messages.
(Note: It blinks for 2 seconds then goes away)

For T's: Send the BombDrop message.
I personally haven't used this message but should be somewhat similar.

dias 04-12-2011 09:06

Re: How to add an Entity to the player Radar ?
 
What about for both ?.
Can you make an example code please ?

Hunter-Digital 04-13-2011 02:20

Re: How to add an Entity to the player Radar ?
 
HostagePos and HostageK works for both teams.

Example code:
Code:

        message_begin(MSG_BROADCAST, gMsg_HostagePos)
        write_byte(0)
        write_byte(DotID)
        write_coord(iOrigin[0])
        write_coord(iOrigin[1])
        write_coord(iOrigin[2])
        message_end()

        message_begin(MSG_BROADCAST, gMsg_HostageK)
        write_byte(DotID)
        message_end()

Assign and replace variables accordingly.

ConnorMcLeod 04-13-2011 03:57

Re: How to add an Entity to the player Radar ?
 
Use HostagePos only when you initialize the thing, and send HostageK every 2.0 seconds.
If the entity is moving, then send again HostagePos.

dias 04-13-2011 06:15

Re: How to add an Entity to the player Radar ?
 
Oh. Thanks You so much :D. Now i understand about this
@Hunter-Digital:
- Is iOrigin is the origin of the Entity ?

Mini_Midget 04-13-2011 09:16

Re: How to add an Entity to the player Radar ?
 
Yes.

dias 04-13-2011 09:29

Re: How to add an Entity to the player Radar ?
 
Oh Thank :D


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

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