Did you check if the zombie is alive?
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
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]
YuDi21 (06-13-2011)
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();
YuDi21 (06-13-2011)