ItsMods

Full Version: exp request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ok i need a code where if you get a certain amount of kills or higher like say 0-10 or 10-20... then something is defined like self.example = 1; or self.example = 2;..... thx if you can
In maps\mp\gametypes\_callbacksetup.gsc:
Code:
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
{
    self endon("disconnect");
    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
        //Note that we need to calculate this after the damage is already given just in-case the kill does not count
    if(eAttacker.pers["kills"] > 10)
        eAttacker.something = 1;
}
(10-03-2011, 01:29)master131 Wrote: [ -> ]In maps\mp\gametypes\_callbacksetup.gsc:
Code:
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration)
{
    self endon("disconnect");
    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
        //Note that we need to calculate this after the damage is already given just in-case the kill does not count
    if(eAttacker.pers["kills"] > 10)
        eAttacker.something = 1;
}

how do i use this... can u give an example
In callbacksetup.gsc find the function master posted and replace it with the function above.