Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ harvester
C++ harvester [message #453014] Thu, 01 September 2011 04:42 Go to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Need help with:

gmscripts.cpp
void MDB_SSGM_Harvester::Custom(GameObject *obj, int message, int param, GameObject *sender) {
	if (Settings->LogHarvesterEvents) {
		if (message == 0x52520001)
		{
			if (Get_Object_Type(obj) == 1)
			{
				FDSMessage(StrFormat("The GDI Harvester is now docking and unloading."),"_HARVESTER");
				Create_2D_WAV_Sound_Team("m00evag_dsgn0047i1evag_snd.wav",1);
			}
			else
			{
				FDSMessage(StrFormat("The Nod Harvester is now docking and unloading."),"_HARVESTER");
				Create_2D_WAV_Sound_Team("m00evan_dsgn0042i1evan_snd.wav",0);
			}
		}
		else if (message == 0x52520000) 
		{
			if (Get_Object_Type(obj) == 1)
			{
				FDSMessage(StrFormat("The GDI Harvester is collecting Tiberium."),"_HARVESTER");
			}
			else
			{
				FDSMessage(StrFormat("The Nod Harvester is collecting Tiberium."),"_HARVESTER");
			}
		}
		else if (message == 0x52520002) 
		{
			if (Get_Object_Type(obj) == 1)
			{
				FDSMessage(StrFormat("The GDI Harvester is returning to the Refinery."),"_HARVESTER");
			}
			else
			{
				FDSMessage(StrFormat("The Nod Harvester is returning to the Refinery."),"_HARVESTER");
			}
		}
		else if (message == 0x52520003) 
		{
			if (Get_Object_Type(obj) == 1)
			{
				FDSMessage(StrFormat("The GDI Harvester is heading for Tiberium."),"_HARVESTER");
			}
			else
			{
				FDSMessage(StrFormat("The Nod Harvester is heading for Tiberium."),"_HARVESTER");
			}
		}
	}
}


gmscripts.h
class MDB_SSGM_Harvester : public MDB_SSGM_Vehicle {
	void Created(GameObject *obj);
	void Damaged(GameObject *obj, GameObject *damager, float damage);
	void Timer_Expired(GameObject *obj, int number);
	void Custom(GameObject *obj, int message, int param, GameObject *sender);
	bool PlayDamage;
};


but i dont work, the LogHarvesterEvents settings is true


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: C++ harvester [message #453016 is a reply to message #453014] Thu, 01 September 2011 05:42 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
No idea where you get my code from, but the messages are new so you would need my dll to fix it.

Bückstabü!
Re: C++ harvester [message #453017 is a reply to message #453014] Thu, 01 September 2011 05:47 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

its SSGM2.0.2XWFDS from Xpert

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Thu, 01 September 2011 09:44]

Report message to a moderator

Re: C++ harvester [message #453024 is a reply to message #453017] Thu, 01 September 2011 06:39 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Pelzmann wrote on Thu, 01 September 2011 05:47

its from Hex`s SSGM2.0.2XWFDS


LOL


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: C++ harvester [message #453038 is a reply to message #453024] Thu, 01 September 2011 09:37 Go to previous message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Gen_Blacky wrote on Thu, 01 September 2011 15:39

Pelzmann wrote on Thu, 01 September 2011 05:47

its from SSGM2.0.2XWFDS


LOL


very useful.


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Previous Topic: C++ complie SSGM2.0.2XWFDS
Next Topic: A notice to anyone planning to write code for scripts 4.0
Goto Forum:
  


Current Time: Sun Dec 01 13:52:47 MST 2024

Total time taken to generate the page: 0.00888 seconds