UnhappyHelpNeed help with thing

Posts 13 of 3 · Page 1 of 1
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
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();
Posts 13 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?