Sandworm burrower passing target

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Sandworm burrower passing target

#1 Post 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
<DarkGod> lets say it's intended

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Sandworm burrower passing target

#2 Post by darkgod »

Well they might not attack you because they have other duties, does not mean they must like you :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply