Desdinova Posted July 11, 2023 Is there a way to make enemies friendly until you attack them? 0 Quote Share this post Link to post
Individualised Posted July 12, 2023 What source port is your .WAD for? This is a very broad question. 0 Quote Share this post Link to post
G19Doom Posted July 12, 2023 There likely is since this can be done in Strife. 0 Quote Share this post Link to post
Desdinova Posted July 12, 2023 1 hour ago, Individualised said: What source port is your .WAD for? This is a very broad question. GZDoom 0 Quote Share this post Link to post
jaeden Posted July 12, 2023 (edited) If you use ZScript, you can give the monster a +FRIENDLY flag, and override its TakeSpecialDamage: override int TakeSpecialDamage(Actor inflictor, Actor source, int damage, Name damagetype) { if (damage > 0 && source && source.player) { bFriendly = false; target = source; lastenemy = null; } return damage; } This should make that the monster is initially friendly (attacks enemies) and if it takes damage from a player, it will be no longer friendly. (code untested as usual) Edited July 12, 2023 by jaeden 2 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.