Hi RageZone!
Somebody deleted the ,Kill Feed" (When somebody kill some1 the chat is showing) release from the ragezone.
Can anybody share it?
Thank you, D4ni
Printable View
Hi RageZone!
Somebody deleted the ,Kill Feed" (When somebody kill some1 the chat is showing) release from the ragezone.
Can anybody share it?
Thank you, D4ni
Well Dani, do not know if you remember me. Gave me a map to a team its a long time.
But this code here that you want.
Code:
Now you will see this line:Quote:
void ServerGameLogic::DoKillPlayer(GameObject* sourceObj, obj_ServerPlayer* targetPlr, STORE_CATEGORIES weaponCat, bool forced_by_server, bool fromPlayerInAir, bool targetPlayerInAir )
Quote:
// vars
under that paste this code:
Quote:
char plr2msg[128] = {0};
if(IsServerPlayer(sourceObj))
{
obj_ServerPlayer * killedByPlr = ((obj_ServerPlayer*)sourceObj);
if (targetPlr->profile_.CustomerID == killedByPlr->profile_.CustomerID)
{
sprintf(plr2msg, "Commit Suicide");
char chatmessage[128] = {0};
PKT_C2C_ChatMessage_s n;
sprintf(chatmessage, "%s Suicided.",targetPlr->loadout_->Gamertag);
r3dscpy(n.gamertag, "<System>");
r3dscpy(n.msg, chatmessage);
n.msgChannel = 1;
n.userFlag = 2;
p2pBroadcastToAll(NULL, &n, sizeof(n), true);
}
else
{
sprintf(plr2msg, "KILLED BY %s", killedByPlr->loadout_->Gamertag);
// Enable this below to if you have "Player exp from my other tutorial"
//gServerLogic.AddPlayerReward(killedByPlr, RWD_PlayerKill, 0);// the 0 can be removed if your not using "Allright source"
char chatmessage[128] = {0};
PKT_C2C_ChatMessage_s n;
sprintf(chatmessage, "%s Killed By %s.",targetPlr->loadout_->Gamertag,killedByPlr->loadout_->Gamertag);
r3dscpy(n.gamertag, "<System>");
r3dscpy(n.msg, chatmessage);
n.msgChannel = 1;
n.userFlag = 2;
p2pBroadcastToAll(NULL, &n, sizeof(n), true);
}
}
else if(sourceObj->isObjType(OBJTYPE_Zombie))
{
sprintf(plr2msg, "EATEN BY ZOMBIE");
char chatmessage[128] = {0};
PKT_C2C_ChatMessage_s n;
sprintf(chatmessage, "Zombies ate %s",targetPlr->loadout_->Gamertag);
r3dscpy(n.gamertag, "<System>");
r3dscpy(n.msg, chatmessage);
n.msgChannel = 1;
n.userFlag = 2;
p2pBroadcastToAll(NULL, &n, sizeof(n), true);
}
else
{
sprintf(plr2msg, "Commit Suicide"); }