Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
June 26, 2012, 02:47:26 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Hi, someone knows if it is possible to change the car view with lua commands ?




I wanted to play the main story of Mafia 2 with a FPV in car, like the excellent one in JA Freeride mode by Existenz, but it works only on Freeride.


 




Thanks for your help.

#1 June 26, 2012, 02:52:47 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Hi


 




FreeRide Script




In Car







Quotegame.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)

game.game:GetActivePlayer():ShowModel(false)







Out Car




Quotegame.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)

game.game:GetActivePlayer():ShowModel(true)








 




with injector:




In Car







QuoteDelayBuffer:Insert(function(l_1_0)

game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)




game.game:GetActivePlayer():ShowModel(false)




end,{l_1_0},250,1,false)







Out Car




QuoteDelayBuffer:Insert(function(l_1_0)

game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)




game.game:GetActivePlayer():ShowModel(true)




end,{l_1_0},250,1,false)








 


 




Script for injector v6




1ere clic Fx = On




2eme clic Fx = Off


QuoteDelayBuffer:Insert(function(l_1_0)

if i==nil




then i=1




game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)




game.game:GetActivePlayer():ShowModel(false)




else i=nil




game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)




game.game:GetActivePlayer():ShowModel(true)




end




end,{l_1_0},250,1,false)










and also view my topic




http]

#2 June 26, 2012, 03:40:38 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks a lot it works perfect ! (merci beaucoup !)  :cheer:




Just one little thing. The mouse view is reversed (only the up and down), how I change that without changing the main option every time ? (because I'm playing in normal mode not reverse)

#3 June 26, 2012, 05:19:17 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Sorry, I don't know.

#4 June 26, 2012, 05:32:44 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Ok, thanks anyway  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">

#5 June 26, 2012, 09:09:09 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteThanks a lot it works perfect ! (merci beaucoup !)  :cheer:

Just one little thing. The mouse view is reversed (only the up and down), how I change that without changing the main option every time ? (because I'm playing in normal mode not reverse)





i have the same problem in zahar999's free ride and i am pretty sure it can't be modified.....

#6 August 12, 2012, 04:03:14 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteHi 




FreeRide Script




In Car







<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="584" data-ipsquote-contentclass="forums_Topic"><div>game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)

game.game:GetActivePlayer():ShowModel(false)







Out Car




Quotegame.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)

game.game:GetActivePlayer():ShowModel(true)








 




with injector:




In Car







QuoteDelayBuffer:Insert(function(l_1_0)

game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)




game.game:GetActivePlayer():ShowModel(false)




end,{l_1_0},250,1,false)







Out Car




QuoteDelayBuffer:Insert(function(l_1_0)

game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)




game.game:GetActivePlayer():ShowModel(true)




end,{l_1_0},250,1,false)








 


 




Script for injector v6




1ere clic Fx = On




2eme clic Fx = Off


QuoteDelayBuffer:Insert(function(l_1_0)

if i==nil




then i=1




game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)




game.game:GetActivePlayer():ShowModel(false)




else i=nil




game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)




game.game:GetActivePlayer():ShowModel(true)




end




end,{l_1_0},250,1,false)










and also view my topic




http]


</div></blockquote>

 




Hey existenZ, where do i paste this for freeride? (Sorry i've never modded m2 before)

#7 August 12, 2012, 06:04:59 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
With lua injector. Here's the link: http://www.mafiascene.net/downloads/vie ... injector-6




Backup original files, copy the pc folder to the game directory


 


 




<div class="ipsSpoiler_header">



Tutorial how to use the "Injector":




1. Copy the script into the "F1.txt" in the folder "userscripts"




2. Run the game




3. Minimize the game




4. Run the "MafiaInjector.exe"




5. Go back to the game




6. Press the key "F1"


 




PS: You can also copy the script in any document (located in the folder "userscripts"). But then in the game you'll need to press the corresponding button (from "F1" to "F12")




</div>

 

#8 August 12, 2012, 07:31:39 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks farhad  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">