Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help No points on suicide
#1
I want zombies to gain points only when they are killed by the enemy team.
I used the following codes but they didn't work.

Code:
    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
    
    if(self.doZombie && eAttacker.team == "allies")
    {
        self.bounty += 75;
        self notify("CASH");
    }

Code:
    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
    
    if(self.doZombie && self.sMeansOfDeath != "MOD_SUICIDE")
    {
        self.bounty += 75;
        self notify("CASH");
    }

Code:
if(self.doZombie && eAttacker != self)
    {
        self.bounty += 75;
        self notify("CASH");
    }

Code:
if(eAttacker.team == "allies")
    {
        eAttacker notify("pointkill");
        self.bounty += 75;
        self notify("CASH");
    }


I've added this to onplayerspawned(); and it's working now. However, I still want to know why don't the codes above work.
Code:
if(self.pers["suicides"] >= 1)
    {
        self.pers["suicides"] = 0;
        self.bounty -= 75;
        self notify("CASH");
    }

Reply

#2
put it above it
Code:
if(self.doZombie && eAttacker.team == "allies")
    {
        self.bounty += 75;
        self notify("CASH");
    }

    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
(07-18-2011, 13:59)iAegle Wrote: put it above it
Code:
if(self.doZombie && eAttacker.team == "allies")
    {
        self.bounty += 75;
        self notify("CASH");
    }

    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);

Doesn't matter.
Reply

#4
if(self.pers["change this to killed by enemy mabey"] - self.cd > 0)
{
self.bounty += 75;
self.cd++;
self notify("CASH");
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#5
(07-18-2011, 14:13)birdplane Wrote: if(self.pers["change this to killed by enemy mabey"] - self.cd > 0)
{
self.bounty += 75;
self.cd++;
self notify("CASH");

self.cd?
Reply

#6
(07-18-2011, 14:09)Lemon Wrote:
(07-18-2011, 13:59)iAegle Wrote: put it above it
Code:
if(self.doZombie && eAttacker.team == "allies")
    {
        self.bounty += 75;
        self notify("CASH");
    }

    [[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, timeOffset, deathAnimDuration);

Doesn't matter.

It does, because [[level.callbackPlayerKilled]] is not threaded.

anyway, open globallogic_player.gsc and modify the Callback_PlayerKilled(eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration) function instead of what you did.
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#7
(07-18-2011, 14:16)Lemon Wrote:
(07-18-2011, 14:13)birdplane Wrote: if(self.pers["change this to killed by enemy mabey"] - self.cd > 0)
{
self.bounty += 75;
self.cd++;
self notify("CASH");

self.cd?

found self cd inside your original version of the mod
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#8
(07-18-2011, 14:22)birdplane Wrote:
(07-18-2011, 14:16)Lemon Wrote:
(07-18-2011, 14:13)birdplane Wrote: if(self.pers["change this to killed by enemy mabey"] - self.cd > 0)
{
self.bounty += 75;
self.cd++;
self notify("CASH");

self.cd?

found self cd inside your original version of the mod

I changed it.

@iAegle it was above that function when I tested. I'll try modifying globallogic_player.gsc now.
edit: @iAegle: Didn't worked.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,591 10-27-2013, 08:23
Last Post: robinvm
  Help DONATE points for weapons [HARD] Tony. 10 7,453 05-24-2013, 10:59
Last Post: Pozzuh
Heart Help give points for the deaths of bullets [HARD] Tony. 11 6,653 03-11-2013, 19:02
Last Post: Nekochan
  [Request] !shop hud to show player with highest points hillbilly 3 3,260 02-21-2013, 16:46
Last Post: hillbilly
  Help Mw3 Shop with points + Database 99IRock 2 3,149 12-09-2012, 22:21
Last Post: 99IRock
  Help Spawn on predefined points problem islamsaab 2 2,831 09-29-2012, 21:23
Last Post: islamsaab
  change points assignment kerm007 1 1,752 06-09-2012, 13:05
Last Post: Pozzuh
  points system kerm007 0 1,593 01-04-2012, 16:12
Last Post: kerm007
Shocked The one who can guess my avatar gets all my points JariZ 10 5,663 09-22-2011, 09:23
Last Post: JariZ
  FUCK YOU POINTS 4FunPlayin 22 11,019 08-14-2011, 19:00
Last Post: AZUMIKKEL

Forum Jump:


Users browsing this thread:
1 Guest(s)

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