While working on a reliable tracking AI script I realized that the enemies stop attacking through walls if the lines including the
plraddhealth action are modified by adding the
plrcanbeseen condition.
just like this:
:state=30,framebeyond=94 19,plrdistwithin=94,plrcanbeseen:plraddhealth=-10,state=22,sound=gamecore\guns\medievalpack\sword\sword.wav
This is a line of stevepaul's medieval swordattack script, the
plrdistwithin=94 is rather large so not even the thickest walls or doorframes prevent the attack. bond1's Zombies p.e. have only
plrdistwithin=70 so the problem isn't that big there.
I am sure a lot of people know about this, but since I roam the boards daily and didn't know myself, I thought I'd risk posting it
EDIT: It doesn't prevent attacks through doors or other dynamic entities though.
In case you find my grammar and spelling weird ---> native German speaker ^^