SK G
2015-11-10 22:54:40 UTC
How can add XP with takedamage ?
/*
CBaseEntity *pInflictor = info.GetInflictor();
CBaseEntity *pKiller = info.GetAttacker();
CHL2MP_Player *pScorer = ToHL2MPPlayer(GetDeathScorer(pKiller, pInflictor));
if (pScorer && pKiller == pInflictor && pKiller != pVictim &&
PlayerRelationship(pKiller, pVictim) == GR_NOTTEAMMATE)
pScorer->AddXP(1);
*/
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
/*
CBaseEntity *pInflictor = info.GetInflictor();
CBaseEntity *pKiller = info.GetAttacker();
CHL2MP_Player *pScorer = ToHL2MPPlayer(GetDeathScorer(pKiller, pInflictor));
if (pScorer && pKiller == pInflictor && pKiller != pVictim &&
PlayerRelationship(pKiller, pVictim) == GR_NOTTEAMMATE)
pScorer->AddXP(1);
*/
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders