Discussion:
[hlcoders] Takedamage, HL 2 MP - Source SDK 2013
SK G
2015-11-10 22:54:40 UTC
Permalink
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

Loading...