Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Is it possible to send player tag updates to select players
Re: Is it possible to send player tag updates to select players [message #474105 is a reply to message #474093] Sat, 08 September 2012 09:02 Go to previous messageGo to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma:
General (4 Stars)
Simplify it first so it runs for only one guy in spectate.

Try:

cP->customTag.Format(L"Sniping");
Send_Object_Update(obj, PlayerID);
cP->customTag.Format(L"");


Or:

cP->customTag.Format(L"Sniping");
cP->Set_Object_Dirty_Bits(PlayerID, NetworkObjectClass::BIT_CREATION);
Send_Object_Update(obj, PlayerID);
cP->customTag.Format(L"");


Otherwise you can attach an object or float an object above sniping players for one second and only have these shown for spectating players. I recommend you add a simple check at the start of OnThink() to make the code only run every second or so. Use GetTickCount64().


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Sat, 08 September 2012 09:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SP Character Voices to Online
Next Topic: Feel like making something
Goto Forum:
  


Current Time: Sun Dec 22 04:29:42 MST 2024

Total time taken to generate the page: 0.00918 seconds