Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Quick Questin
#1
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.
Reply

#2
Code:
if(eAttacker != self && sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE" )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }
[Image: MaEIQ.png]
Reply

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

#4
Code:
if(eAttacker != self && (sMeansOfDeath == "MOD_GRENADE_SPLASH" || sMeansOfDeath == "MOD_GRENADE" || sMeansOfDeath == "MOD_EXPLOSIVE") )
    {
        eAttacker iprintlnbold("Fucking Glitcher. Gotcha!");
        return;
    }

not sure.
[Image: MaEIQ.png]
Reply

#5
(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.
Reply

#6
There must be something else wrong since it doesn't happen all the time.
[Image: MaEIQ.png]
Reply

#7
Code:
    if(self.team == "humans_team_here" && issubstr(sWeapon, "frag"))
    {
        return;
    }
helped ya? rep me +
Reply

#8
It always kill only one person even if there was 6.

Edit: Fixed. Nukem rulz!
Reply

#9
(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 -____________-
[Image: MaEIQ.png]
Reply

#10
It should work for other people, it was about my code.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Auto Quick-Scope V1 for Black Ops d0h! 25 39,579 01-02-2013, 11:55
Last Post: joey
  [Release] Quick YouTube Arteq 17 8,460 12-23-2012, 17:41
Last Post: Arteq
  Help quick message raminr63 6 2,628 02-09-2012, 19:08
Last Post: Rendflex
  quick forum suggestion. Pozzuh 13 5,723 08-15-2011, 13:09
Last Post: Pozzuh
  Help Quick question FRAN710 11 4,727 08-09-2011, 13:59
Last Post: Gladio
  [Request] Quick scope execute5150 9 4,215 06-09-2011, 01:24
Last Post: T3h vICE
  quick question allthatremains 2 1,651 12-13-2010, 20:53
Last Post: TheSaboteur

Forum Jump:


Users browsing this thread:
1 Guest(s)

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