- This topic has 22 replies, 12 voices, and was last updated 11 years, 4 months ago by .
Mafia II : LUA command
:cheer: MERCI BEAUCOUP, je te dois une bi̮̬re (translate:thx in french)
Ne T’en fait pas, il y en a d’autre qui peuvent lire le franacais, on a meme une section francaise.
BIG Thx
” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x” width=”20″ height=”20″>
[align=center
ko6uwac]Mafia2 Running Memory Listing – Ocram – 15th of june 2012
hard to understand but full of informations here, have a nice scroll
Download: i’ve uploaded the file
HERE .
[/align
ko6uwac]
[align=center
ko6uwac]Just as an example, full listing on above link
…
MinMovementDistOutsideIdeal
MinMovementDistInsideIdeal
StoppingDist
StrafingVariationMaxSkill
StrafingIntervalMaxSkill
StrafingVariationMinSkill
StrafingIntervalMinSkill
CoverLeanRatio
CoverLookRatio
RamboActionRatio
TimeInFinalOpenSpace
TimeInOpenSpace
TimeInFinalCover
TimeInCover
LongRange
ShortRange
OnScriptControl
OnAIControl
(unnamed)
effect.m_PlayerDamageMaxSkill
effect.m_PlayerDamageMinSkill
effect.m_DamageMaxSkill
effect.m_DamageMinSkill
effect.m_StaminaCost
effect.m_RelativeProbabilityMaxHealth
effect.m_RelativeProbabilityMinHealth
effect.m_RelativeProbabilityMaxSkill
effect.m_RelativeProbabilityMinSkill
effect.m_MoveName
taunt.m_DeathTaunt
taunt.m_LosingTaunt
taunt.m_WinningTaunt
taunt.m_SupportedAITypes
taunt.m_SupportedWeapons
taunt.m_RelProbability
taunt.m_TauntName
KNIFE
CLUB
TWO_HANDED
w.m_MaxHealth
w.m_MinHealth
w.m_MinBlockLevel
w.m_MinAttackLevel
w.m_MinSkill
w.m_BrokenWeaponName
w.m_Breaks
w.m_CounterAttackDamageMultiplier
w.m_DamageMultiplier
w.m_WeaponID
w.m_Name
Shubert_Beverly
settings.m_MeleeCloseCombatSkill
settings.m_MeleeCounterBlockSkill
settings.m_MeleeAggressivity
settings.m_MeleeBlockLevel
settings.m_MeleeAttackLevel
settings.m_MeleeSkillLevel
levelIdx
Level
Difficulty
PCN
PCN
PCN
PCN
PCN
PCN
Move
move.m_IsSuccessfulBlock
move.m_Finisher
move.m_MaxHealthPercent
move.m_MinHealthPercent
move.m_MaxTime
move.m_DropWeaponProbabilityMaxSkill
move.m_DropWeaponProbabilityMinSkill
move.m_DropWeaponStunModes
move.m_RelativeProbabilityMaxHealth
move.m_RelativeProbabilityMinHealth
…
[/align
ko6uwac]
New
Script to find Coordinates and Direction for Injector
for using controls “SetPos” & “SetDir” a text file “coords.txt” is created in the folder “pc” of the game
information that I was asked by Deewarz
[align=center:2f22hrgz]NOCLIP SCRIPT
USE WITH Injector[/align:2f22hrgz]
Use ZQSDAE for move on the map.
Press => enable/disable
(Tested on Injector V6)
— NOCLIP SCRIPT by Deewarz
— Be sure to be on the ground when you turn off the script or the fall will be fatal!!
— Just move or click to fall on the ground.
Player = game.game:GetActivePlayer()
if noclip==nil then
noclip=1
DelayBuffer:Insert(function(l_1_0)
Player:ShowModel(false)
Player:SetDemigod(true)
Player:EnableInjury(false)
Player.invulnerability = true
bindKey (“Z”,”p = Player:GetPos() p.y = p.y + 2 Player:SetPos(p)”)
bindKey (“Q”,”p = Player:GetPos() p.x = p.x – 2 Player:SetPos(p)”)
bindKey (“S”,”p = Player:GetPos() p.y = p.y – 2 Player:SetPos(p)”)
bindKey (“D”,”p = Player:GetPos() p.x = p.x + 2 Player:SetPos(p)”)
bindKey (“A”,”p = Player:GetPos() p.z = p.z + 2 Player:SetPos(p)”)
bindKey (“E”,”p = Player:GetPos() p.z = p.z – 2 Player:SetPos(p)”)
end,{l_1_0},250,1,false)
else
noclip=nil
DelayBuffer:Insert(function(l_1_0)
Player:ShowModel(true)
Player:SetDemigod(false)
Player:EnableInjury(true)
Player.invulnerability = false
bindKey (“Z”,””)
bindKey (“Q”,””)
bindKey (“S”,””)
bindKey (“D”,””)
bindKey (“A”,””)
bindKey (“E”,””)
end,{l_1_0},250,1,false)
end
as a complement, the injector v7 as:
F3.lua – the lua script to Save the position (coordinate) to a txt file.
F9.lua – the lua script to Get to some coordinate for screen shot (no charactere, no hud)
F12.lua – the lua script to Move east-north-west-south up or down (as script above)
*all works on V6
after, for working, everyone makes a little as he feels.
For Me by Example
F1 = For exit —> infinite loading – more sounds – animation – more player – Camera
[spoiler:1rl5ova1]
game.hud:FaderFadeIn(250)
game.game:SoundFadeIn(250)
game.game:GetActivePlayer():ShowModel(true)
game.cameramanager:GetPlayerMainCamera(0):LockControl(false,false)
game.game:GetActivePlayer():SetControlStyle(enums.ControlStyle.FREE)
game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DYNAMIC)
[/spoiler:1rl5ova1]
F2 = return FR
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_joe_load”)
[/spoiler:1rl5ova1]
F3 = return summer
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_summer_load”)
[/spoiler:1rl5ova1]
F4 = return winter
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_winter_load”)
[/spoiler:1rl5ova1]
F5 = divers location
[spoiler:1rl5ova1]
–game.game:GetActivePlayer():SetPos(Math:newVector(-1308.5574951172, 986.83605957031,-17.589883804321)) — Home Villa Greenfield
–game.game:GetActivePlayer():SetPos(Math:newVector( 82.219184875488, 896.54577636719,-13.314183235168)) — Joe
–game.game:GetActivePlayer():SetPos(Math:newVector( 74.664436340332, 913.71484375152,-20.056598663331)) — Joe Garage
–game.game:GetActivePlayer():SetPos(Math:newVector(-649.90618896484, 935.14526367188,-7.9598007202148)) — Vito
–game.game:GetActivePlayer():SetPos(Math:newVector(-639.68249511719, 935.79895019531,-18.914690017712)) — Vito Garage
–game.game:GetActivePlayer():SetPos(Math:newVector( 373.02194213867,-294.42282104492,-15.584340095521)) — Marty
–game.game:GetActivePlayer():SetPos(Math:newVector( 368.13140869141,-281.82098388672,-20.132001876831)) — Marty Garage
–game.game:GetActivePlayer():SetPos(Math:newVector( 274.39508056641, 793.09167480469,-15.496784210205)) — Vito Mother
–game.game:GetActivePlayer():SetPos(Math:newVector(-37.072532653809, 1160.7387695313, 68.364852905273)) — Hillwood garage
–game.game:GetActivePlayer():SetPos(Math:newVector(-331.44158935547, 182.80078125011,-4.7026247978211)) — M2-Multi
–game.game:GetActivePlayer():SetPos(Math:newVector(-1151.9484863281, 1578.6281738281, 6.3188753128052)) — Hill of Tara
–game.game:GetActivePlayer():SetPos(Math:newVector(-46.899543762207, 727.36376953125,-21.990571975708)) — Freddy’s bar
–game.game:GetActivePlayer():SetPos(Math:newVector( 35.290706634521,-66.342155456543,-17.002140045166)) — The Maltese Falcon
game.game:GetActivePlayer():SetPos(Math:newVector( 26.652406692505,-81.648445129395,-16.194694519043)) — The Maltese Falcon Piano
–game.game:GetActivePlayer():SetPos(Math:newVector(-646.11315917969, 360.00296020508, 1.4180455207825)) — The MonaLisa
–game.game:GetActivePlayer():SetPos(Math:newVector(-1381.6616210938, 483.84646606445,-23.117313385011)) — The Lone Star
–game.game:GetActivePlayer():SetPos(Math:newVector( 1242.2125244141, 1271.7690429688, 0.4690062999725)) — Forge
–game.game:GetActivePlayer():SetPos(Math:newVector(-341.39440917969,-735.64990234375,-21.745681762695)) — Derek Port
–game.game:GetActivePlayer():SetPos(Math:newVector(-97.476295471191, 1740.5336914063,-19.234798431396)) — Bruski
–game.game:GetActivePlayer():SetPos(Math:newVector(-165.11447143555,-580.32147216797,-20.350566864014)) — Bruno’s Office
–game.game:GetActivePlayer():SetPos(Math:newVector(-433.02221679688, 795.92248535156,-20.102350234985)) — Office price
–game.game:GetActivePlayer():SetPos(Math:newVector(-433.25164794922, 781.14306640625,-19.939029693604)) — Office price In
–game.game:GetActivePlayer():SetPos(Math:newVector(-522.22491455078,-40.557701110841, 1.0247592926025)) — Jewellery
–game.game:GetActivePlayer():SetPos(Math:newVector( 353.57696533203, 374.77481079102,-19.579500198364)) — Restaurant
–game.game:GetActivePlayer():SetPos(Math:newVector( 381.95062255859, 122.01869964615,-20.211774826051)) — Sea Gift
–game.game:GetActivePlayer():SetPos(Math:newVector(-1542.0977783203,-85.776489257813,-18.244682312012)) — Distillery
–game.game:GetActivePlayer():SetPos(Math:newVector(-381.84838867188, 652.05084228516,-11.594194412231)) — Police
–game.game:GetActivePlayer():SetPos(Math:newVector( 4.0198488235474,-64.208900451661, 300.00000000000)) — Prison
–game.game:GetActivePlayer():SetPos(Math:newVector( 291.78070068359, 1215.8483886719, 63.251049041748))DelayBuffer:Insert(function(l_1_0)game.game:GetActivePlayer():SetPos(Math:newVector( 375.77612304688, 1279.7506103516, 66.089363098145))end,{l_11_0},500,1,false) — Observatoir Activation Map
–game.game:GetActivePlayer():SetPos(Math:newVector( 375.77612304688, 1279.7506103516, 66.089363098145)) — Observatoir
–game.game:GetActivePlayer():SetPos(Math:newVector(-193.45440673828, 824.43365478516,-20.801353454591)) — Carcyclopedia Ext
–game.game:GetActivePlayer():SetPos(Math:newVector(-292.03601074219, 835.83361816406, 9.8275241851807)) — Carcyclopedia In
–game.game:GetActivePlayer():SetPos(Math:newVector(-369.65689086914,-346.05963134766,-13.684614181519)) — Construction Site Bas
–game.game:GetActivePlayer():SetPos(Math:newVector(-449.41287231445,-340.48016357422, 27.940334320068)) — Construction Site Haut
–game.game:GetActivePlayer():SetPos(Math:newVector(-535.01568603516, 1150.0874023438, 31.865810394287))DelayBuffer:Insert(function(l_1_0)game.game:GetActivePlayer():SetPos(Math:newVector(-326.19720458984, 1067.2822265625, 44.848899841309))end,{l_1_0},2000,1,false) — Leo Galante Activation Map
–game.game:GetActivePlayer():SetPos(Math:newVector(-1654.6417236328, 1031.5666503906,-6.3348078727722)) — Mansion Portail
–game.game:GetActivePlayer():SetPos(Math:newVector(-2004.1757812512, 1094.5406494141, 22.615701675415)) — Mansion Villa
–game.game:GetActivePlayer():SetPos(Math:newVector(-596.41143798828,-333.71118164063,-9.4106159210205)) — Empire Arms Hotel
–game.game:GetActivePlayer():SetPos(Math:newVector(-576.66986083984,-313.95117187512, 73.231109619141)) — Empire Arms Hotel 18eme ̮̩tage
–game.game:GetActivePlayer():SetPos(Math:newVector(-582.42517089844,-244.39358520508, 100.40155029297)) — Empire Arms Hotel toit
–game.game:GetActivePlayer():SetPos(Math:newVector( 41.622173309326, 1779.7225341797,-17.866758346558)) — Clemente Ext
–game.game:GetActivePlayer():SetPos(Math:newVector( 41.927108764648, 1800.4672851563,-17.862766265869)) — Clemente In
–game.game:GetActivePlayer():SetPos(Math:newVector(-1542.8310546875,-212.41596984863,-20.335449218751)) — Tram Sand island
–game.game:GetActivePlayer():SetPos(Math:newVector(-498.46887207031,-1.8315485715866,-0.5352652072906)) — Tram West Side ss
–game.game:GetActivePlayer():SetPos(Math:newVector(-106.34381866455,-499.17507934571,-15.895045280457)) — Tram Southport
–game.game:GetActivePlayer():SetPos(Math:newVector( 259.36804199219, 388.70019531251,-21.755012512207)) — Tram Chinatown
–game.game:GetActivePlayer():SetPos(Math:newVector(-295.83929443359, 560.09655761719,-2.2736749649048)) — Tram Uptown
–game.game:GetActivePlayer():SetPos(Math:newVector(-532.10595703125, 1605.9051513672,-16.582725524902)) — Tram Dipton ss
–game.game:GetActivePlayer():SetPos(Math:newVector(-1140.8968505859, 1363.5609130859,-13.572398185731)) — Kingston
–game.game:GetActivePlayer():SetPos(Math:newVector(-497.02575683594, 543.06060791016, 0.8981568813324)) — Garage haut
–game.game:GetActivePlayer():SetPos(Math:newVector(-519.04034423828, 584.83081054688,-5.6971135139465)) — Garage bas
–game.game:GetActivePlayer():SetPos(Math:newVector( 702.44183349609, 1852.9270019531, 39.771457672119)) — Yatch Club
–game.game:GetActivePlayer():SetPos(Math:newVector( 682.15252685547,-54.542942047119,-20.303739547729)) — Printery
–game.game:GetActivePlayer():SetPos(Math:newVector(-779.16802978516, 526.83142089844,-20.263599395752)) — M-Hotel
–game.game:GetActivePlayer():SetPos(Math:newVector( 261.53601074219, 38.952281951904,-23.370782852173)) — Cathouse ext
–game.game:GetActivePlayer():SetPos(Math:newVector( 261.04589843751, 46.615829467773,-23.705286026001)) — Cathouse int 1
–game.game:GetActivePlayer():SetPos(Math:newVector( 317.72222900391, 53.417900085449,-27.470323562622)) — Cathouse int 2
–game.game:GetActivePlayer():SetPos(Math:newVector(-1543.8682861328,-341.10977172852,-20.335437774658)) — Supermarket
–game.game:GetActivePlayer():SetPos(Math:newVector( 754.80328369141, 293.98419189453,-12.213390350342)) — Bank Door
–game.game:GetActivePlayer():SetPos(Math:newVector( 694.81433105469, 865.16668701172,-11.992577552795)) — Bank Door Load
–game.game:GetActivePlayer():SetPos(Math:newVector( 691.84802246094, 867.99761962891,-11.992649078369)) — Gomin̮̩ JA
–game.game:GetActivePlayer():SetPos(Math:newVector( 1327.2593994141, 1276.2521972656,-0.3068978786468)) — Gomin̮̩ JA
–game.game:GetActivePlayer():SetPos(Math:newVector(-180.25326451213,-304.07998657227,-234.16999816895)) — Italie
[/spoiler:1rl5ova1]
F6 to F9 = For write script
F10 = Divers Save
[spoiler:1rl5ova1]
game.game:SaveGame(1) — FR M2
–game.game:SaveGame(2) — FR JV
–game.game:SaveGame(4) — FR BV
–game.game:SaveGame(6) — FR JA
[/spoiler:1rl5ova1]
F11 = Find coordinate
[spoiler:1rl5ova1]
function loginf(log_text)log_text=”.) “..log_text..”n”
f=assert(io.open(“coords.txt”, “a+”))
f:write(i,log_text)
io.close(f)
end
playerPos=game.game:GetActivePlayer():GetPos()
playerDir=game.game:GetActivePlayer():GetDir()
if i==nil then i=0 end
i=i+1
loginf(playerPos.x..”, “..playerPos.y..”, “..playerPos.z)
loginf(playerDir.x..”, “..playerDir.y..”, “..playerDir.z)
[/spoiler:1rl5ova1]
F12 = Teleportation (I,K,J,L,U,O) & 1ere clic Passe muraille / wall passes 2eme clic return to normal
[spoiler:1rl5ova1]
bindKey (“I”,”v = game.game:GetActivePlayer():GetPos() v.y = v.y + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“J”,”v = game.game:GetActivePlayer():GetPos() v.x = v.x – 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“K”,”v = game.game:GetActivePlayer():GetPos() v.y = v.y – 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“L”,”v = game.game:GetActivePlayer():GetPos() v.x = v.x + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“U”,”v = game.game:GetActivePlayer():GetPos() v.z = v.z + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“O”,”v = game.game:GetActivePlayer():GetPos() v.z = v.z – 2 game.game:GetActivePlayer():SetPos(v)”)
if PS==nil then PS=1 game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DISABLED)else PS=nil game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DYNAMIC)end
[/spoiler:1rl5ova1]
Hello eXistenZ. I want to change Joe’s cloth with Injector. Can you write me LUA script please?
Hi mafian565,
Here is a script & hchar Model Modified for all skin types for Joe (21).
how it works :
– in the example press F8
(you can change F1 to F12)
after press
– P
for Next model
– M
for Previous model
– and for some model 0
for change Color (Not 0
of numpad 0
with ÃÂ @
)
Hi mafian565,
Here is a script & hchar Model Modified for all skin types for Joe (21).
how it works :
– in the example press F8
(you can change F1 to F12)after press
– P
for Next model– M
for Previous model– and for some model 0
for change Color (Not 0
of numpad 0
with ÃÂ @
)
http://www.mediafire.com/?xdtk0chld94tku6
Thank you, It is very useful.
eXistenZ, can you write full change player script?
Hello, i dont have mafia 2 installed right now but i want to ask, is there a greaser skin in this modification? If there isnt could you add them(there are multiple) and other skins too.
I really like greaser style and good old rock n roll
Sincerely hahalala
EDIT: I am sorry, i didnt read the post. If you are willing to make full skin change mod, could you still had my requested skins.
OK, I found answer in another topic. Don’t bother you now.
- You must be logged in to reply to this topic.

ause( ? )