ItsMods

Full Version: Quick Questin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Code:
if(eAttacker != self && sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE" )
    {
        iDamage = 1;
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
    }

Shouldn't this make you immune to frag grenades? (Written in CodeCallback_PlayerDamage)

To be more specific, if you throw a nade and suicide you becoma a zombie and when the frag explodes the humans die and they also become zombies.
Code:
if(eAttacker != self && sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE" )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }
(08-18-2011, 22:46)Pozzuh Wrote: [ -> ]
Code:
if(eAttacker != self && sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE" )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }

Didnt work, there was 3 people and one of them died. One of them always die(died with the code I give above too) Fuu
Code:
if(eAttacker != self && (sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE") )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }

not sure.
(08-18-2011, 22:52)Pozzuh Wrote: [ -> ]
Code:
if(eAttacker != self && (sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE") )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }

not sure.

didnt work.
There must be something else wrong since it doesn't happen all the time.
Code:
    if(self.team == "humans_team_here" && issubstr(sWeapon, "frag"))
    {
        return;
    }
It always kill only one person even if there was 6.

Edit: Fixed. Nukem rulz!
(08-18-2011, 23:03)Lemon Wrote: [ -> ]It always kill only one person even if there was 6.

Edit: Fixed. Nukem rulz!

It would be handy to post the fix for other people -____________-
It should work for other people, it was about my code.
Pages: 1 2