Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Set_Obj_Radar_Blip_Color doesn't work on-line
Re: Set_Obj_Radar_Blip_Color doesn't work on-line [message #487606 is a reply to message #487605] Fri, 16 May 2014 01:18 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
The 4.1 radar sync netcode is in Export_Rare, try flagging the dirty bit to tell the engine it needs to send an update over the network;

PhysicalGameObj *pObj = obj->As_PhysicalGameObj();
if (pObj)
{
  Commands->Set_Obj_Radar_Blip_Color(obj, 123456);
  pObj->Set_Object_Dirty_Bit(NetworkObjectClass::BIT_RARE, true);
}


I can't find the code behind the actual setting of the blip color on the PhysicalGameObj via the web interface so I can't check if it is setting the dirty bit internally or not, but there's a good chance it isn't if you're seeing problems with it. If I think on I'll look for it properly when I get home and have a proper copy of the source code to look at.




It's also worth noting that a VehicleGameObj will reset its radar blip color every time a driver enters or the last person exits the vehicle.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Fri, 16 May 2014 01:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Move refill button on sidebar to right side (hotkey 5)
Next Topic: Level Edit
Goto Forum:
  


Current Time: Sun Dec 22 14:54:57 MST 2024

Total time taken to generate the page: 0.01266 seconds