Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
#120 January 22, 2012, 11:09:54 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Andrashi


 




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




game.game:GetActivePlayer():SetMeleeArchetype()




Archetype:




Collector_Tutorial




BlackJuggernaut




BlackWorker




TriadsFighter




TriadsFighterRR




PepeTutorial1




PepeTutorial2




Agile




AgileRR




Brute




BruteRR




Reznik




Brian1




Brian2




Loser


 




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

#121 January 23, 2012, 12:03:27 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
???   ??? ???? ??  ??? ????????? ?  ??? ????  ??? ???, ? ?  ??? ?????  ??? ???????????  ??? ???????.




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




??? ???:




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




NPCentity:SetMeleeArchetype("Loser")


 




?  ??? ???????, Joe  ??? ???? ??  ??? ????.  ???   ??? ???,  ???   ???   ??? ????,  ??? ??? <img src="/wp-content/uploads/invision_emoticons/happy.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/happy@2x.png 2x" width="20" height="20">.

#122 January 23, 2012, 04:31:47 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
?  ??? ??  ??? ??  ??? ????  ???   ??? ???




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




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




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




???   ??? ?

#123 January 26, 2012, 05:59:00 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
please look at this website,there are something about the melee weapon  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">




Here

#124 January 28, 2012, 03:45:58 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
??? ??  ???   ??? ???  ???  ??  ??? ???  ???   ??? ????




....ModelToHands()




....SetAnimStyle()




??? ?????




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




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




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




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


 









<div></div>

#125 February 02, 2012, 03:05:43 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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="" 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".

#126 February 02, 2012, 08:09:41 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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="" 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>

#127 February 02, 2012, 08:20:12 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
That's very interesting what you posted, Andrashi. How did you do that ?

#128 February 15, 2012, 05:46:58 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Andrashi


 




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




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




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




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




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


 









<div></div>

#129 February 15, 2012, 09:52:12 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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.

#130 May 01, 2012, 02:02:17 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
My modification called extreme freeride mod 2 has ten melee weapons including a sword

#131 May 01, 2012, 02:30:01 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
That mafia 2 not mafia 1

#132 May 01, 2012, 10:25:16 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
-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.

#133 May 01, 2012, 10:30:01 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
And you say that you behave like an adult ? I don't think so.