void() FlameThink2 =
{
	T_NewRadiusDamage(self,self.owner,15,world,300);
	self.nextthink=time+0.1;
	if (self.blasttimer<time)
		remove(self);
};

void() FlameThink =
{
	T_NewRadiusDamage(self,self.owner,30,world,500);
	if (self.blasttimer<time)
	{
		self.think=FlameThink2;
		self.effects=EF_DIMLIGHT;
		self.blasttimer=time+10;
	}
	self.nextthink=time+0.1;
};

void() NapalmFlameThink =
{
	local float tmp;
	self.origin=self.chain.origin;
	tmp=pointcontents(self.origin);
	if ((tmp==CONTENT_WATER)||(tmp==CONTENT_SLIME)||(tmp==CONTENT_LAVA))
	{
		remove(self);
		return;
	}
	T_NewRadiusDamage(self,self.owner,30,world,500);
	if (self.blasttimer<time)
	{
		self.think=NapalmFlameThink2;
		self.effects=EF_DIMLIGHT;
		self.blasttimer=time+10;
	}
	
	self.nextthink=time+0.1;

};

void() NapalmFlameThink2 =
{
	local float tmp;
	self.origin=self.chain.origin;
	tmp=pointcontents(self.origin);
	if ((tmp==CONTENT_WATER)||(tmp==CONTENT_SLIME)||(tmp==CONTENT_LAVA))
	{
		remove(self);
		return;
	}
	T_NewRadiusDamage(self,self.owner,15,world,300);
	if (self.blasttimer<time)
	{
		remove(self);
		return;
	}
	
	self.nextthink=time+0.1;
};