• Blur target is also blurring me.
    4 replies, posted
Okay so without pasting everything; eyeTrace = self.Owner:GetEyeTrace() tazedPlayer = eyeTrace.Entity tazedPlayer:ConCommand("pp_motionblur 1") Everything else under tazedPlayer only works on the tazed player, but for some reason the blur acts on both the person tazing and the person tazed. I can get around it with self.Owner:ConCommand("pp_motionblur 0") but there must be something else I'm missing that is causing this.
Are you filtering the attacker out of the trace?
[QUOTE=Bel Irkalli;35299775]Are you filtering the attacker out of the trace?[/QUOTE] I'm fairly sure that player.GetEyeTrace() doesn't include the player by default.
I think GetEyeTrace() automatically applies that filter. Try this: [lua]if not tazedPlayer == self.Owner then -- blur stuff end [/lua]
Ah, right. Wasn't thinking clearly... well, at all for that matter.
Sorry, you need to Log In to post a reply to this thread.