Code: Select all
class invis:inventory{
override void DoEffect(){
owner.binvisible=true;
}
}
2. Give the invis.
3. Watch them stand still and hear them constantly (but not impossibly rapidly) making alertsounds.
4. Shoot.
5.expected: Watch them stand still as in 3.
5.actual: Watch them stand still and hear them caught in a neverending 1-tic rapid-fire loop of alertsounds.
Adding owner.A_ClearSoundTarget(); to the DoEffect does nothing.
(edited to add expected behaviour)