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.
January 03, 2012, 05:00:15 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Hey guys do you remember on mafia 1?Cuz im trying to make a few simple mods there just for fun and i have a problem.Ive already managed to make people follow you, make them piss,change characters but i wanna make a civil sitting on a chair and writing something.Dunno how to do it i can do anim for writing and put a table in front him but i have a problem with the chair, how can i make him fit in the chair correctly?or when someones smoking, i want to put a ciggarete into hes hand.How can i do that?please help,im stuck :dry:

#1 January 04, 2012, 04:12:18 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks Darren ive already made a progress in it thanks to you.Ive managed that the cigarrete and the guy acts as one object so they are both red when i click on the guy as you can see on the screen.but i think ive done something wrong with the coordinates or i dont know because when i play it the guy smokes with an empty hand and the ciggarete lies one metre from him where the hand used to be in the mafia editor.What do you think is wrong?




mafiascript.JPG[/attachment:3jiqzgun]

#2 January 05, 2012, 11:32:09 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Yo darren i may sound annoying :D  but it still doesnt work properly  <img src="/wp-content/uploads/invision_emoticons/sad.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/sad@2x.png 2x" width="20" height="20"> .Ive uploaded a screen of the properties as you wanted.i will also write down my steps while trying to do it maybe theres a mistake in it.




1.Ive made a model of a ciggarete in BScript View(FMVcigareta)and a model of frank(FrankHIGH).Than i saved it.




2.opened up Mafia world editor and putted frank on the ground than i saved it.Than i putted the cigarrete in hes hand and rewrited primary sector for "Fran.r_hand"(i called frank as "Fran") than one of the positions folder changed for "0.076271,-0.0198,0.02879"Ive copied those and closed mafia editor with out saving.




3.opened up DCED and wrote those coordinates down in order x,y,z in cigarette properties and than i saved it.




4.opened up BScript view and wrote this script-dim_act 5




dim_flt 5




dim_frm 5




findactor 0,"Tommy"




findactor 1,"Civilian 1"




findactor 3,"Cigarette"




human_linktohand 3,1,RIGHT,HAND




label 1




enemy_playanim "Kurakloop.i3d"




wait x




enemy_playanim "Kurakpotahnuti.i3d"




wait 2800




goto 1




maybe theres a mistake idk  <img src="/wp-content/uploads/invision_emoticons/sad.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/sad@2x.png 2x" width="20" height="20">




anyway here is the screen:




cigarettescreen.JPG[/attachment:2wugi6xc]

#3 January 05, 2012, 04:58:43 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
The only thing I can see wrong skimming through is that there is no need to put the sector as "Fran.R_Hand" because you have already defined it in the script ("human_linktohand").


 




Also, what is "wait x"?

#4 January 06, 2012, 12:47:42 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
You were right Darren  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20"> .It works for me now thanks to you :) Thank you for your time and good advices again dude.