Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Tommy Mafioso

16
Mafia Mod Request / MAFIA II - melee weapons
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>
17
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 06:38:37 PM
No problem man.


 




I'm not as good as you when it comes to figuring out this LUA stuff but i try to help when i know something.
18
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 06:20:57 PM
QuoteWhy other anims are hang for 5-10 seconds' date=' when I play them?[/quote']

The DelayBuffer does not effect the duration of the animation.


 




It is used to tell the next animation when to start.


 




You only need to use it with multiple animations.


19
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 05:17:39 PM
The numbers indicate the delay length between animations.


 




For example this animation is 18 seconds long


 







<pre class="ipsCode">DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_b", false)end,{l_1_0},18000,1,false</pre>






 




After 22 seconds the next animation will play.


 







<pre class="ipsCode">DelayBuffer:Insert(function(l_1_0)ply:AnimPlay("sc_man_smoke_stat_c", false)end,{l_1_0},22000,1,false)</pre>






 




That animation is 22 seconds long.
20
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 02:18:52 AM
What about PNG drive to a coordinate?


 




This is an amazing find man.


 




Great job.
21
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 02:00:33 AM
Very nice find.


 




Does this also work with human entities?
22
eXistenZ34's Mods / Animation for human entity
December 17, 2011, 01:42:28 AM
Great job existenz
23
Yes it is possible to enter Maxwells.


 




Not only can we enter Maxwells we can also spawn bodyguards and enemies.


 









<div></div>

 




Here's another example, the Cathouse. Unfortunately we don't yet understand how to spawn NPC shop entities for the Cathouse but we can spawn enemies.


 







 




We can do this for pretty much any place on the map that is solid. The biggest problem that is holding us back is what existenZ noted earlier. There is a file size limitation and in order to spawn all these entities we have to cut things out like public transportation for example. In my script i haven't cut anything but the weather menus. You simply change weather by saving. That said i am maxed out right now and i only have around 37 enemy entities spawning. I wanted to spawn at least 10 enemies in every place we can enter but that is unfortunately not possible with this file size limitation.
24
You're not asking dumb questions Mike.


 




Anyways existenz is right we are limited by file size restrictions.


 




2K really made this game a pain to mod.
25
Many thanks existenz.Ãâà  


 




Mike, what is shown in that video is possible the problem is you will have to wait a while for a bus to come by.
26
Hey exsistenz maybe you can help me with this.


 




I want to set a checkpoint on the map which triggers when the player passes it in a vehicle.


 




Like Costa had in his script after you drive away from the Mansion.


 




Any idea how to do that?
27
Yea man i am having some issues with my script to.


 




Can't get the damn police to spawn with the StreamMap i am using.


 




We need to find a way to spawn entities without switching StreamMaps.


 




I found this list of commands from s0beit on pastebin but i am not a LUA expert.


 




http://pastebin.com/05XejrCT
28
I might be worng on this because i still haven't downloaded 2.0. so existenz please correct me.


 




It's not the bodyguard that is causing the issue, its the StreamMap he is using.


 




In that StreamMap the shops are probably disabled.
29
Good job existenz.  <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">


 




I wasn't even aware 2K removed the printery and Hotel.


 




My game version is still 1.0.0.1
30
Car customization can be added.As far as the "black out", windows shifting and the sky being messed up that is all due to the method we are using to spawn entities. At the moment the only way we have to spawn entities is by switching StreamMaps. When you go to Diamond Motors in order to load the interior we have to use the carcyclopedia StreamMap but then in order to spawn the vehicle you purchase we have to switch to another streamMap. Unfortunately this disables some assets from the Diamond Motors interior. The the only way around it so you don't see the switch is to utilize a fade in/out after purchase and immediately spawn you outside the dealership.Switching SteamMaps is really not a solution, it will somewhat work for a mission based script but not for a seamless free ride.