DazzaJay Posted February 5, 2008 Posted February 5, 2008 So yeah, i was hunting around on the MTA Wiki and i came across this: function changeBlurLevel(playerSource,command,blur) if blur>255 or blur<0 then outputChatBox("Enter a value between 0 - 255.", playerSource) else setPlayerBlurLevel(playerSource, blur) outputChatBox("Blur level set to: "..blur, playerSource) end end addCommandHandler("blur", changeBlurLevel) The question is, can this peice of code be used to disable all players speed blur affect. and if so, how/ what would be the best way to go about that.
Guest Posted February 5, 2008 Posted February 5, 2008 (edited) I'm not quite sure how this function works, but if it's a set-it-and-forget-it type function, this should work. function changeBlurLevel() setPlayerBlurLevel(source, 0) end addEventHandler("onPlayerJoin", getRootElement(), changeBlurLevel) Edited February 5, 2008 by Guest
DazzaJay Posted February 5, 2008 Author Posted February 5, 2008 i will test it when i get home, and i will post if i have any issues.
OffRoader23 Posted February 5, 2008 Posted February 5, 2008 Yea that removes all blur, I have that done on player join because I hate the blur, and haven't gotten any complaints from people that joined saying "WHERE TEH FUX MY BLUR!?!?!?!!111////11/"
norby89 Posted February 5, 2008 Posted February 5, 2008 function changeBlurLevel() setPlayerBlurLevel ( source, 0 ) end addEventHandler ( "onPlayerJoin", getRootElement(), changeBlurLevel ) function scriptStart() setPlayerBlurLevel ( getRootElement(), 0) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), scriptStart )
Stevvo Posted February 5, 2008 Posted February 5, 2008 This function wont work for me, it just makes the screen shake and stuf go wierd.
Mr.Hankey Posted February 5, 2008 Posted February 5, 2008 the function works very well but a blur level of 255 just looks weird you should try soemthing between 50 and 100
Twig Posted February 5, 2008 Posted February 5, 2008 I found you tend to get a strange blue shade on your screen with high values, at 255 it basically just tinted your screen blue over a set speed for me..
Woovie Posted February 5, 2008 Posted February 5, 2008 Wow Norby. That is TOO complicated for such a simple task. Although your syntax highlighting is pretty.
DazzaJay Posted February 5, 2008 Author Posted February 5, 2008 Is there any way to stop the Speed FOV affect also? (you know, where the camera moves back, and the view area gets wider)
tma Posted February 5, 2008 Posted February 5, 2008 Wow Norby. That is TOO complicated for such a simple task. Although your syntax highlighting is pretty. Why too complicated ? That's about the minimum code for both situations you need to handle - game mode start and players joining.
DazzaJay Posted February 5, 2008 Author Posted February 5, 2008 ald also, syntax hilighting is done by the forum software.... all he did was use the [/lua] [lua] codes to do it.
norby89 Posted February 5, 2008 Posted February 5, 2008 ald also, syntax hilighting is done by the forum software.... all he did was use the codes to do it. or ][[/color]/code]
DazzaJay Posted February 6, 2008 Author Posted February 6, 2008 Is there any way to stop the Speed FOV affect also? (you know, where the camera moves back, and the view area gets wider)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now