Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [CODE] SCAnnouncement class definition
Re: [CODE] SCAnnouncement class definition [message #465830 is a reply to message #465778] Mon, 09 April 2012 16:05 Go to previous messageGo to previous message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma:
Colonel
halo2pac wrote on Sun, 08 April 2012 21:20

I'm confused, if they are part of the engine... why are you showing them here? Just so you can make people aware of them or is it because your doing something special with the code that is beyond the default?


This displays a string from strings.tdb and plays the associated sound. It's a good way to send certain messages to players who aren't running tt.dll. Of course the string needs to be in the strings database but there's quite a bit of stuff in there.

void Send_Announcement_Player(int ID,int StringID) {
	SCAnnouncement *RadioEvent = (SCAnnouncement*)operator new(sizeof(SCAnnouncement));
	RadioEvent->Constructor();
	RadioEvent->AnnouncementID = StringID;
	RadioEvent->ID = -1;
	RadioEvent->IconID = 0;
	RadioEvent->AnnouncementType = 0;
	RadioEvent->PlayerType = 0;
	RadioEvent->Set_Object_Dirty_Bits(ID,NetworkObjectClass::BIT_CREATION);
	Send_Object_Update(RadioEvent,ID);
	RadioEvent->Set_Delete_Pending();
	delete RadioEvent;
}

Send_Announcement_Player(ID,1496);


index.php?t=getfile&id=14109&private=0


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [CODE] cScTextObj class definition
Next Topic: [Map]C&C_aLittleMapv2.1
Goto Forum:
  


Current Time: Sun Dec 22 19:37:33 MST 2024

Total time taken to generate the page: 0.00936 seconds