Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia Mod Request => Topic started by: MetalCat on October 28, 2011, 12:27:44 PM

Title: MAFIA II - melee weapons
Post by: MetalCat on October 28, 2011, 12:27:44 PM
Could someone make melee weapons into game? I am finding it, but i can not find it, nd I ame trying make it on my own, but gane crashes or it doesnt work...NobodyÃâà  (//irritated.gif) ?
Title: MAFIA II - melee weapons
Post by: Cole Phelps on October 28, 2011, 12:50:01 PM
QuoteCould someone make melee weapons into game? I am finding it, but i can not find it, nd I ame trying make it on my own, but gane crashes or it doesnt work...NobodyÃâà (//irritated.gif)?








 




Someone said that works on that read -> http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons (http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons:1exs64c1)
Title: MAFIA II - melee weapons
Post by: MetalCat on October 28, 2011, 07:33:11 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



Could someone make melee weapons into game? I am finding it, but i can not find it, nd I ame trying make it on my own, but gane crashes or it doesnt work...NobodyÃâà (//irritated.gif)?








 




Someone said that works on that read -> http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons (http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons:w0kbflgy)







</div></blockquote>

 




Yes IÃâôm read it before...I know Andrashi, he is from Slovakia like I. I wrote him, he said that it doesnt works... So I think there are very clever moders, like existen, Mike Bruski and others, who can solve this f*cking problemÃâà  (//irritated.gif)
Title: MAFIA II - melee weapons
Post by: Cole Phelps on October 28, 2011, 08:41:53 PM
As it's known, melee weapons were in Mafia 2 demo, right ? So there must be some files (responsible for those weapons to work properly) hidden among game's files in folders. And maybe there is someone who has this demo and could do mod called 'Mafia 2 Melee Weapons Mod' (eventually 'Mafia 2 Melee Weapons DLC') or just share those files for our modders (Dgumba
, eXistenZ34
, Mr Robville
, RubyDragon949
, Asa
, Tommy Mafioso
, lpg_unit
, Matteo
, JOJOXX
 and Darren
) so that they can do something in their way to release such mod.


 




Greetings to SlovakiaÃâà  <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: MAFIA II - melee weapons
Post by: Joshua on October 28, 2011, 08:52:58 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>






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



Could someone make melee weapons into game? I am finding it, but i can not find it, nd I ame trying make it on my own, but gane crashes or it doesnt work...NobodyÃâà (//irritated.gif)?








 




Someone said that works on that read -> http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons (http://forums.2kgames.com/showthread.php?102546-Mafia-2-Melee-Weapons:1f4dmbgl)







</div></blockquote>

 




Yes IÃâôm read it before...I know Andrashi, he is from Slovakia like I. I wrote him, he said that it doesnt works... So I think there are very clever moders, like existen, Mike Bruski and others, who can solve this f*cking problemÃâà  (//irritated.gif)







</div></blockquote>

 




HAHA I agree. Seems like 2k not only made an un-finished game, but made it so people would have a tough time modding it.
Title: MAFIA II - melee weapons
Post by: Little Psycho on October 29, 2011, 03:10:46 PM
here's how it works


 




the melee weps data is still in the game, however if you attempt to spawn a melee weapon, it won't work. this is probably due to 2K 'disabling' melee weapons, by making weapons with those ID NOT work.


 




if you open up the weapon data thingy, it's like:




IDÃâà Name




0 - this is basicly fist.




4 - Colt 1911




22 - Knife


 




you can use SDS explorer to see how it looks like... very similar


 




now I think what Andrashi did is replacing 'fist' with 'knife'. This way on his videos, everyone had knife (he had to restart the game many times to film it all, due to constantly changing weapons.tbl)


 




so weapon ID 0 becomes knife...weapon ID 22 becomes fist...


 




I'm also unsure but he might have replaced guns with melee weapons, although I doubt it


 




so in short, theres no 'good' solution to put melee weapons in playable state in game
Title: MAFIA II - melee weapons
Post by: MetalCat on October 29, 2011, 06:30:13 PM
And how could I open and edit that weapons.tbl? I ve finded it and I m looking on it...But I wanna edit it...Do you know some program for that?
Title: MAFIA II - melee weapons
Post by: MetalCat on October 29, 2011, 07:22:48 PM
Look what ỉ̫ve founded... I think, that we can do it...









<div></div>
Title: MAFIA II - melee weapons
Post by: crazypreacher on October 31, 2011, 05:31:35 PM
I found a weapon mod, with melee weapons, but i just don't know how to set them up.




It suppose to do alot... some weapons should be use in both hands


 


 




(//i1101.photobucket.com/albums/g425/crazypreacher62/s71422356copy.jpg&key=664e7e58fe543d0483a79181887815c0b351d01102eb18ea9e40389e1cf4779b)
Title: MAFIA II - melee weapons
Post by: MetalCat on October 31, 2011, 05:37:04 PM
QuoteI found a weapon mod, with melee weapons, but i just don't know how to set them up.




It suppose to do alot... some weapons should be use in both hands


 


 




(//i1101.photobucket.com/albums/g425/crazypreacher62/s71422356copy.jpg&key=664e7e58fe543d0483a79181887815c0b351d01102eb18ea9e40389e1cf4779b)








 




This mod is only for GTA  <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">
Title: MAFIA II - melee weapons
Post by: crazypreacher on October 31, 2011, 05:39:31 PM
to badÃâà  :'(
Title: MAFIA II - melee weapons
Post by: Cole Phelps on October 31, 2011, 06:13:48 PM
MetalCat, how do you know it's for GTA?
Title: MAFIA II - melee weapons
Post by: MetalCat on October 31, 2011, 07:01:33 PM
QuoteMetalCat, how do you know it's for GTA?








 




I ve googleed it and i find it http://www.gta.com.ua/eng/file_sa_details.phtml?id=1344 (http://www.gta.com.ua/eng/file_sa_details.phtml?id=1344:2nwk91zt)Ãâà by Kawasaki, like on screenshot...
Title: MAFIA II - melee weapons
Post by: Asa on October 31, 2011, 07:18:23 PM
The Russian in the description tells us it is from Mafia II, for GTA.
Title: MAFIA II - melee weapons
Post by: MetalCat on October 31, 2011, 07:19:33 PM
QuoteThe Russian in the description tells us it is from Mafia II, for GTA.








 




That is what I ve said...or?
Title: MAFIA II - melee weapons
Post by: crazypreacher on October 31, 2011, 09:55:06 PM
he s right if you translate the text you get:


 




Mafia II Full Weapons Pack




Size: 2.73 ??




Author: KaWaSaKi




E-mail: -




Home page: -


 




Description:




??? ????, ?? ??  ??? ???  ???   ??? ??????


 




???   ??? ?????????  ???   ??? ??? ?? Mafia II.




?  ???   ??? ?????????  ???   ??? ????  ??? ???,  ??? ????? ??  ??? ??  ??? ???????, ?  ??? ??  ??? ??????? ?? Mafia II  ??? ???????  ??? ???.




?  ??? ????  ??? ???  ??? ????????  ??? ????????  ??? ???.


 




??? ??????  ??? ??  ??? ????????  ??? ???  ???   ??? ?? KaWaSaKi


 




Installation:




??? ?????  ??? ????????  ??? ?? ? gta3.img


 




in english:


 


 




Mafia II Full Weapons Pack




Size: 2.73 MB




Author: KaWaSaKi




E-mail: -




Home page: -


 




Description:




I hope you have not forgotten my promise?


 




This is a welcome pack of weapons from Mafia II.




It presents all game weapon that you can shoot and cut from Mafia II melee weapon.




To each their own arms attached icon.


 




The authorship of this belongs to Japanese under the name KaWaSaKi


 




Installation:




Replace with the same name files in gta3.img
Title: MAFIA II - melee weapons
Post by: MetalCat on November 01, 2011, 05:19:33 PM
I I just received a message from andrashi. He wrote that melee weapons can be obtained using the LUA script ... I've already tried but failed ... I do not try to be someone from the skilled modders here on Mafia Scene?
Title: MAFIA II - melee weapons
Post by: lightingft on November 01, 2011, 05:51:34 PM
I really wish there will be a method to get melee weapons into the game.. That would be soo epic!


 







Quotehere's how it works


 




the melee weps data is still in the game, however if you attempt to spawn a melee weapon, it won't work. this is probably due to 2K 'disabling' melee weapons, by making weapons with those ID NOT work.


 




if you open up the weapon data thingy, it's like:




IDÃâà Name




0 - this is basicly fist.




4 - Colt 1911




22 - Knife


 




you can use SDS explorer to see how it looks like... very similar


 




now I think what Andrashi did is replacing 'fist' with 'knife'. This way on his videos, everyone had knife (he had to restart the game many times to film it all, due to constantly changing weapons.tbl)


 




so weapon ID 0 becomes knife...weapon ID 22 becomes fist...


 




I'm also unsure but he might have replaced guns with melee weapons, although I doubt it


 




so in short, theres no 'good' solution to put melee weapons in playable state in game










EDIT:




(//images.wikia.com/mafiagame/images/e/e7/Bate_de_Beisbol.png&key=558cd6687d955feb0111acd5e544e50fd0e48f3d2e3429649026d270083d0064)




The person/people who activated melee weapons in the demo actually could've used it instead of a gun. As you can see in the image it shows the ammo.
Title: MAFIA II - melee weapons
Post by: MetalCat on November 01, 2011, 07:08:39 PM
That person who activated it was andrashi...you can watch his videos here:




<div></div>Ãâà  and here:

<div></div>
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 01, 2011, 07:13:20 PM
I've seen them already, but I'll be thankful to andrashi if he explain how to use them in-game.
Title: MAFIA II - melee weapons
Post by: lightingft on November 01, 2011, 07:24:04 PM
QuoteI've seen them already, but I'll be thankful to andrashi if he explain how to use them in-game.










Yeah, so will I.
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 01, 2011, 08:08:29 PM
QuoteI've seen them already, but I'll be thankful to andrashi if he explain how to use them in-game.








 




In full game, of course. So, tell me, how to use them.
Title: MAFIA II - melee weapons
Post by: Mike Bruski on November 01, 2011, 11:40:28 PM
I've tried for 2-3 months to get Andrashi on our site, but sadly has other obligations apparently, but we hope later in the year he can join our site, I am a big fan of the ROTH mod he made for Mafia II.


 




Btw, if you like, send him a PM on YouTube, maybe try and convince him to join Mafia II mods once again.  <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 - melee weapons
Post by: Cole Phelps on November 02, 2011, 01:08:00 PM
Do you know his nickname from YT, Mike ?
Title: MAFIA II - melee weapons
Post by: lightingft on November 02, 2011, 01:14:41 PM
QuoteDo you know his nickname from YT, Mike ?










His channel from YT: http://www.youtube.com/user/andrashi (http://www.youtube.com/user/andrashi:166ho0tk) if that's what you need  <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">  From the looks of the channel comments and from my own experience, he doesn't seem to respond to PM's <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">
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 02, 2011, 03:00:03 PM
QuoteBtw, if you like, send him a PM on YouTube, maybe try and convince him to join Mafia II mods once again.  <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">








 




Done and now waiting for a response.Ãâà  (//bigeyes.gif)
Title: MAFIA II - melee weapons
Post by: Mike Bruski on November 03, 2011, 03:47:02 AM
I apologize Cole for not stating the channel, but yeah, it would be INSANE if he finished the Melee Weapons and put em' back into Mafia II!Ãâà  <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">


 




Thanks Cole for PM'ing him too, I hope he responds to you.
Title: MAFIA II - melee weapons
Post by: lightingft on November 03, 2011, 06:46:44 PM
Guys! I just got this response from Andrashi:




"Hi, Lightingft




My apologies man, but all that footage is done only for demo purposes and it cannot be done without breaking the game in the process. By breaking I mean various glitches appear and you still cannot combine fists and weapons as bare fists are basically "overwritten" with selected cold weapon.


 




Cheers, Andrashi"


 




So, no melee weapons I guess (//irritated.gif)
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 03, 2011, 07:29:29 PM
QuoteGuys! I just got this response from Andrashi:




"Hi, Lightingft




My apologies man, but all that footage is done only for demo purposes and it cannot be done without breaking the game in the process. By breaking I mean various glitches appear and you still cannot combine fists and weapons as bare fists are basically "overwritten" with selected cold weapon.


 




Cheers, Andrashi"


 




So, no melee weapons I guess (//irritated.gif)








 




That's bad.
Title: MAFIA II - melee weapons
Post by: MetalCat on November 05, 2011, 10:27:20 AM
Hey people, I ve wrote him before you wrote him.... And I told you thta he dont come back to Mafia...If you want I ll give you a message what have I recived: http://imageshack.us/f/820/andrashinwchmw.png/ (http://imageshack.us/f/820/andrashinwchmw.png/:1me5kt6b)




Yes, it is in Czech language...
Title: MAFIA II - melee weapons
Post by: lightingft on November 05, 2011, 12:06:41 PM
QuoteHey people, I ve wrote him before you wrote him.... And I told you thta he dont come back to Mafia...If you want I ll give you a message what have I recived: http://imageshack.us/f/820/andrashinwchmw.png/ (http://imageshack.us/f/820/andrashinwchmw.png/:30xnr672)




Yes, it is in Czech language...










<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">
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 05, 2011, 05:05:31 PM
QuoteHey people, I ve wrote him before you wrote him.... And I told you thta he dont come back to Mafia...If you want I ll give you a message what have I recived: http://imageshack.us/f/820/andrashinwchmw.png/ (http://imageshack.us/f/820/andrashinwchmw.png/:36q7ln2z)




Yes, it is in Czech language...








 




That's bad. Very bad.
Title: MAFIA II - melee weapons
Post by: MetalCat on November 06, 2011, 01:45:17 PM
I think that we can add melee weapons to Giuseppẻ̫s shop. It is scripted. I found it here: http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png (http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png:192vdry2)
Title: MAFIA II - melee weapons
Post by: Mike Bruski on November 06, 2011, 03:32:30 PM
Nice find MetalCat, what does that mean, do you plan to install the melee weapons inside of Guiseppe's store?
Title: MAFIA II - melee weapons
Post by: MetalCat on November 06, 2011, 03:55:10 PM
I have tried it, but when I change for example magnum to pendrek (cosh) giuseppẻ̫s store were locked...Do you know something what can I do? Or anybody?
Title: MAFIA II - melee weapons
Post by: lightingft on November 06, 2011, 04:00:23 PM
QuoteI think that we can add melee weapons to Giuseppẻ̫s shop. It is scripted. I found it here: http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png (http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png:3slph6tu)










Wow MetalCat, that's great news! You made my day  <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 - melee weapons
Post by: MetalCat on November 06, 2011, 04:21:21 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



I think that we can add melee weapons to Giuseppẻ̫s shop. It is scripted. I found it here: http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png (http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png:bdstfp0h)










Wow MetalCat, that's great news! You made my day  <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">







</div></blockquote>

 




That is great...But I need some help...don̫̉t wanna somebody help me with it?
Title: MAFIA II - melee weapons
Post by: lightingft on November 06, 2011, 04:28:38 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>






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



I think that we can add melee weapons to Giuseppẻ̫s shop. It is scripted. I found it here: http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png (http://img444.imageshack.us/img444/6363/fuuuuuumafiaii.png:1l4tj2ca)










Wow MetalCat, that's great news! You made my day  <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">







</div></blockquote>

 




That is great...But I need some help...don̫̉t wanna somebody help me with it?







</div></blockquote>



Wish I could, but... I have abslolutely NO experience modding M2. Sorry.
Title: MAFIA II - melee weapons
Post by: MetalCat on November 06, 2011, 04:29:35 PM
<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"> ..Ãâà Anyone else?
Title: MAFIA II - melee weapons
Post by: Mike Bruski on November 06, 2011, 04:31:27 PM
Sadly, I have no-clue at all around scripting, hopefully later today a member of ours that codes would help you.
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 06, 2011, 07:25:14 PM
That's a great news. I thought it's impossible to put them into the game, but I was wrongÃâà  (//bigeyes.gif)
Title: MAFIA II - melee weapons
Post by: lightingft on November 06, 2011, 07:39:13 PM
QuoteThat's a great news. I thought it's impossible to put them into the game, but I was wrongÃâà  (//bigeyes.gif)










Same here, this is amazing news! If MetalCat will pull it off, he's a GENIUS!
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 06, 2011, 07:49:33 PM
I'm looking forward to 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">
Title: MAFIA II - melee weapons
Post by: lightingft on November 08, 2011, 01:07:48 PM
<div></div>

 




Looks like it's really possible to get the melee weapons in the full game.
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 08, 2011, 03:00:03 PM
But how? With LUA ?
Title: MAFIA II - melee weapons
Post by: lightingft on November 08, 2011, 03:20:01 PM
QuoteBut how? With LUA ?










Yeah, I saw this little command [adds melee weapons, sadly you cannot use them, just carry them around], which works with the demo, maybe the full game, but it crashes my game. [THE CONSOLE, not the command.]


 




Here's the command if anyone's going to make an use for it, people say that it gives the melee weapons [they tested in demo] (found on FacePunch):




for i = 1, 30 do game.game:GetActivePlayer():InventoryAddWeapon(i,50) game.game:GetActivePlayer():InventoryAddAmmo(i,5000) end
Title: MAFIA II - melee weapons
Post by: MetalCat on November 08, 2011, 06:41:37 PM
So, I wrote to that German who made that video what put lightingift. And he said: of course. Now we are 2 on it and it starting looks very nice. (//wink.gif)




FU-CK YEA!
Title: MAFIA II - melee weapons
Post by: lightingft on November 08, 2011, 07:24:47 PM
QuoteSo, I wrote to that German who made that video what put lightingift. And he said: of course. Now we are 2 on it and it starting looks very nice. (//wink.gif)




FU-CK YEA!










He wrote back, sent him a PM, he said it's possible, he'll tell me how he did it!!! Hell yeah!  <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 - melee weapons
Post by: MetalCat on November 08, 2011, 08:12:07 PM
Yes, he wrote me back and now we are thinking how we make them works (//wink.gif)
Title: MAFIA II - melee weapons
Post by: lightingft on November 08, 2011, 08:15:27 PM
QuoteYes, he wrote me back and now we are thinking how we make them works (//wink.gif)










Hell yes!!! That's awesome!
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 08, 2011, 09:08:50 PM
I don't know if anyone knows how to make them working.
Title: MAFIA II - melee weapons
Post by: dandwell on November 08, 2011, 09:23:03 PM
All greetings here that I have




achieved friends, I from Russian if




that




<div></div>
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 08, 2011, 09:29:33 PM
Maybe you know, dandwell, how to make them working ? BTW, I've seen your videos and I have few questions.


 




1 - How did you make that new combination (it's known for me as it was used by Chinese) ?


 




<div class="ipsSpoiler_header">








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

</div>

</div>

 




2 - How did you shoot from the car as a passenger ? And how did you open the Stadium area in 0:41 ?


 




<div class="ipsSpoiler_header">








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

</div>

</div>

 




3 - How did you make new home ? 2:22 on video, marked by green key.


 




<div class="ipsSpoiler_header">

http://www.youtube.com/watch?v=HQRQUgQA4B4 (http://www.youtube.com/watch?v=HQRQUgQA4B4)


</div>

 


 




I'll sub your channel some time.


 




+1
Title: MAFIA II - melee weapons
Post by: dandwell on November 08, 2011, 09:34:07 PM
Unfortunately yet hasn't found as




to add the weapon what was not




hidden and didn't break game, but




I try wait for news  <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: MAFIA II - melee weapons
Post by: lightingft on November 09, 2011, 12:17:31 PM
QuoteAll greetings here that I have




achieved friends, I from Russian if




that




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






</div>



O_O Hope we will get melee weapons functioning, this is amazing!
Title: MAFIA II - melee weapons
Post by: dandwell on November 09, 2011, 01:09:34 PM
How did you shoot from the car as a passenger ? And how did you open the Stadium area in 0:41 ?




Spoiler for Hiden:




What about shooting,This is my modification, but this is another topic for discussion will be,stadium is not open UTB simple icon
Title: MAFIA II - melee weapons
Post by: dandwell on November 09, 2011, 03:09:42 PM
Progress!


 









<div></div>
Title: MAFIA II - melee weapons
Post by: lightingft on November 09, 2011, 03:10:11 PM
QuoteProgress!


 









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






</div>



<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 - melee weapons
Post by: Cole Phelps on November 09, 2011, 03:20:07 PM
QuoteProgress!


 









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






</div>

 




Nice workÃâà  (//bigeyes.gif)
Title: MAFIA II - melee weapons
Post by: MetalCat on November 11, 2011, 07:58:19 PM
QuoteProgress!


 









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






</div>

 




That I made too. I think that you ve just change animation styles in ingame.sds and changed config/anim2styles (or something like that), did you?
Title: MAFIA II - melee weapons
Post by: lightingft on November 26, 2011, 06:22:53 AM
Any more progress?
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 26, 2011, 06:42:23 PM
I got this message from Andrashi on YouTube


 




(//img535.imageshack.us/img535/7609/beztytuu1oi.jpg&key=c0e2b40de54da7dc3728405f7887d75930cc39d229e7d6c05465850c326866c3) (http://imageshack.us/photo/my-images/535/beztytuu1oi.jpg/:3b8fzhag)
Title: MAFIA II - melee weapons
Post by: MetalCat on November 26, 2011, 06:55:22 PM
QuoteAny more progress?








 




Yes we are working on it... I do not understand LUA so much, so I have asked author of some videos (not andrashi!). He have done it and he is going to send it to me (//wink.gif)
Title: MAFIA II - melee weapons
Post by: lightingft on November 26, 2011, 07:15:58 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



Any more progress?








 




Yes we are working on it... I do not understand LUA so much, so I have asked author of some videos (not andrashi!). He have done it and he is going to send it to me (//wink.gif)







</div></blockquote>



Hell yeah, great to know!
Title: MAFIA II - melee weapons
Post by: MetalCat on November 30, 2011, 01:23:23 PM
So, my German colleague send me free ride with melee weapons and now I am getting to work...I have look at it when I played it and send it on youtube:









<div></div>
Title: MAFIA II - melee weapons
Post by: lightingft on November 30, 2011, 02:09:51 PM
QuoteSo, my German colleague send me free ride with melee weapons and now I am getting to work...I have look at it when I played it and send it on youtube:









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






</div>



COOL!!!!!!!!!!!!!!!!!
Title: MAFIA II - melee weapons
Post by: crazypreacher on November 30, 2011, 02:12:07 PM
I hope that we will be able o use it  ???
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 30, 2011, 02:30:43 PM
That's good to see - I think we would be able to use it soonÃâà  (//bigeyes.gif)   (//bigeyes.gif)
Title: MAFIA II - melee weapons
Post by: lightingft on November 30, 2011, 05:31:30 PM
One thing - will we be able to use it in missions? Atleast in some? Ofcourse that's not nescessary but would be even more aweomse! Or will it only be in FreeRide? P.S. I hope this really becomes a big success. It's weird seeing Cops in Ch6 with batons and in Ch8 Steve, Marty, Joe with baseball bats, and you can't even use it, this mod will be AwEsOmE!
Title: MAFIA II - melee weapons
Post by: MetalCat on November 30, 2011, 08:57:21 PM
QuoteOne thing - will we be able to use it in missions? Atleast in some? Ofcourse that's not nescessary but would be even more aweomse! Or will it only be in FreeRide? P.S. I hope this really becomes a big success. It's weird seeing Cops in Ch6 with batons and in Ch8 Steve, Marty, Joe with baseball bats, and you can't even use it, this mod will be AwEsOmE!










Yes, we want to activate it in story, too. But now we must solve problem of using them. (//wink.gif)
Title: MAFIA II - melee weapons
Post by: Cole Phelps on November 30, 2011, 09:05:13 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



One thing - will we be able to use it in missions? Atleast in some? Ofcourse that's not nescessary but would be even more aweomse! Or will it only be in FreeRide? P.S. I hope this really becomes a big success. It's weird seeing Cops in Ch6 with batons and in Ch8 Steve, Marty, Joe with baseball bats, and you can't even use it, this mod will be AwEsOmE!










Yes, we want to activate it in story, too. But now we must solve problem of using them. (//wink.gif)







</div></blockquote>

 




That will probably be the best mod for Mafia 2Ãâà  (//bigeyes.gif)  +1
Title: MAFIA II - melee weapons
Post by: Mike Bruski on December 01, 2011, 01:37:05 AM
INSANE work so far MetalCat, I believe though I know why in the vid the guy does a freak gun draw anim when you show the blade to him, I think because the NPC is searching for a knife, but since the game has edited a blade from NPC inventory out, the action is not available to the NPC, so he keeps drawing a gun in rotation form until he gets his knife wich is not there, so he continues in a loop with a gun draw.
Title: MAFIA II - melee weapons
Post by: Andrashi on December 01, 2011, 10:54:05 AM
Hi fellow modders and Mafia II fans,


 




INTRODUCTION, skip if you are not interested


 




<div class="ipsSpoiler_header">



 




Allow me to briefly introduce myself and then we'll get to the business. The name is Andrashi, I am from Czechoslovakia and I have always been quite keen about Mafia and its sucessor, Mafia II. I have followed Mafia II since its announcement and felt enraged when cuts began, mainly in close combat part (see THIS 2K FORUM THREAD (http://forums.2kgames.com/showthread.php?78264-Rage-Thread-No-Melee-Weapons:1pwlyr9p)). Being a fan of unarmed brawling, it was decided that this matter was worth investigating. Result of the search were interesting enough to be worth posting in form of a pair of videos. Outrage followed, then everything went calm, apart from occasional comment like "F##K 2K" posted under one of these.


 




About a month ago I started getting e-mails how to mod in these melee weapons. I am currently studying Master's degree of Microelectronics and Technology, so answers had to wait. Of course that led to nice secondary effects like another messages sent from the questioner, saying warm and pleasant things like "You greedy bastard, keep that melee s##t in your @$$ if you think you are so good you don't have to respond me anymore."


 




Well OK, still I tried to respond in my spare time. But then it happened. During last few days I got quite a number of e-mails on this topic, so I went to have a look "why". And that's when I came over this thread, only to learn that all you guys were asking me and posting here my answers as if it mattered whether one of you asks or another  (//bigwink.gif) .


 




</div>

 




Now let's get to business. First of all, let's have a look at animations sets of our beloved melee weapons.


 




<div class="ipsSpoiler_header">



 




KNIFE




moveset number: 35 (0x23)




missing moves: All three counterattacks and all their hit responses (both normal and stun types)


 




BATON / NIGHTSTICK




moveset number: 36 (0x24)




missing moves: none, this set is complete


 




BASEBALL BAT




moveset number: 37 (0x25)




missing moves: light punch combo, also block animation is pretty much unpolished


 




CHAIR




moveset number: 73 (0x49)




missing moves: all, this animset is a relic from development


 




BARREL




moveset number: 74 (0x4A)




missing moves: all, this animset is a relic from development


 




Grabs are behaving always the same as for unarmed melee. Finisher for low stun (enemy slumps on ground) is always standard melee kick. For some unknown reason, standing melee weapon stun finishers mess the camera for a few first times they are used (camera goes to the ground). After some time everything gets miraculously fixed and from that point during melee weapons finishers the camera behaves normally.


 




Clever animation set parenting can help with getting rid of some shortcomings. For example, when baton moveset is made to be a parent for Baseball bat moveset, then Baseball bat light puch combo copies Baton light punch combo. Looks better than Baseball bat empty hands light punch combo in my opinion.


 




Sidenote: as you all can see, Mr. VÃÆávra was not lying back in 2007. There was really planned rich brawl with usage of environment.


 




</div>

 




Now what about actual weapons?


 




<div class="ipsSpoiler_header">



 




In Mafia II there are two files named Table_0 which have something to do with melee weapons.


 




One is in "Tables.sds" and contains weapons.tbl datatable. Within this table various firearm parameters can be tweaked - ammunition, rate of fire, muzzle effect, type of projectile, kickback etc. Of course empty hands and melee weapons are listed as well so...so nothingÃâà  <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"> . As far as I know, empty hands and melee weapons have their entry in this table only because each weapon has to have a weapons.tbl table entry. Which leads me to a curious question - can anybody try to add some "ammunition" to a melee weapon and observe the results? Maybe we are closer to having melee weapons than we thinkÃâà  <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">


 




Anyway, still there is one curious flag in weapons.tbl. If a firearm is set a certain flag and then is fired at some wall, it leaves not bulletholes, but blunt weapon scratches. Interesting, eh? I think melee weapons and overall melee combat was originally meant to be "free to use anywhere". Decision to have duels was probably made later in the development.


 


 




The second Table_0 in question is in "Ingame.sds" and contains Human_Items.tbl and contains all itemsÃâà which can be attached to human characters. Of course that also means melee weapons. This table is quite important because it shows us something pretty interesting: engine of Mafia II probably works with some internal values (number most likely) which represent all of these items. So even if c1911 is completely tweaked and modded to look and behave like Thompson1928, the icon of c1911 stays because it is slot 4 in Ingame.sds.


 




Such a discovery is important, because it means certain item slots can be "special". Yes, for example empty hands, which are currently the only human "item" allowed to enter melee duel. What if at some point of development melee weapons were given such a privilege as well? Can it be that melee weapons are now simply excluded from such a condition? Or it can be similar, but in fact opposite: what if items have their internal hardcoded status (empty hands, firearm, melee weapon, decorative item) and then there is some condition that only empty hands are allowed to enter melee duel. And what if we expand this condition once again that not only empty hands, but also melee weapons can enter melee duel?


 




</div>

 




Which options we modders have if we want to reimplement melee weapons back again?


 




<div class="ipsSpoiler_header">



 




Now, what are our options if we want to bring melee weapons back and NOT break something else in the progress? Switching movesets by hand in files is maybe a fun, but fixes nothing. We don't need to switch movesets in files, we need the GAME ITSELF to switch movesets dynamically, based on a weapon in hand. Or at least fake such a process.


 




Generally, there are according to my knowledge two ways we can try:


 




1.)




The best would be if we could somehow get past the condition which makes melee weapons unable to operate in close combat. This condition WAS NOT always active as you can see for example in this video (delete away the letter X): <a rel="">Xhttp://www.youtube.com/watch?v=omY93dIH8pc#t=05m03s</a>. Question is whether we are powerful enough to find this condition and change it. If it is in some global LUA file (some general settings which are loaded when the game starts) then we may stand a chance. But if it is on code-level (somewhere in Mafia II.exe), then this way is screwed unless we have some Neo within our ranks.


 




2.)




Second way is to keep empty hands as the only weapon which can enter duel, but then use LUA scripting to change the animset and to fake in melee weapon into the hand. Changing animation moveset can be done via "SetAnimStyle". I personally tested it, it works well. Still there is an issue of the weapon itself missing in the hand. Can you remember the level "Room Service"? Vito drags some bucket through half the mission. This bucket is in fact some "actor item". Can you remember Francezka's sidemission and Erik being smashed by a bottle? The same "actor item" mechnics are used. This "actor item" is first registered ("RegisterActorItem"), then attached to Vito's hand ("ActorItemTo Hands"). If the same can be done for melee weapon model (spawn it as actor item, then attach it to Vito's hand), then we can go round the empty hands check and fake in melee weapon in hand. Next tweak the damage via SetDamageMultiplier and here you go with almost fully functional melee weapon. Almost, because I guess you cannot force it out of hand, since there is in fact no melee weapon present.


 




Remember, this method may work, but it utilizes "empty hands" human item with faked melee weapon model in hand, changed animation moveset and modified damage multiplier. It may work, it may work not.


 




</div>

 




Conclusion


 




<div class="ipsSpoiler_header">



 




In my opinion (based on my current knowledge) there are no other ways how to bring back fully operational melee weapons than the two mentioned above. If I knew any trick how to modify melee weapons back, do you guys really think I would sit on it and not implement it into RotH mod?Ãâà  (//bigwink.gif)  But I hope now you all can see that I am not hiding anything away from you all. I just don't fell like shouting "LOOK I CAN MAYBE BRING BACK MELEE WEAPONS, I'M SO GOOD !!!" when in fact I have only theses and nothing to show. Oh, and the tiny little peeble thing named "real life" called right now, it wants me back immediately.Ãâà  <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>

 


 




Best regards, Andrashi
Title: MAFIA II - melee weapons
Post by: Cole Phelps on December 01, 2011, 01:33:29 PM
Welcome, my friendÃâà  (//bigeyes.gif)  I'm glad you finally joined usÃâà  <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">  Things with melee weapons have changed a lot last time.


 




+1
Title: MAFIA II - melee weapons
Post by: Cole Phelps on December 01, 2011, 01:50:07 PM
Do you think your instructions could be applied in-game ?Ãâà  (//bigeyes.gif)
Title: MAFIA II - melee weapons
Post by: Mike Bruski on December 01, 2011, 02:09:19 PM
Welcome back Andrashi! We've waited a while to see you here, thank you so very much for joining this site, I will also say that I love the ROTH mod, fantastic work.
Title: MAFIA II - melee weapons
Post by: MetalCat on December 01, 2011, 04:50:15 PM
Thank you, andrashi... We will take care of it...


 




People! I will throw here link to our melee weapons, so if you find something interesting, post it here...


 




http://www.ulozto.sk/11456782/miimwlua-rar (http://www.ulozto.sk/11456782/miimwlua-rar:dt02h0ki)
Title: MAFIA II - melee weapons
Post by: crazypreacher on December 01, 2011, 05:23:11 PM
to bad it don't work


 




my PC just don't start the game
Title: MAFIA II - melee weapons
Post by: MetalCat on December 01, 2011, 05:33:07 PM
Quoteto bad it don't work


 




my PC just don't start the game








 




E? WTF? That is bad... Very bad...It works for me perfectly...Why?
Title: MAFIA II - melee weapons
Post by: crazypreacher on December 01, 2011, 05:49:14 PM
I don't know i play with all legal gamesÃâà not torrents
Title: MAFIA II - melee weapons
Post by: crazypreacher on December 01, 2011, 06:08:13 PM
Now I lost all my save game and i have to reinstall the game


 




By the way why redone the ( Launcher )?
Title: MAFIA II - melee weapons
Post by: MetalCat on December 01, 2011, 06:22:01 PM
QuoteNow I lost all my save game and i have to reinstall the game


 




By the way why redone the ( Launcher )?








 




Sorry, sorry, buddy...But, you have to backup files...And I donÃâôtÃâà know why launcher. It works for me and SuperMcTiger (Mafia1860) told me: "IIt goes well with the normal version I tested, But only V1.0"




Save game must be in:




C:UsersAppDataLocal2K GamesMafia II




Isnt they...If yes, just backup and reinstal...Or better, maybe is there anybody who can send you original files. I have only these ones...
Title: MAFIA II - melee weapons
Post by: Mafia1860 on December 01, 2011, 06:28:13 PM
Yes it works on V1.0.  <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">


 




EDIT: it would have to go even if they only "material" Exchange folders.
Title: MAFIA II - melee weapons
Post by: lightingft on December 01, 2011, 07:02:43 PM
QuoteThank you, andrashi... We will take care of it...


 




People! I will throw here link to our melee weapons, so if you find something interesting, post it here...


 




http://www.ulozto.sk/11456782/miimwlua-rar (http://www.ulozto.sk/11456782/miimwlua-rar:f43y5r7n)










Cool!!! I'll try it!
Title: MAFIA II - melee weapons
Post by: MetalCat on December 01, 2011, 07:12:31 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



Thank you, andrashi... We will take care of it...


 




People! I will throw here link to our melee weapons, so if you find something interesting, post it here...


 




http://www.ulozto.sk/11456782/miimwlua-rar (http://www.ulozto.sk/11456782/miimwlua-rar:1unr0jpi)










Cool!!! I'll try it!







</div></blockquote>

 




But first, backup your files!!!
Title: MAFIA II - melee weapons
Post by: lightingft on December 01, 2011, 07:16:58 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>






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



Thank you, andrashi... We will take care of it...


 




People! I will throw here link to our melee weapons, so if you find something interesting, post it here...


 




http://www.ulozto.sk/11456782/miimwlua-rar (http://www.ulozto.sk/11456782/miimwlua-rar:1rhs9okm)










Cool!!! I'll try it!







</div></blockquote>

 




But first, backup your files!!!







</div></blockquote>



Yeah, I did. But I deleted my Mafia anyways, gotta reinstall, since mine is updated anyway. But this is really amazing. I hope this will work with updated Mafia II in the future, because then we can't play JA.
Title: MAFIA II - melee weapons
Post by: lightingft on December 01, 2011, 08:13:12 PM
Just tried it - I'm impressedÃâà  (//wp-content/uploads/invision_emoticons/ohmy.png)  We can't fully use them, but you can say this mod is in Beta!  <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 - melee weapons
Post by: MetalCat on December 01, 2011, 08:31:35 PM
QuoteJust tried it - I'm impressedÃâà  (//wp-content/uploads/invision_emoticons/ohmy.png)  We can't fully use them, but you can say this mod is in Beta!  <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">










That is...I have gave here video...You can see that, you cannot use them...
Title: MAFIA II - melee weapons
Post by: lightingft on December 02, 2011, 12:24:03 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



Just tried it - I'm impressedÃâà  (//wp-content/uploads/invision_emoticons/ohmy.png)  We can't fully use them, but you can say this mod is in Beta!  <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">










That is...I have gave here video...You can see that, you cannot use them...







</div></blockquote>



Yeah I know  <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">  Hey, MetalCat, will it work on updated Mafia 2 later?
Title: MAFIA II - melee weapons
Post by: MetalCat on December 02, 2011, 01:09:18 PM
QuoteYeah I know  <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">  Hey, MetalCat, will it work on updated Mafia 2 later?








 




I don̫̉t know...You can ask: http://mafiascene.net/profile/?u=350 (//forums/users/?u=350)




He has done LUAÃâà script. Ask him. (//wink.gif)
Title: MAFIA II - melee weapons
Post by: Mafia1860 on December 03, 2011, 04:04:25 PM
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="1326" data-ipsquote-contentclass="forums_Topic"><div>



Yeah I know  <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">  Hey, MetalCat, will it work on updated Mafia 2 later?








 




I don̫̉t know...You can ask: http://mafiascene.net/profile/?u=350 (//forums/users/?u=350)




He has done LUAÃâà script. Ask him. (//wink.gif)







</div></blockquote>

 




MaybeÃâà  <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">
Title: MAFIA II - melee weapons
Post by: Andrashi on December 03, 2011, 09:25:00 PM
Update


 




Making melee weapons fully working via their respective weapons/items is in my opinion highly unprobable.


 




<div class="ipsSpoiler_header">



 




I downloaded Skidrow version for research purposes (I have my own legal copy of Special Extended Edition).Ãâà Applied mafiaII.exe and free ride from you guys, SuperMcTiger/MetalCat. Other other files from your package were not used.


 




Results of experiments unfortunately confirm my theories. Melee weapons are taken as normal weapon slots. That means you can for example change "Pendrek" (baton) into Thompson1928 and it will work (only the HUD icon of the baton stays). However, I haven't found a way how to force the engine into accepting these items as melee weapons.


 




Table entry "Prazdne ruce" ("Empty hands") in human_items and for example table entry "Pendrek" ("Baton") in the same table have the exactly same flag bits - only the one is set, and that is "small firearm". Yes, "Prazdne ruce" has "small firearm" flag set. Surprisingly, police does not recognize "Prazdne ruce" as an offence and there is no ammo counter visible when player has "Prazdne ruce" as a currently held weapon. On the other hand, Baton is recognized as a "small firearm" and has ammo counter visible. That means human item of index 0 (Prazdne ruce) is treated somehow special by Mafia II engine, whereas melee weapons are treated as standard weapon-type items.


 




Conclusion is not pleasant - this way of restoring melee weapons would be the best, but unfortunately, we cannot do it unless somebody reverse-engineers MafiaII.exe and changes/writes in some neccessary code.


 




</div>

 


 


 




Making melee weapons somehow working via LUA scripting is plausible.


 




<div class="ipsSpoiler_header">



 




The key is this LUA command: SetAnimStyle(selector, AnimSet)




There is OnEvent in Freeride, which is triggered each time some event calls. One of the events is "push the enemy" event (so far I don't know exactly how to detect it).




If we find how to detect the "Push the enemy" event, then we can add multi-choice menu (similar to police bribing menu) and according to the chosen response we can change Vito's moveset and damage multiplier to fake a selected melee weapon. Big issue of this way is no model of the wepon being present in hands. However that can by maybe cicuuvised by using RegisterActorItem(float, float) and ActorItemToHands (UNTESTED SO FAR) Question is wheter is is doable.


 




</div>

 


 




Andrashi
Title: MAFIA II - melee weapons
Post by: Andrashi on December 18, 2011, 06:46:58 AM
Update


 




Another update, mainly focused on the matter of Actor entities.


 




<div class="ipsSpoiler_header">



 




Melee duel with "invisible cold weapons" was sucessfully emulated via Lua scripting. Still pretty basic, but looks OK nevertheless.


 




"Actor item" mechanics were looked into. So far no success, but interesting discoveries. In Mafia II, designer defines actors (entities to be used) in the "Actors" file in the *.SDS. Actors can be:




[ul]




Title: MAFIA II - melee weapons
Post by: eXistenZ34 on December 18, 2011, 12:29:03 PM
Hi




I have not quite understood




but I know the name of the entity and the "StreamMapLine" has activated for:


 




-Entity arcade




-Entity Clemente slaughter




-Entity constructionsite




-Entity Distilery (B of Jimmy)




-Entity Fondry




(//i56.tinypic.com/nzmxl2.jpg&key=b10994cb2ee65f916f470192f69c7f0a8086ab138bd26c768c5592a446fd61f0)




(//i54.tinypic.com/3468j1h.jpg&key=7fc7a270d72cc2112e9c4b878471fa5a731ed1a153486a28603b6210d4a6fbe8)




-Entity Chinese Restaurant




(//i53.tinypic.com/f2fd3.jpg&key=8e6d89c50feb7421840301a31c021eb9ff8c59aa22cb1872e219f4cf7021110c)




-Entity mansion




(//i52.tinypic.com/2zjgj2e.jpg&key=474d8502a23e18281868c932b12cad4fe0c58f79e03678972253e6a4107ef54b)




(//i54.tinypic.com/149cjno.jpg&key=902dec219ab8f26aafabc81e706f94031d54f6048402cb0ac86b393bc795ea9f)




-Entity Observatory




-Entity Prison




(//i53.tinypic.com/nlbviv.jpg&key=c42dfdce283a3cb9be306f86135865765be1324aa6a2e02bad8b03c4d29638a7)




(//i51.tinypic.com/2ykzvnk.jpg&key=d5b682619b31fd9b115dc1cdc57d989bd892683d7fabc845b38093634fb67b9a)




-Entity Sea Gift


 


 




-Entity Cathouse JA




-Entity supermarket JA




-Entity JA




(//i52.tinypic.com/6i76o9.jpg&key=00041f874f28b04b5e8a6767d993d7a52df6b788c51f2ccaf4333d5274d11f9e)




(//i54.tinypic.com/2nv5v68.jpg&key=1b6aaf9a4409b9171bed7b5e7d2e30837f46f1308d45f6b8fc48c9a8fcf02a2a)


 


 




I would make a topic soon
Title: MAFIA II - melee weapons
Post by: lightingft on December 31, 2011, 09:10:11 PM
[youtube:3nu2xkn2]http://www.youtube.com/watch?v=a9EP1iqXRXw (http://www.youtube.com/watch?v=a9EP1iqXRXw)[/youtube:3nu2xkn2]


 




Look what I found on youtube (//wp-content/uploads/invision_emoticons/ohmy.png)
Title: MAFIA II - melee weapons
Post by: MetalCat on December 31, 2011, 09:23:26 PM
That is progress... But as you can see, Vito own two knives and to fully function (I can not think of another word...) we have to own only one...I think, that he changed something like "Prazdne ruce" (fists) to "Knife"... I saw it once before... But thumb up   :cool:  


 




I asked him that he donÃâôt want to join our "team"   :cool:  and now I am waiting for a respond...Hope that he will accept...    (//wp-content/uploads/invision_emoticons/wacko.png)
Title: MAFIA II - melee weapons
Post by: KiNd on December 31, 2011, 10:43:18 PM
Look what I found on Youtube it's an exclusive preview of the combat Mafia 2 directly from the developers at 2K I think that in fact the entire combat system was functional but the developers have changed the combat system so that it was not possible to get the full version of the game




There is (http://www.youtube.com/watch?v=w1xHKTM8Obg:1ylopjrt)
Title: MAFIA II - melee weapons
Post by: Mike Bruski on December 31, 2011, 11:54:55 PM
That video looked brill from the russion melee video, it appears as the days past the closer we're getting to the day of when Melee weapons will function once again in Mafia II. Thank you guys so much for everything you do thus far.
Title: MAFIA II - melee weapons
Post by: MetalCat on January 02, 2012, 09:35:30 PM
<div></div>

 




<div class="ipsSpoiler_header">

Bugs, bugs, bugs...For now, anyway (//wink.gif)


</div>

 




Mafia1860 found lots of animations of melee weapons and scripted it. Thank you   <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">  :







<pre class="ipsCode">ply=game.game:GetActivePlayer()

ply:SetControlStyle(enums.ControlStyle.LOCKED)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_BIGHIT1-B", false)end,{l_1_0},100,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_BIGHIT1_DAMAGE-A", false)end,{l_1_0},2000,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_BIGHIT1_DAMAGE-B", false)end,{l_1_0},5000,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_BREATH-A", false)end,{l_1_0},8000,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_BREATH-B", false)end,{l_1_0},10000,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_EVADE_L-A", false)end,{l_1_0},12500,1,false)

DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("35-CC_EVADE_L-B", false)end,{l_1_0},15000,1,false)

DelayBuffer:Insert(function(l_1_0)ply:SetControlStyle(enums.ControlStyle.FREE)end,{l_1_0},18500,1,false)</pre>
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 02, 2012, 11:40:23 PM
I like to watch the melee weapon anim video's, I really hope within 1-2 months from now we have a full on mod like the ROTH mod but with Melee weapons, for those of you that do not know the ROTH mod, it is by Andrashi it stands for Reminiscence Of The Hype Mod. If you wish to checkout the ROTH mod by Andrashi, click the link below...


 




Reminiscence of the hype V1.0 (//1u0ytph7)
Title: MAFIA II - melee weapons
Post by: Mafia1860 on January 03, 2012, 12:13:25 AM
The script from the video is done together indiscriminately. There's a lot more codes.  :woohoo:


 


 




Sorry for my bad English (//confuse.gif)??:
Title: MAFIA II - melee weapons
Post by: Andrashi on January 06, 2012, 08:39:57 AM
My apologies for non constructive topic reply.


 




At risk of sounding too harsh - CAN WE PLEASE FINALLY STOP WITH THIS SILLINESS?




I made a few posts about melee weapons, their animations and overall our chances of bringing back melee weapons.




Posts are seeimgly ignored, because I did not backed them with nice YouTube videos, right?


 




Sigh, so...if Mafia1860 found anything new, then how did I managed to write post Post 1820, second paragraph? (//35nan7tv) Ah yes, I forgot to add YouTube video, right? OK, so let's fix it. Here is a nice eye candy video which tells us nothing about how to achieve what we want but looks pretty cool]aaa[/url]


</div>

 




And here's one outrageous new discovery - Joe's melee animations are those which have prefix "39-" in basic_anims2.sds. What a big surprise, given the fact Joe's moveset is labeled as set 39 in animengine_groups and the fact this is known since summer 2010's demo. Seriously, can we start massively celebrating because I claim to be the first one to mention it? Oh I forgot to add another eye candy YouTube video, now everybody will ignore the post. Wait wait, here you go:


 




<div class="ipsSpoiler_header">

aaa (http://www.youtube.com/watch?v=OB8HKWP1UKw:35nan7tv)


</div>

 


 




OK, I hope the message is clear now. We need to move FORWARD if we want  to have fully working melee weapons, not to stay at one place and glorificate everybody who can alter a few numbers in a HEXeditor. As I already wrote (post was ignored, no fancy YouTube video, I know): since melee weapons slots are disabed via engine and the only weapon slot which works for close combat is slot "Prazdne ruce", there is the only way to have melee weapons back - LUA script and actor items. However, I am yet to discover how to add actor item to .sds structure. So far my knowledge is incomplete and all of my attempts are crashing down the game. But that means THIS is the issue we should be intensely investigating right now. Not "how to change a few numbers with HEXeditor", but "How to add CrashObject entity to freeraid_main.sds file".


 




Cheers, Andrashi


 


 




P.S.: I also found a way how to make A.I. enemies break away from grabs and with some other changes A.I. can even reverse grab you! But you know, no YouTube video, so feel free to ignore this PostScriptum.[/size]
Title: MAFIA II - melee weapons
Post by: zahar999 on January 08, 2012, 03:01:59 PM
??? ????????  ??? ??? Andrashi ??  ??? ? ?  ??? ??  ???   ??? ???  ??? ??!
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 08, 2012, 03:12:54 PM
Very interesting post Andrashi, I would agree with it, with all due respect to the other modders of course.


 




Btw, do you plan to edit or create a new ROTH mod? I REALLY love that mod, just the player camera is way too close when walking around, I love the cover system camera.


 




Also my most favourite moment of your mod, is I got approached by a cop, and he asked me for my license! Because I had a gun in my hand, that is just like the GDS 09 video, well done man, well done.
Title: MAFIA II - melee weapons
Post by: Andrashi on January 16, 2012, 05:47:19 PM
Hi there again, fellow mobsters.


 




zahar999:  ??? ????.  ??? ???  ???   ??? ??.


 




For everyone: Work continues on reverse engineering of the Actor file. Actor file is closely related with FrameNameTable and with those funky buffer and vertex files. Now just figure out how all this is related and we can give it a try.


 




In the meantime, we can play with a nice workaround. We already know that Vito can perform melee animation sets via LUA command SetAnimStyle. But with no weapon in hand, right? Well today I rediscovered (post-mortem credits to S0beit and MafiaEmpire.com) one quite useful LUA command: ModelToHands. It does exactly how it sounds - it adds chosen weapon model to each hand. Rest of the description in the spoiler.


 




<div class="ipsSpoiler_header">



 




So for example if you want to use baseball bat in close combat without breaking any other gameplay mechanic, do this:




[ol]




Title: MAFIA II - melee weapons
Post by: eXistenZ34 on January 16, 2012, 10:40:08 PM
good job Andrashi


 




Video realized with injector


 




[youtube:poogqpd3]




<div></div>[/youtube:poogqpd3] 




Knife







Quote 




game.game:GetActivePlayer():SetAnimStyle("melee","KnifeStyle")




game.game:GetActivePlayer():ModelToHands(true,-1,22)



 




Police Baton







Quote 




game.game:GetActivePlayer():SetAnimStyle("melee","PolBatStyle")




game.game:GetActivePlayer():ModelToHands(true,-1,28)


Title: MAFIA II - melee weapons
Post by: Cole Phelps on January 16, 2012, 11:40:38 PM
That good to see. Thanks, Andrashi +1
Title: MAFIA II - melee weapons
Post by: zahar999 on January 17, 2012, 01:29:45 AM
??? ?????  ??? ???? Andrashi!!!


 




??? ???? ?  ??? ?  ??? ??,?????? ?  ??? ?????????  ??? ???!




??? ??  ??? ???  ??? ?????  ???  Freeride!


 




???   ??? ???????  ??? ?? ...(..,-1,..)?
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 17, 2012, 02:51:54 AM
I've seen the vids from Zahar999 and eXistenZ34 and INCREDIBLE job Andrashi, incredible work, I would love to mess with it myself, wich injector do I use so I can mess with the melee weapons? I have a Steam version of Mafia II and it has the latest patch, any help is greatly appreciated.
Title: MAFIA II - melee weapons
Post by: clack on January 17, 2012, 05:55:58 PM
Quotegood job Andrashi 




Video realized with injector


 









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




Knife







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

 




game.game:GetActivePlayer():SetAnimStyle("melee","KnifeStyle")




game.game:GetActivePlayer():ModelToHands(true,-1,22)



 




Police Baton







Quote 




game.game:GetActivePlayer():SetAnimStyle("melee","PolBatStyle")




game.game:GetActivePlayer():ModelToHands(true,-1,28)



</div></blockquote>

 




So can you explain us how exactly can do this? Thank you!!
Title: MAFIA II - melee weapons
Post by: MetalCat on January 17, 2012, 07:53:58 PM
Andrashi




Thank you very, very much for it   <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">  But somethimes (I think that after first active of script) game use animation style of Vito adapted for each melee weapon...I have tried it and here is a video:









<div></div>

 


 




existenZ34




Can you implement melee weapons into FR 3.0? I think that it is possible to make that melee weapons be showed in the inventory...What do you think?
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 17, 2012, 09:35:13 PM
Thank you so much Andrashi for your hard work, I would LOVE, LOVE, LOVE to see you redo ROTH with the Melee Weapons!!!
Title: MAFIA II - melee weapons
Post by: eXistenZ34 on January 17, 2012, 11:08:47 PM
in the inventory, It is no longer possible since update 1.


 




we need C + + programmer to modify mafia2.exe


 




we'll find alternative solution, but it does not look as good as the original.


 




for expert




I need all the known HumanMessage



 







Quoteenums.HumanMessages.DAMAGE
<hr class="bbcode_rule" />
ok

enums.HumanMessages.ON_LEAVE_STATIC_WEAPON --- ?




enums.HumanMessages.ON_ENTER_STATIC_WEAPON --- ?




enums.HumanMessages.ENTER_VEHICLE
<hr class="bbcode_rule" />
ok




enums.HumanMessages.LEAVE_VEHICLE
<hr class="bbcode_rule" />
ok




enums.HumanMessages.ON_OWNER_CHANGE
<hr class="bbcode_rule" />
?




enums.HumanMessages.HUMAN_GARAGE_ENTER
<hr class="bbcode_rule" />
ok




enums.HumanMessages.HUMAN_GARAGE_LEAVE
<hr class="bbcode_rule" />
ok




enums.HumanMessages.ON_BOUNCE
<hr class="bbcode_rule" />
?




enums.HumanMessages.ON_PUNCH
<hr class="bbcode_rule" />
?




enums.HumanMessages.SCRIPT_CONTROL
<hr class="bbcode_rule" />
?




enums.HumanMessages.ANIM_NOTIFY
<hr class="bbcode_rule" />
?




enums.HumanMessages.AI_CONTROL
<hr class="bbcode_rule" />
?




enums.HumanMessages.ON_SHOOT
<hr class="bbcode_rule" />
ok




enums.HumanMessages.PLAYER_AIM_ENTER
<hr class="bbcode_rule" />
?




enums.HumanMessages.CLOSE_COMBAT_START
<hr class="bbcode_rule" />
?




enums.HumanMessages.AIM
<hr class="bbcode_rule" />
?








 




I do not need a response fashion COSTA.. .. response of Costa there a very long time there are many more
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 18, 2012, 01:12:31 AM
Is it possible, to play the Steam version in the first version? Include in the download the original game patch, and modify the files on top, or is that not possible at all? Thanks though eXistenZ34 for sharing the information.
Title: MAFIA II - melee weapons
Post by: Andrashi on January 18, 2012, 07:54:01 AM
My, my, what a mayhem   <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">


 




Everybody, listen. While this little discovery looks and plays nice, it is still miles away from full emulation of melee weapon mechanics, which were once present in the game. No need to praise me that much. Praise me all you want after I deliver something worth it.


 




Now for something interesting regarding GDS 2009 video:


 




<div class="ipsSpoiler_header">



 




I carefully watched once again the infamous GDS 2009 demo, part where melee weapon is being used in combat (guard with baton). For me it seems to that even 2K Czech used some sort for workaround for melee weapons at that time. Several playthroughs of that mission exist, yet in none of them is shown one (for us) crucial feature: ability to PICK UP THE BATON and use it against the guard. Now why not to present such a feature to the press, media and public, when the demo was basically stuffed with demonstrations of as much gameplay mechanics as possible?


 




My answer is: simply because the baton was faked somehow and it was not possible to pick it up.




Important question is: are we able to go even further then devs themselves?


 




</div>

 


 




And here we go with reactions & replies:


 




<div class="ipsSpoiler_header">



 




Meaning of values in LUA command ModelToHands:




ModelToHands(visible true/false, left hand weapon_ID, right hand weapon_ID)




If "-1" is for either left or right hand item, said hand remains empty. Weapon IDs are inside "tables.sds" file, in "table0_bin", in a table which is named "Weapons.tbl".


 


 




MikeBruski




I am working with Czech Special Extended Edition version of Mafia II. That means I run latest patches which remove some JA DLC content (Rocco's hotel, Printery) and disable some stuff. But that ensures these mods are playable even with official Steam Mafia II.


 




There is no way to play Steam Mafia II basic version. I tried, but Steam forces update. You can cancel the update, but Steam then disables the game (you cannot play it) and shows you warning that the game needs to be updated for your convenience before you can run it.


 




Also Mike, ROTH mod will be updated only if I gain access and knowledge large enough to modify and rescript storyline missions.


 


 




MetalCat




CZ:




NevÃÆím, na co narÃÆáÃâ¦Ã¾ÃÆíÃâ¦Ã¡   <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">  . Jestli na to co myslÃÆím, tak to nelze vylou?it, ale siln? pochybuji, Ãâ¦Ã¾e hra hra sama vybÃÆírÃÆá vhodnÃÆé anima?nÃÆí sety "dle zbran?" jen kv?li pouÃâ¦Ã¾itÃÆí p?ÃÆíkazu ModelToHands. Ten p?ÃÆíkaz pouze a jenom p?i?adÃÆí model do ruky, nic vÃÆíc. Zm?na AnimSetu se d?je p?ÃÆíkazem SetAnimStyle.


 




EN:




No idea what you are talking about. I cannot rule it completely out, but I firmly doubt in this case (ModelToHands used) engine automatically picks AnimSets based on a weapon model in character's hand. ModelToHands only makes a selected model show in a selected hand, nothing more. AnimSet is changed via SetAnimStyle command.


 


 




eXistenZ34




I will help you as soon as I get back to modding PC. For starters: CLOSE_COMBAT_START and CLOSE_COMBAT_STOP do not work the way it seems they should, at least that is conclusion of my experiements   <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">  . But since 2K used them (Butcher brawl, Eric brawl), they should be working. That means there's probably some trick behind their use.


 




</div>

 


 




Andrashi
Title: MAFIA II - melee weapons
Post by: Mike Bruski on January 18, 2012, 03:16:12 PM
Thank you for the nice reply's, and that is weird as it appears you have proof that it was all forged in the video's upon the use of the baton in the GDS 09, I would honestly love it if we could go farther than the dev's but I guess time will tell, I wish you the best Andrashi and thank you so, so, so much for your hard efforts. You keep making Mafia II's gameplay so much better.


 




I look forward to seeing another ROTH, your first ROTH mod is incredible, just the only problem is as I always say, the camera while walking is a pain, but I love the camera in cover.
Title: MAFIA II - melee weapons
Post by: Cole Phelps on January 18, 2012, 08:31:38 PM
I see big progress in implementing melee weapons into Mafia 2. Good work, guys.
Title: MAFIA II - melee weapons
Post by: eXistenZ34 on January 19, 2012, 04:08:17 PM
Andrashi


 




You have a backup of the Wiki (LUA commands) of  Mafia-Empire, I regret very much not to have copied.


 




I have it of "Mafiascene.com" (IMG format), but it is far less comprehensive and detailed.




http://www.multiupload.com/60BPLSGPL9 (http://www.multiupload.com/60BPLSGPL9)


 




Test melee weapons N̡̉2



 









<div></div>  




Problem, have to try resolve "SetDamageMultiplier"


 




and also when we started a fight, If you change weapon civilian panic and crouched.
Title: MAFIA II - melee weapons
Post by: Andrashi on January 19, 2012, 05:22:53 PM
MafiaEmpire wiki is a good touch, but we need something more complete. I am currently working on a list of HumanMessages enumerations as you requested, it should be done today or tomorrow.


 




SetDamageMultiplier does not work on player, because player character does not use melee archetype from civilian.xml in "tables.sds". Well to be correct it uses, but it takes only melee animset from it. Damage dealt by player character is set in human2config.xml in "ingame.sds". Blame 2K for this mess  :lol: .


 




Another issue you mention is simply something we will have to put up with. "Prazdne ruce" (empty hands) is the one and only weapon capable of entering a melee duel. Any other weapon breaks melee duel. I guess you are using "squeegee" item as a trigger to change faked melee weapon in hands. Well that will also break melee duel and currently I have no workaround up my sleeve. Will try some luck with HEXstuff, snooping in human_items.tbl file.


 




BTW we are yet to tackle another issue - what if we want melee weapons to be changed dynamically in a fight? On NPC side there are no problems, but player character has to be something diferent again and does not adjust animset immediately but has to go outside of close combat, switch animsets, enter close combat again. Now that will be something to solve...


 




Andrashi
Title: MAFIA II - melee weapons
Post by: Tommy Mafioso on January 20, 2012, 04:28:46 AM
For now a good way to change melee weapons is using keybinds with the injector.


 




example


 




F12


 







<pre class="ipsCode">bindKey ("I","game.game:GetActivePlayer():SetAnimStyle("melee","KnifeStyle")game.game:GetActivePlayer():ModelToHands(true,-1,22)")

bindKey ("J","game.game:GetActivePlayer():SetAnimStyle("melee","PolBatStyle")game.game:GetActivePlayer():ModelToHands(true,-1,28)")</pre>
Title: MAFIA II - melee weapons
Post by: zahar999 on January 22, 2012, 11:09:54 PM
Andrashi


 




???   ??? ??????  ??? ???  ???   ??? ?????




game.game:GetActivePlayer():SetMeleeArchetype()




Archetype:




Collector_Tutorial




BlackJuggernaut




BlackWorker




TriadsFighter




TriadsFighterRR




PepeTutorial1




PepeTutorial2




Agile




AgileRR




Brute




BruteRR




Reznik




Brian1




Brian2




Loser


 




?  ???   ???   ??? ?  ???   ??? ?????
Title: MAFIA II - melee weapons
Post by: Andrashi on January 23, 2012, 12:03:27 AM
???   ??? ???? ??  ??? ????????? ?  ??? ????  ??? ???, ? ?  ??? ?????  ??? ???????????  ??? ???????.




???   ??? ????  ??? ?????  ??? ????  ??? ???????????  ??? ???????  ???   ??? ?????????.




??? ???:




NPCentity = game.entitywrapper:GetEntityByGUID("Joe")




NPCentity:SetMeleeArchetype("Loser")


 




?  ??? ???????, Joe  ??? ???? ??  ??? ????.  ???   ??? ???,  ???   ???   ??? ????,  ??? ??? <img src="/wp-content/uploads/invision_emoticons/happy.png" alt="(//anime.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/happy@2x.png 2x" width="20" height="20">.
Title: MAFIA II - melee weapons
Post by: zahar999 on January 23, 2012, 04:31:47 PM
?  ??? ??  ??? ??  ??? ????  ???   ??? ???




game.game:GetActivePlayer():SetMeleeArchetype("BruteRR")




? Jimmy's Vendetta ?  ??? ????  ??? ???




???  Archetype  ??? ?????  ??? ????  ??? ??,????????  ??? ????




???   ??? ?
Title: MAFIA II - melee weapons
Post by: zzzzzz2 on January 26, 2012, 05:59:00 AM
please look at this website,there are something about the melee weapon  <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">




Here (http://www.game-archivist.com/empirebay/bts_melee-combat.php:1dbv8brq)
Title: MAFIA II - melee weapons
Post by: zahar999 on January 28, 2012, 03:45:58 AM
??? ??  ???   ??? ???  ???  ??  ??? ???  ???   ??? ????




....ModelToHands()




....SetAnimStyle()




??? ?????




??? ?  ??? ??  ??? ????  ??? ?? ?  ??? ?  ??? ????????  ??? ?????




?  ??? ????  ??? ?  ??? ??  ??? ??




??? ??  ??? ???  ??? ?????




???   ??? ???????


 









<div></div>
Title: MAFIA II - melee weapons
Post by: Andrashi on February 02, 2012, 03:05:43 PM
Hi fellow modders,


 




Long story short - watch this:


 




<div class="ipsSpoiler_header">








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

</div>

 




And here we go with some explanations:


 




<div class="ipsSpoiler_header">



 




Currently, we as a community use the command ModelToHands for the melee weapons emulation. It works well, but it is also very restricted, because it is nothing more than an eye candy. If we say "close combat weapon system", I dare to say we most definitely mean a whole mechanic: characters should be able to pick up and use weapons as well as there shoudl be a possiblitiy to force the weapon out of opponent's hand, pick it up and use it against him.


 




What you see in the video is what was predicted a few months ago - CrashObjects are the key. CrashObjects are entities which have physical interactions with the world (so they are not static, immobile obstacles) and, luckily for us, can be bound to human entity's hands. Examples of CrashObjects are thrash cans, lamp posts, mail boxes, fences and of course many cutscene items - for example Derek's fork and knife or the wine bottle used by Vito to hit Erik.


 




The code is moderately complex, using comparsion of position vectors to determine if the item can be picked up or not. NPCs have automatic pickup, player has to peform a taunt to trigger the pickup. There is no animation for picking the weapon and there probably won't be any, because so far any attempt to make player or the NPC duelist play some pickup animation causes break of the melee duel session.


 




There is also primitive A.I. routine, which check whether the item is free (not registered to the player or opponent). If item is free, "Fightguard" LUA command is utilized to make NPC duelist go to the weapon. It is not the best solution (as the character then tends to stay at the place and "guard" it) but it uses vector for setting up the location and it does not break melee duel.


 




And the most interesting is - why a thrashcan? Well, to test this mechanics I need GUID or the name of some CrashObject. And since we don't have enough knowledge to add a CrashObject to freeride's Actor file (so no name), I had to use some way to get at least some CrashObject's GUID. And the method is to take a car and register it for message CARCRASH_WITH. the message has the property "GetSecondEntityGuid()". So by crashing the car into some thrashcan, I was able to get its GUID.


 




</div>

 


 


 




This is in my opinion roughly 95% emulation of the original (beta) close combat weapon mechanics. I don't think we can take this matter any further.


 




Also, overall working with Mafia II LUA scripting is a pain and I mean it seriously. Almost every second command works either only for the player entity OR only for the human entity (usually it is for the opposite of what would modder want   <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">  ), unexpected glitches happen and behavior is sometimes quite fickle. This part of IllusionEngine clearly shows results of the post-Dec2009 rush, when it was decided the game has to be finished quickly, no matter what the "costs".
Title: MAFIA II - melee weapons
Post by: Mike Bruski on February 02, 2012, 08:09:41 PM
Homeless fight!  :lol:


 




That is a cool video, I heard and read many time's prior to release of Mafia II, that the environment could be used as a weapon, we were promised things like, smashing plates, and braking chairs, and using them on people.




Straight from the horses mouth, watch this video, Denby Grace AKA"Sort of"  <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"> , says we can use a chair or a plate to beat people up with...


 









<div></div>
Title: MAFIA II - melee weapons
Post by: Cole Phelps on February 02, 2012, 08:20:12 PM
That's very interesting what you posted, Andrashi. How did you do that ?
Title: MAFIA II - melee weapons
Post by: zahar999 on February 15, 2012, 05:46:58 PM
Andrashi


 




??? ?  ??? ??  ??? ???????  ??? ????  ???   ??? ????




?? ?  ??? ? 3  ??? ???  ??? ?????




???   ??? ???? ?  ???   ??? ???  ??? ??  ???   ??? ?????




??  ??? ???  ???   ??? ??  ???   ???   ??? ??????? ?  ??? ?  ??? ???  ???   ??? ???  ??? ?????




??? ? ??  ??? ???  ??? ?? ?  ??? ?????  ??? ?  ??? ????


 









<div></div>
Title: MAFIA II - melee weapons
Post by: Mike Bruski on February 15, 2012, 09:52:12 PM
Awesome vid, it shows that there really is alot that Vito can hold in his hands, and the flashlight was something I heard about for ages before release, and well nice to see it partially work in that vid.
Title: MAFIA II - melee weapons
Post by: Oldies But Goodies on May 01, 2012, 02:02:17 AM
My modification called extreme freeride mod 2 has ten melee weapons including a sword
Title: MAFIA II - melee weapons
Post by: crazypreacher on May 01, 2012, 02:30:01 AM
That mafia 2 not mafia 1
Title: MAFIA II - melee weapons
Post by: Oldies But Goodies on May 01, 2012, 10:25:16 PM
-CrAzY3AGL3


 




no but the person did give me the rights to the mod, and I changed several things on it. You still don't like me because i'm on this site, so could you just ignore me; if you do not have anything good to say then don't say anything at all.
Title: MAFIA II - melee weapons
Post by: Cole Phelps on May 01, 2012, 10:30:01 PM
And you say that you behave like an adult ? I don't think so.