Set tidtohate in all cases when a monster picks a target?

Moderator: GZDoom Developers

Post Reply
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Set tidtohate in all cases when a monster picks a target?

Post by Ghastly »

I recently found out that tidtohate property/decorate expression is only used when Thing_Hate is involved. Can this be extended slightly so it stores the tidtohate whenever a monster picks up a target (A_Look, etc.)? I already have a few uses in mind for this.
User avatar
Fishytza
Posts: 793
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: They/Them
Contact:

Re: Set tidtohate in all cases when a monster picks a target

Post by Fishytza »

Ghastly_dragon wrote:...stores the tidtohate whenever a monster picks up a target (A_Look, etc.)?
Wouldn't that mess up monster infighting? For example, when a baron and a revenant are both attacking a player or something else with a TID of 6 , they will never hurt each other. And even if they did, which can only happen if one (or both) of the two was using hitscan attacks (a zombie), they will never actively fight eachother because their 'TIDtohate' fields are the same (and are not equal 0).

(Of course it wouldn't matter if your mod doesn't have monster infighting, but still.)
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: Set tidtohate in all cases when a monster picks a target

Post by Ghastly »

Ah, k. I didn't know tidtohate factored into the rest of the targeting code like this.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”