Page 1 of 1

Sandworm burrower passing target

Posted: Tue Dec 28, 2010 3:08 am
by yufra
I just noticed the burrowers have the player as a target (probably received by target passing from another, hostile worm) which then pass the player as a target to other creatures as they move around. My guess is this is not intended, and that the NPC:seen_by function should have the reaction check changed to "<=" instead of a strict "<":

Code: Select all

--- Give target to others
function _M:seen_by(who)
	if self.ai_target.actor then return end
	if not who.ai_target then return end
	if not who.ai_target.actor then return end
	if self:reactionToward(who) <= 0 then return end
	if not who:canSee(who.ai_target.actor) then return end
	self:setTarget(who.ai_target.actor)
end

Re: Sandworm burrower passing target

Posted: Sun Jan 02, 2011 12:47 am
by darkgod
Well they might not attack you because they have other duties, does not mean they must like you :)