Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia Mod Request => Topic started by: dandwell on November 09, 2011, 01:37:32 PM

Title: MAFIA II passenger cars and shooting
Post by: dandwell on November 09, 2011, 01:37:32 PM
Passenger cars and shooting  (//wp-content/uploads/invision_emoticons/wink.png)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">




So Vito landing on the passenger seat and press the button F on the passenger side




Installation: unzip, Copy




tables.sds in C:/Program Files (x86)/Steam/steamapps/common/mafia ii/pc/sds/tables




Before use, make a backup


 




To shoot from a car needs a script, the script does not work in a single company, it works only in the adventures of Joe in a freeride for Joe's adventures v2.0 eXistenZ34




just add the in freeraid_main.sds :




if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end


 




that would shoot, press the right mouse button


 




video demonsration









<div><iframe width="459" height="344" src="https://www.youtube.com/embed/vAZtCdvmOts?feature=oembed" frameborder="0" allowfullscreen="true"></iframe></div>



modification:




http://www.mediafire.com/?nqljlmtecr12jpi (http://www.mediafire.com/?nqljlmtecr12jpi:3d93c39g)


 




autor: dandwell


 




please follow the rules if you want to put your modification on another site, the authorship! Thanks
Title: MAFIA II passenger cars and shooting
Post by: lightingft on November 09, 2011, 02:56:13 PM
Sorry for the stupid question, but how do I implement the script into freeride_main.sds?
Title: MAFIA II passenger cars and shooting
Post by: Cole Phelps on November 09, 2011, 03:07:37 PM
QuoteSorry for the stupid question, but how do I implement the script into freeride_main.sds?








 




Maybe with SDS Tool ?


 







Quote 




To shoot from a car needs a script, the script does not work in a single company, it works only in the adventures of Joe in a freeride of eXistenZ34








 




Free Ride from eXistenZ34 is not out yetÃâà  (//bigwink.gif)
Title: MAFIA II passenger cars and shooting
Post by: lightingft on November 09, 2011, 03:11:10 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1291" data-ipsquote-contentclass="forums_Topic"><div>



Sorry for the stupid question, but how do I implement the script into freeride_main.sds?








 




Maybe with SDS Tool ?


 







Quote 




To shoot from a car needs a script, the script does not work in a single company, it works only in the adventures of Joe in a freeride of eXistenZ34










He meant FR-JA  <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">




SDS Tool, yeah i've tried modyfing a .lua file, but the thing that I don't know is HOW to put the lua [modified] file back in (//irritated.gif)




Free Ride from eXistenZ34 is not out yetÃâà  (//bigwink.gif)







</div></blockquote>
Title: MAFIA II passenger cars and shooting
Post by: dandwell on November 09, 2011, 03:24:26 PM
yes sds tool in joes adventures freeride
Title: MAFIA II passenger cars and shooting
Post by: Joshua on November 10, 2011, 04:42:39 AM
HAHA nice video  <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">
Title: MAFIA II passenger cars and shooting
Post by: Cole Phelps on November 10, 2011, 12:44:45 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1291" data-ipsquote-contentclass="forums_Topic"><div>






<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1291" data-ipsquote-contentclass="forums_Topic"><div>



Sorry for the stupid question, but how do I implement the script into freeride_main.sds?








 




Maybe with SDS Tool ?


 







Quote 




To shoot from a car needs a script, the script does not work in a single company, it works only in the adventures of Joe in a freeride of eXistenZ34










He meant FR-JA  <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">




SDS Tool, yeah i've tried modyfing a .lua file, but the thing that I don't know is HOW to put the lua [modified] file back in (//irritated.gif)




Free Ride from eXistenZ34 is not out yetÃâà  (//bigwink.gif)







</div></blockquote>






</div></blockquote>

 




You should implement that LUA script using SDS Tool, but I don't know how.
Title: MAFIA II passenger cars and shooting
Post by: Mike Bruski on November 11, 2011, 03:34:03 AM
The mod looks brill, but could you put in the scripts and include the main files for all to use, i'm not sure if people are like myself, but I don't like running command lines in the background, i would prefer all properly setup like how ExistenZ34 does it. I mean no offense in anyway, the mod looks brilliant, just needs to be more user friendly for simple minds on modding like myself.
Title: MAFIA II passenger cars and shooting
Post by: crazypreacher on November 11, 2011, 02:28:27 PM
I'm trying it in Jimmy Vendetta, it kind of fun, you can be a passenger and reload all your weapons in the car, witch it impossible in your homeÃâà  <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">




and if i have to talk to theÃâà phone i put him in a taxi not in pause and whatchÃâà 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"> Ãâà  <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">  and it don't stop you from driving


 




I have a challenge for you:  <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">


 




Can you make itÃâà possible that when has a passenger in a taxi, make him drive where you want by placing a point on the map


 




or kidnap any civilianÃâà force him to take you to a specific place


 




and by the passenger positionÃâà  force the driver out


 




looking forwardÃâà  (//bigwink.gif)
Title: MAFIA II passenger cars and shooting
Post by: teisco on November 11, 2011, 04:19:54 PM
For those that have this working could you post an easy install procedure as in how you made it work?
Title: MAFIA II passenger cars and shooting
Post by: Cole Phelps on November 11, 2011, 04:57:27 PM
QuotePassenger cars and shooting  <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">




So Vito landing on the passenger seat and press the button F on the passenger side




Installation: unzip, Copy




tables.sds in C:/Program Files (x86)/Steam/steamapps/common/mafia ii/pc/sds/tables




Before use, make a backup


 




To shoot from a car needs a script, the script does not work in a single company, it works only in the adventures of Joe in a freeride for Joe's adventures v2.0 eXistenZ34




just add the in freeraid_main.sds :




if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end


 




that would shoot, press the right mouse button


 




video demonsration









<div class="ipsEmbeddedVideo"><div></div>



modification:




http://www.mediafire.com/?nqljlmtecr12jpi (http://www.mediafire.com/?nqljlmtecr12jpi:3djc3guu)


 




autor: dandwell


 




please follow the rules if you want to put your modification on another site, the authorship! Thanks







</div>
Title: MAFIA II passenger cars and shooting
Post by: teisco on November 11, 2011, 06:12:36 PM
So find an sds unpacker/packer and just insert the text shown than what, does he alway ride in the passenger seat or is there a trigger to get him into it?
Title: MAFIA II passenger cars and shooting
Post by: MetalCat on November 11, 2011, 08:19:30 PM
I ve done everything what you wrote...I can sit like passanger and I can show weapon, but I can̫̉t fire....What is wrong??? Where have I copy taht: if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end




???  I know. In scripts/missions/FreeRideMain...But where?
Title: MAFIA II passenger cars and shooting
Post by: Cole Phelps on November 11, 2011, 08:21:45 PM
Quote 




just add the in freeraid_main.sds :




if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end


 




that would shoot, press the right mouse button


 







Title: MAFIA II passenger cars and shooting
Post by: MetalCat on November 11, 2011, 08:27:03 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1291" data-ipsquote-contentclass="forums_Topic"><div>

 




just add the in freeraid_main.sds :




if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end


 




that would shoot, press the right mouse button


 













</div></blockquote>

 




So, NO to FreeRideMain.lua ...Just create new lua, or something? I dont understand...I copied it here: (under --existenZ34)


 




<div class="ipsSpoiler_header">



-- eXistenZ34




if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then


 




game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end




onGameInit=function(l_1_0)registerForMachineMessages(l_1_0)DelayBuffer:Insert(FRS,


 




{l_1_0},15000,1,false)guid=base.ScriptMachine:getScriptGuid(l_1_0.scriptId)


 




GP,GE,GN,GD,GW,GT,gg,GR,Gg,GH,GG,GS,GX,Gs,GC=game.game:GetActivePlayer


 




(),game.entitywrapper,game.navigation,game.datastore,game.wardrobe,game.traffic,game.gara


 




ge,game.radio,game.game,game.hud,game.gui,game.sds,game.gfx,game.speech,game.cameramanage


 




r




game.datastore:SetNumber("missionNumber",100)game.garage:SetMaxGaragePlaces(100)




game.shop:SetAllShopExplored()game.datastore:SetString("FrancescaStatus","Home")


 




game.datastore:SetString("JoesFlatStatus","Home")game.datastore:SetString


 




("VitoA1Status","Home")game.datastore:SetString("VitoA2Status","Home")


 




game.datastore:SetString("VitoA3Status","Home")game.datastore:SetString


 




("VitoB12Status","Home")game.datastore:SetString("VitoVillaStatus","Home")


 




game.datastore:SetString("BruskyStatus","Opened")




ekd={{-1535.539,-1550.691,-113.8200,-98.65531, 234.4014, 234.4014,-293.0685,-293.0685,


 




261.0182,-165.0724, 377.0086, 410.6482, 357.1589,-777.3264,-781.2096,-1551.352,-


 




1551.410,-97.81346,-98.19747, 211.8838, 228.9711,-270.6018,-287.8190, 261.0756,-164.9839,


 




377.1431, 412.1321, 357.0980,-778.5112,-781.8716,-1119.052,-1116.592,-37.39670,-


 




372.2113},{-231.0299,-231.0299,-481.7098,-481.7098, 380.9504, 396.1384, 568.3184,


 




553.1269, 44.80871,-582.4669, 1287.126, 1295.103, 1328.546, 520.8449, 520.8449,-


 




253.6134,-236.3236,-459.0746,-476.3673, 396.7033, 396.6559, 552.6564, 552.7559,


 




45.88486,-583.6888, 1288.643, 1295.024, 1327.012, 516.7614, 516.7614, 1376.553, 1376.553,


 




1158.305,-345.8753},{-13.58915,-13.58915,-8.922427,-8.922427,-9.412714,-9.412714,-


 




2.273671,-2.273671,-23.32686,-20.18347, 66.68936, 75.75097, 68.65290,-20.26357,-


 




20.26357,-12.11598,-12.11598,-3.225131,-3.225131,-7.872694,-7.872694,-0.623414,-


 




0.623410,-23.25328,-20.17672, 66.62947, 75.75080, 68.65290,-20.78477,-20.78477,-


 




18.77237,-18.77237, 68.36479,-13.68386},{-3.589151,-3.589151, 1.077473, 1.077473,


 




0.587286, 0.587286, 7.726329, 7.726329,-13.32686,-10.18347, 76.68936, 85.75097,


 




78.65290,-10.26357,-10.26357,-2.115981,-2.115981, 6.774869, 6.774869, 2.127306, 2.127306,


 




9.376596, 9.376596,-13.25328,-10.17672, 76.62947, 85.75080, 78.65290,-10.78477,-


 




10.78477,-8.772371,-8.772371, 78.36479,-3.683861},{0},{0}}




map=


 




{"free_joe_load","free_summer_load","free_winter_load","missionPart","dlc_eddie1_assets_l


 




oad","dlc_marty4_assets_load","fmw_2207_start","fmw_2207_end"}




mes={{-1535.49,-1550.67,-500.78,-500.78,-113.72,-98.57,257.33,257.33,-294.06,-294.06,-


 




554.13,-556.60,-1119.06,-1116.53,242.13,242.13},{-214.87,-214.87,20.18,22.67,-497.42,-


 




497.42,380.82,396.08,568.31,553.12,1603.61,1603.61,1366.02,1366.02,386.28,390.36},{-


 




20.33,-20.33,-4.50,-4.50,-15.66,-15.66,-21.63,-21.63,-2.27,-2.27,-20.66,-20.66,-17.57,-


 




17.57,-14.48,-14.48},{0},


 




{"3455000751","3455000752","3455000753","3455000754","3455000755","3455000756","345500075


 




7","3455000758","3455000759","3455000760","3455000761","3455000752","3455000759","3455000


 




754","3455000757","3455000758"}}




opt={{-1304.10,82.58,371.70,-38.85,-1310.13,74.81,369.87,-54.74,-1305.57,66.46,368.68},


 




{990.12,892.26,-290.88,1156.04,986.59,900.51,-286.16,1138.72,1003.42,911.12,-287.98},{-


 




17.33,-13.31,-15.57,68.32,-17.58,-19.53,-15.58,64.66,-18.57,-19.85,-20.16},{0}}




pts={"HotRod-TEXT-1","HotRod-TEXT-2","HotRod-TEXT-3","HotRod-cucky a stin2","HotRod-cucky


 




a stin4","HotRod-jehly2","HotRod-plameny3","HotRod-plameny5",""}




ply=


 




{{"vitnah_t","vitspo","vitod1neup","vittel","vitukl","vitoveral","vitvez","vitarmy","vitv


 




ov","vitvov2i","vitvov3","vitvop"},


 




{"joespo","joeobld2","joevez","joezml","joeneup","joebryl","joeobd","joeup","joeobl","joe


 




ruka","joetel"},


 




{"hen40s","franca","marty","leoobd","eddies","albert","brianc","carlo","consig","derek","


 




desmond","frank","lucca","mike","panchu","steve","wong"}}




tel={{ 718.4348, 721.0536, 762.0089, 763.2489, 721.4680, 602.2342, 605.7252,-326.0310,-


 




326.0758,-340.2751,-338.0871, 1226.814, 1225.072,-411.1314, 375.3030,-786.3079,-


 




773.9939,-786.3079,-773.9939, 705.8257, 705.8257, 730.4662, 732.0489, 774.8685,


 




775.5303},{ 1794.951, 1794.998, 1795.988, 1797.709, 1851.679, 1884.481, 1881.635,


 




1102.602, 1105.361, 1118.948, 1118.998, 1273.528, 1273.434,-358.4527, 1319.120, 484.6329,


 




484.6329, 484.6329, 484.6329,-28.31297,-29.70581,-27.69167,-27.69167,-29.45448,-


 




30.94143},{ 33.08253, 32.45067, 32.35377, 33.14997, 40.03624, 39.19361, 39.00067,


 




47.70363, 47.80363, 47.69004, 47.80954, 0.035667, 0.114826,-8.883967, 68.65290,-


 




20.05159,-20.05159, 29.09627, 29.09627,-20.28188,-20.28188,-13.76305,-13.76305,-


 




20.31154,-16.16259},{0}}




tpt={{-1667.75,-1602.50,-1560.47,-1345.82,-1614.74,-1062.71,-566.31,-172.38,-105.63,-


 




374.81,-473.21,-426.74,-136.25,298.10,276.21,479.78,160.14,-584.04,-1152.67,-1079.85,-


 




1540.16,-511.07,-109.11,226.45,-273.31,-556.66,-1079.85,-554.144,-284.86,214.63,-


 




108.98,-511.13,-1539.89},{1088.97,-


 




191.32,110.79,423.27,998.15,1458.85,1581.04,722.64,375.82,476.52,5.51,-301.56,-474.45,-


 




310.54,360.47,734.90,834.32,1602.99,1485.20,1384.61,-250.68,20.14,-


 




</div>

 
Title: MAFIA II passenger cars and shooting
Post by: Cole Phelps on November 11, 2011, 08:32:46 PM
Open that file with SDS Tool, which you can find in our download. Then implement that code to that file using SDS Tool. But I can't tell you how, because I don't knowÃâà  (//bigeyes.gif)
Title: MAFIA II passenger cars and shooting
Post by: MetalCat on November 11, 2011, 08:47:02 PM
Stil doesnt works
Title: MAFIA II passenger cars and shooting
Post by: crazypreacher on November 12, 2011, 01:54:43 PM
Why not simply do it and put it up for download, and people are smart enough to make a bak up,




I'm sure that it work also in Jimmy, i can get passenger in any car




but like alot i don't know how to do the lua script


 




(ps) if you don't know how[/size] be kind not to confuse people
Title: MAFIA II passenger cars and shooting
Post by: Mike Bruski on November 13, 2011, 03:53:21 AM
I agree with crazypreacher, please, if you can, install the code required within game files, it makes it so much more professional.
Title: MAFIA II passenger cars and shooting
Post by: crazypreacher on November 13, 2011, 05:14:19 AM
Thanks MikeÃâà  <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">
Title: MAFIA II passenger cars and shooting
Post by: Vito on November 20, 2011, 11:26:14 AM
Eh.. where can i find the freeraid_main.sds? i can't find the file with SDS tool.
Title: MAFIA II passenger cars and shooting
Post by: crazypreacher on November 20, 2011, 12:01:53 PM
C :P rogram Files (x86)Steamsteamappscommonmafia iipcsdsmissionscript


 


 




right there
Title: MAFIA II passenger cars and shooting
Post by: Vito on November 20, 2011, 12:37:46 PM
Thanks  <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">  but, do i need luna tool to edit it?
Title: MAFIA II passenger cars and shooting
Post by: crazypreacher on November 20, 2011, 01:03:41 PM
yes so far the guy that made it just did it an 1/2 job,