[TUTORIAL] Disable gravestone And Expire Time
Search :
[P2PMessages.h
Quote:
struct PKT_S2C_CreateGravestone_s : public DefaultPacketMixin<PKT_S2C_CreateGravestone>
Replace all function :
Quote:
struct PKT_S2C_CreateGravestone_s : public DefaultPacketMixin<PKT_S2C_CreateGravestone>{
//gp2pnetid_t spawnID;
//r3dPoint3D pos;
//BYTE GravestoneInfo;
char Aggressor[64];
char Victim[64];
};
Search :
On obj_ServerGravestone
Quote:
DefaultPacket* obj_ServerGravestone::NetGetCreatePacket(int* out_size)
Replace all function :
Quote:
DefaultPacket* obj_ServerGravestone::NetGetCreatePacket(int* out_size)
{
static PKT_S2C_CreateGravestone_s n;
//n.spawnID = toP2pNetId(GetNetworkID());
// n.pos = GetPosition();
//n.GravestoneInfo = (BYTE)srvObjParams_.CharID;
r3dscpy(n.Aggressor, srvObjParams_.Var1.c_str());
r3dscpy(n.Victim, srvObjParams_.Var2.c_str());
// *out_size = sizeof(n);
return &n;
}
GO WarZ.sln
Search :
IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_CreateGravestone)
Replace :
Quote:
IMPL_PACKET_FUNC(ClientGameLogic, PKT_S2C_CreateGravestone){
//r3dOutToLog("obj_Gravestone %d\n", n.spawnID); //r3d_assert(GameWorld().GetNetworkObject(n.spawnID) == NULL);
//obj_Gravestone* obj = (obj_Gravestone*)srv_CreateGameObject("obj_Gravestone", "obj_Gravestone", n.pos, 0, (void*)&n.GravestoneInfo);
//obj->SetNetworkID(n.spawnID);
//obj->m_Aggressor = n.Aggressor;
//obj->m_Victim = n.Victim;
//obj->m_GotData = false;
//obj->OnCreate();
}
//////////////////////////////////////////////////////For Expire Time
Search :
Quote:
const static float Lifetime = 3 * 60 * 60; // 3 hours of realtime
const static float DEV_EVENT_LIFETIME = 15 * 60;
Default 3 Hours:junglejane:
Re: [TUTORIAL] Disable gravestone And Expire Time/////
Re: [TUTORIAL] Disable gravestone And Expire Time/////
You dont need to do this man -_-
Just edit player death function its very easy than this LOL
But Gj
Re: [TUTORIAL] Disable gravestone And Expire Time/////
Quote:
Originally Posted by
Burak DatLife
You dont need to do this man -_-
Just edit player death function its very easy than this LOL
But Gj
Dude, i am removed the grave stone function. -_-
Re: [TUTORIAL] Disable gravestone And Expire Time/////
Quote:
Originally Posted by
Adnan DatLife
Dude, i am removed the grave stone function. -_-
Why you removed ? You dont need to remove function just comment out spawn gravestone line -_-
You dont need edit this code.
Code:
Replace all function :
You are not replacing any function just ruining the system.
Re: [TUTORIAL] Disable gravestone And Expire Time
Re: [TUTORIAL] Disable gravestone And Expire Time
Because of the fact that the gravestone is a server sided controlled object, you can just search in the server for the package PKT_S2C_CreateGravestone and simply remove it, done. You dont have to remove the whole package or disable it in the client, because if the server never sends that package then its not created on both sides.
Re: [TUTORIAL] Disable gravestone And Expire Time