Has anybody a good solution to my problem?
showHeadshotImage(){ if(!isdefined(self.headshot_img)) { self.headshot_img = newClientHudElem(self); self.headshot_img.horzAlign = "fullscreen"; self.headshot_img.vertAlign = "fullscreen"; self.headshot_img.alignX = "center"; self.headshot_img.alignY = "middle"; self.headshot_img.x = 320; self.headshot_img.y = 240; self.headshot_img.archived = false; self.headshot_img.sort = 100; self.headshot_img.alpha = 1; self.headshot_img setShader("exg_crybaby", 64, 64); } if(isdefined(self.headshot_img)) self.headshot_img scaleOverTime(1, 384, 384); wait( [[level.ex_fpstime]](1.5) ); if(isPlayer(self) && isdefined(self.headshot_img)) self.headshot_img destroy();}
case "MOD_HEAD_SHOT":{ obitad(attacker, "headshotkill", "headshotdeath", "", sMeansOfDeath, sWeapon); if(isWeaponType(sWeapon, "sniper")) obitstat(attacker, "sniperkill", "sniperdeath"); obitmain(attacker, sWeapon, sHitLoc, false); //if(self.ex_obmonpmsg) attacker iprintlnbold(&"OBITUARY_HEADSHOT"); if(self.ex_obmonpmsg) attacker thread showHeadshotImage(); if(self.ex_obmonpsound) attacker playLocalSound("headshot"); break;}