Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: douglaslipem on July 27, 2012, 03:36:23 AM

Title: First person mod
Post by: douglaslipem on July 27, 2012, 03:36:23 AM
Hy guys, I'm new here, sorry if I'm in the wrong topic. Where can I fnd a mod that gives me a dashboard cam, like first person mod inside the car, because I really want to drive in first person, so i downloaded a first person mod and I only got first person on foot camera, and I wish I had first camera while driving! I saw some youtube videos but I couldn't find any link. Can somebody help me?


 




Thanks!
Title: First person mod
Post by: Cole Phelps on July 27, 2012, 08:06:40 AM
Try this http://mafia-daily.net/?dl_id=377 (http://mafia-daily.net/?dl_id=377)  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">
Title: First person mod
Post by: douglaslipem on July 27, 2012, 12:40:35 PM
yeah, no extactlly the one I was searching, because in this mod the cam is in the middle of the cabin, I was searching for one where the cam is in the driver's position, but still  better than before! Thanks!
Title: First person mod
Post by: johncena1 on July 27, 2012, 01:44:47 PM
Found it  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">




I searched for ages, and it was in an obvious place  <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="(//tongue.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">  lol




http] (//downloads/viewdownload/2-mafia-i/444-car-interior-mod)
Title: First person mod
Post by: douglaslipem on July 27, 2012, 02:51:19 PM
Thanks for mod but I couldn't install i, or it doesn't worked. I mean, I just unpacked the models folder and the rw_data.dll archive and placed them into the main directory of the game. Just checking, its the mod for mafia 2?


 




oh and sorry for the incomplete reply above, my net stopped and then that happend  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="(//bigsmile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">
Title: First person mod
Post by: johncena1 on July 27, 2012, 03:15:37 PM
Whoops, no thats for mafia 1  <img src="/wp-content/uploads/invision_emoticons/sad.png" alt="(//frown.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/sad@2x.png 2x" width="20" height="20">  sorry
Title: First person mod
Post by: douglaslipem on July 27, 2012, 03:23:41 PM
QuoteFound it  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">

I searched for ages, and it was in an obvious place  <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="(//tongue.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20">  lol




http]


 (//downloads/viewdownload/2-mafia-i/444-car-interior-mod)

 




Oh, I just saw in the download page and it's only for Mafia I indeed. <img src="/wp-content/uploads/invision_emoticons/unsure.png" alt="(//irritated.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/unsure@2x.png 2x" width="20" height="20">




Anyone know a mod like this but for Mafia II?
Title: First person mod
Post by: eXistenZ34 on July 27, 2012, 05:37:04 PM
hi




Here http] (//forum/14-mafia-mod-request/9279-car-first-person-view-with-lua-scripts#9280)
Title: First person mod
Post by: douglaslipem on July 27, 2012, 05:47:50 PM
thanks, but I dont have any idea of how to create or modify a LUA file in the game <img src="/wp-content/uploads/invision_emoticons/unsure.png" alt="(//irritated.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/unsure@2x.png 2x" width="20" height="20">


 




I'm downloading the content ofthis post: http] (//forum/22-existenz34-s-mods/6490-mafia-ii-lua-command)
Title: First person mod
Post by: eXistenZ34 on July 27, 2012, 05:59:11 PM
only the script of Free Ride is editable.




For use in Game you must use the injector
Title: First person mod
Post by: douglaslipem on July 27, 2012, 06:12:26 PM
ok, I got the injector and unpacked it into the pc folder as it requests, and now what I do with this information:


 




with injector:




In Car




DelayBuffer: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




DelayBuffer: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)


 




It's just open either of the 12 lua archives and copy the information above inside? Thanks
Title: First person mod
Post by: farhad_999 on July 27, 2012, 08:57:09 PM
Quoteok, I got the injector and unpacked it into the pc folder as it requests, and now what I do with this information: 




with injector:




In Car




DelayBuffer: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




DelayBuffer: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)


 




It's just open either of the 12 lua archives and copy the information above inside? Thanks


Hi. Yes, all right.  




<div class="ipsSpoiler_header">



Tutorial how to use the "Injector":




1. Copy the script into a "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"). And sorry for my English  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">




</div>

 
Title: First person mod
Post by: douglaslipem on July 27, 2012, 09:21:50 PM
So, I did it and it doesn't worked, but I guess I'm making something wrong. Here is waht I did:


 




Downloaded this injector: http]


 




Unpakced the folder "pc" and pasted it into mafia II main directory, so in Mafia II/PC/userescript I choosed the first LUA archive, opened it with the notepad and pasted this RIGHT AFTER the end of the text that already was in the archive:


 


 




<div class="ipsSpoiler_header">



DelayBuffer: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)





</div>

 


 




I got this information here: [url=/forum/14-mafia-mod-request/9279-car-first-person-view-with-lua-scripts#9280]http] and there it says that those information that i putted above  were compatible with injector 6, that downloaded.


 




After that, I opened the game and started playing and then I minimized the game, so I opened the Mafiainjector.exe wich was in "pc" folder. I black window like cmd appeard for 1 sec and then dissapeard, then I went back to the game, and ress F1, but nothing happened in any of the cameras! Did I did something wrong? (//downloads/viewdownload/4-mafia-tools/504-injector-6)
Title: First person mod
Post by: farhad_999 on July 27, 2012, 09:32:10 PM
QuoteRIGHT AFTER the end of the text that already was in the archive
You must delete this text, the document must be empty, and then put the script
Title: First person mod
Post by: douglaslipem on July 27, 2012, 09:37:38 PM
ah ok. this is waht the script says;


 


 




with injector:




In Car




DelayBuffer: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




DelayBuffer: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




DelayBuffer: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)


 




what part exactly i have to put into the archive, considerating that I downloaded injector 6
Title: First person mod
Post by: farhad_999 on July 27, 2012, 09:40:12 PM
This part:


 




<div class="ipsSpoiler_header">



DelayBuffer: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)




</div>

 
Title: First person mod
Post by: douglaslipem on July 27, 2012, 09:42:10 PM
NOW IT WORKED! THANKS A LOT!!!
Title: First person mod
Post by: farhad_999 on July 27, 2012, 09:46:48 PM
QuoteNOW IT WORKED! THANKS A LOT!!!
You are welcome  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">