C++ harvester [message #453014] |
Thu, 01 September 2011 04:42 |
|
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 |
|
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ü!
|
|
|
|
|
|