DazzaJay Posted February 5, 2008 Share 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. Link to comment
Guest Posted February 5, 2008 Share 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 Link to comment
DazzaJay Posted February 5, 2008 Author Share Posted February 5, 2008 i will test it when i get home, and i will post if i have any issues. Link to comment
OffRoader23 Posted February 5, 2008 Share 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/" Link to comment
norby89 Posted February 5, 2008 Share 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 ) Link to comment
Stevvo Posted February 5, 2008 Share Posted February 5, 2008 This function wont work for me, it just makes the screen shake and stuf go wierd. Link to comment
Mr.Hankey Posted February 5, 2008 Share 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 Link to comment
Twig Posted February 5, 2008 Share 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.. Link to comment
Woovie Posted February 5, 2008 Share Posted February 5, 2008 Wow Norby. That is TOO complicated for such a simple task. Although your syntax highlighting is pretty. Link to comment
DazzaJay Posted February 5, 2008 Author Share 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) Link to comment
tma Posted February 5, 2008 Share 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. Link to comment
DazzaJay Posted February 5, 2008 Author Share 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. Link to comment
norby89 Posted February 5, 2008 Share 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] Link to comment
DazzaJay Posted February 6, 2008 Author Share 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) Link to comment
Twig Posted February 6, 2008 Share Posted February 6, 2008 You'd probably have to script your own camera. Link to comment
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