Fix for amb437

dod_set_user_kills & dod_set_user_score no longer have the dead scoreboard class side effect.

dod_set_pl_deaths comment has been updated to reflect the side effect.
This commit is contained in:
Steve Dudenhoeffer
2007-08-03 17:35:12 +00:00
parent c5e36a4e3c
commit 2bc6d965f6
4 changed files with 23 additions and 1 deletions

View File

@ -154,6 +154,7 @@ static cell AMX_NATIVE_CALL set_user_score(AMX *amx, cell *params){
*( (int*)pPlayer->pEdict->pvPrivateData + STEAM_PDOFFSET_SCORE ) = params[2];
if ( params[3]){
/*
//ScoreShort message
MESSAGE_BEGIN(MSG_ALL,gmsgScoreShort);
WRITE_BYTE(pPlayer->index);
@ -162,6 +163,11 @@ static cell AMX_NATIVE_CALL set_user_score(AMX *amx, cell *params){
WRITE_SHORT( *( (int*)pPlayer->pEdict->pvPrivateData + STEAM_PDOFFSET_DEATHS ) );
WRITE_BYTE(1);
MESSAGE_END();
*/
MESSAGE_BEGIN(MSG_ALL, gmsgObjScore);
WRITE_BYTE(pPlayer->index);
WRITE_SHORT(params[2]);
MESSAGE_END();
}
}
@ -177,7 +183,9 @@ static cell AMX_NATIVE_CALL set_user_frags(AMX *amx, cell *params){
pPlayer->pEdict->v.frags = (float)params[2];
if ( params[3]){
/*
//ScoreShort message
MESSAGE_BEGIN(MSG_ALL,gmsgScoreShort);
WRITE_BYTE(pPlayer->index);
WRITE_SHORT( *( (int*)pPlayer->pEdict->pvPrivateData + STEAM_PDOFFSET_SCORE ) );
@ -185,6 +193,11 @@ static cell AMX_NATIVE_CALL set_user_frags(AMX *amx, cell *params){
WRITE_SHORT( *( (int*)pPlayer->pEdict->pvPrivateData + STEAM_PDOFFSET_DEATHS ) );
WRITE_BYTE(1);
MESSAGE_END();
*/
MESSAGE_BEGIN(MSG_ALL, gmsgFrags);
WRITE_BYTE(pPlayer->index);
WRITE_SHORT((int)pPlayer->pEdict->v.frags);
MESSAGE_END();
}
}
return 1;