Results 1 to 3 of 3
  1. #1
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic

    Unhappy Need help with thing

    Hi all.
    I'm doing my Rotu1.0 mod for MW2
    and last time i have problem with Exploding Barrels
    When i placed barrel, and zombie next to barrel - barrel explodes, but if i will place barrel second time, barrel explodes without zombie, like if zom not next to a barrel!
    Code:


    barrelDeath(owner, item)
    {
    self endon("exploded_barrel");
    //self endon("zombie_died");
    //level endon("test");
    //self endon("death");
    while(1)
    {
    for( i = 0; i < level.zombies.size; i++ )
    {
    bot = level.zombies[i];
    if(distance(self.origin, bot.body.origin) < 77)
    {
    PlayFX(level._system_effect["explosion_default"], self.origin);
    self PlaySound("explo_metal_rand");
    owner radiusDamage( self.origin, 250, 360, 290, owner );
    self delete();
    self notify("exploded_barrel");
    return;
    }
    }
    wait .1;
    }
    }
    Sorry for bad english

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,667
    My Mood
    Breezy
    Did you check if the zombie is alive?
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following User Says Thank You to master131 For This Useful Post:

    YuDi21 (06-13-2011)

  4. #3
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    I used this to make a gas container for a flamethrower, so when they hit me on back it explodes, in quarry works.


    Code:
                Barrel = spawn( "script_model", self.origin );
                Barrel.angles = (50,0,0);
                Barrel setModel( "com_barrel_benzin" );
                Barrel thread maps\mp\_explosive_barrels::explodable_barrel_think();

  5. The Following User Says Thank You to Yamato For This Useful Post:

    YuDi21 (06-13-2011)