Jump to content

Warbot missiles don't fully skip endothermic fires


hoxi
  • Fixed
if v.components.burnable and v.components.burnable:IsBurning() then
	local fire = v.components.burnable.fxchildren[1]
	if fire and fire.components.heater then
		--NOTE: GetHeat() can be nil!
		if fire.components.heater:IsExothermic() then
			temperature = math.max(temperature, fire.components.heater:GetHeat(v) or temperature)
		elseif fire.components.heater:heater:IsEndothermic() then -- HERE, to be consistent with the heater checks above
			endo = true -- HERE, this is missing
			temperature = math.min(temperature, fire.components.heater:GetHeat(v) or temperature)
		else -- handle weird case?
			print("Fire FX doesn't have proper thermics set up", fire)
		end
	else
		print("Fire missing heat signature on", v)
		temperature = math.max(temperature, 100)
	end
end

 


Steps to Reproduce

See above.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...