Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request exp request
#1
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
Reply

#2
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;
}
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
(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
Reply

#4
In callbacksetup.gsc find the function master posted and replace it with the function above.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Request for Assistance with Modding COD: BO using Mod Tools one1lion 9 6,722 09-17-2013, 21:04
Last Post: one1lion
  [Request] Airdrop Heaven mod The_Reaper_1 0 2,473 09-10-2013, 14:13
Last Post: The_Reaper_1
  [Request] Request for !afk and !balance plugins. UlTiiMaTuM 3 3,600 09-10-2013, 02:13
Last Post: UlTiiMaTuM
  [REQUEST] Antinoob mod sleepunknot 3 3,160 05-15-2013, 20:10
Last Post: sleepunknot
  Moab and server request CHRISLUVMSR 6 4,764 04-17-2013, 18:28
Last Post: X-Track
  [Request] Teknogods Expert's Classes 1.5 request The6thMessenger 0 2,450 04-13-2013, 08:22
Last Post: The6thMessenger
  [Request] Modded Zombies Kinodertoten Request The6thMessenger 3 3,841 03-30-2013, 12:12
Last Post: surtek
  [request] QCZM for black ops wattz3 1 2,559 03-27-2013, 13:32
Last Post: Nekochan
Brick [Request] iPrintLn Automatic time XxBRxX 13 7,523 12-20-2012, 08:46
Last Post: 99IRock
  Plugin request: Little Icon (defend,protect,plant) igp_gio 5 4,149 11-05-2012, 13:54
Last Post: raminr63

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.