Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia Mod Request => Topic started by: kaabannkuru on June 09, 2012, 02:39:42 PM

Title: I want to get drunk much longer!!!
Post by: kaabannkuru on June 09, 2012, 02:39:42 PM
Sorry for silly request, and sorry for my broken English.




But I want to make the time longer that while get drunk.




Or if the state while get drunk could turn on and off, it will be the best.




Can anybody help me?
Title: I want to get drunk much longer!!!
Post by: H.T.Simple on June 09, 2012, 04:00:42 PM
You mean drunk time when went from bar?


 







<pre class="ipsCode">game.hud:EffectAlcoholDrunk(100)</pre>






 




And effect that displays when you are drinking


 







<pre class="ipsCode">game.hud:EffectAlcoholHit()</pre>
Title: I want to get drunk much longer!!!
Post by: kaabannkuru on June 09, 2012, 05:28:41 PM
That's it!! It works!!




Really thank you for your kindness and knowledge!!
Title: I want to get drunk much longer!!!
Post by: eXistenZ34 on June 09, 2012, 06:11:32 PM
this command is here


 




http] (//forum/22-existenz34-s-mods/6490-mafia-ii-lua-command)
Title: I want to get drunk much longer!!!
Post by: kaabannkuru on June 09, 2012, 06:22:34 PM
Thank you eXistenZ34, for your work and help!




I will study by using this
Title: I want to get drunk much longer!!!
Post by: eXistenZ34 on June 09, 2012, 06:42:54 PM
You can also use this style of walking







Quotegame.game:GetActivePlayer():SetAnimStyle("common","DrunkHomeless")

 




and to return to the normal







Quotegame.game:GetActivePlayer():SetAnimStyle("common","default")
Title: I want to get drunk much longer!!!
Post by: jaca37 on June 09, 2012, 08:29:45 PM
ExistenZ




Could you write some more animation types? Like walking wounded and other? I can't find a list of them.
Title: I want to get drunk much longer!!!
Post by: zahar999 on June 09, 2012, 11:14:28 PM
jaca37




All these styles are in "ingame"




can be used with an injector


 




p=game.game:GetActivePlayer()




DelayBuffer:Insert(function(l_1_0)return p:SetAnimStyle("common","????")end,{l_1_0},100,1,false)




????


 




<div class="ipsSpoiler_header">



 




default




Injury




ManColdWeapon




Camelot




ManReadingNewspaper




CarryBox




WalkTorchCivil




PrisonerWalkHandcuffs




WalkNoggingRightHand




AngeloRifle




GalanteSneaking




ManHandsFolded




FatMan




ManNewspaperSubaxillary




ManHandsInPockets




ManOneHandInPocket




ManSlowWalk




Homeless




OldMan




ManQuickWalk




ManBigSuitcase




WomanHeel




WomanHeelQuick




WomanHeelSlow




WomanHeelHandbag




OldWoman




WalkWithShovel




PrisonerBallSubaxillary




PrisonerDribling




PrisonerClothCrotch




ManUmbrellaOpen




ManUmbrellaClosed




ManBigBag




ManWalkHotdog




WalkCoughCanal




WomanUmbrellaOpen




WomanUmbrellaClosed




HomelessHotdog




VitoCleaningWindow




GuardBatonLaxQuick




GuardBatonKnockQuick




GuardBatonKnockSlow




GuardBatonBack




GuardBatonLaxSlow




PrisonerWalkHandDown




PrisonerFoppishWalk




PrisonerHandsFolded




PrisonerHandsAkimbo




WalkTorchNormal




ManWashingPowder




ManNoggin




ManBag




ManBagAndNoggin




WomanNoggin




ManPushCartCloths




ManPullClothsRack




DrunkHomeless




Drunk




WalkInSewer




ManHandsUp




WomanHandsUp




GangsterShopping




Hasis




PrisonerWalkHandcuffs2




WalkNPCEmptyNoggin




WalkNPCFullNoggin




JoeThrashed




WorkerBag




RelaxGangsterCigarette




SlowWalkGangster




SlowWalkPrisoner




ButcherWithHam




WalkTalking




GuardSlowWalkA




GuardSlowWalkB




HenrySneakA




HenrySneakB




ManWinterCrossHands




ManWinterHandsDown




ManWinterHoldingCoat




ManWinterHandsPockets




WomanWinterHandsJoined




WomanWinterCrossHands




WomanWinterHandCollar




WomanWinterHandbag




GuardWalkQuick


 




</div>

 
Title: I want to get drunk much longer!!!
Post by: kaabannkuru on June 10, 2012, 03:38:14 AM
eXistenZ34, so much appreciation for you




and excuse me, I have one more question.




these 2 types of lua command can be combined into 1 F* key?




like the on or off switch.




I have to separate these lua command using 2 F* key?




like F1 is activate and F2 is disable.
Title: I want to get drunk much longer!!!
Post by: jaca37 on June 10, 2012, 06:30:49 AM
Use this one for single F-key:


 







Quoteif i==nil then i=1

game.game:GetActivePlayer():SetAnimStyle("common","DrunkHomeless")




else




i=nil




game.game:GetActivePlayer():SetAnimStyle("common","default") end


Title: I want to get drunk much longer!!!
Post by: kaabannkuru on June 10, 2012, 10:57:13 AM
Thank you jaca37!




This is very useful script!




Im going to learn little by little.