Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Scene Modders => eXistenZ34's Mods => Topic started by: eXistenZ34 on June 28, 2012, 09:48:00 AM

Title: Script Car Entity
Post by: eXistenZ34 on June 28, 2012, 09:48:00 AM
[hr:3grwrbs6][/hr:3grwrbs6]




[align=center:3grwrbs6]Script Car Entity
[/align:3grwrbs6]




[hr:3grwrbs6][/hr:3grwrbs6]




[align=center:3grwrbs6]there are different possibility, depending on the command "StreamMapLine"
[/size]



 
[/size]





used and different inconvenience.
[/size]
[/align:3grwrbs6]




[hr:3grwrbs6][/hr:3grwrbs6]




1 Script.
[/size]





already present in FR M2
[/size]





[align=center:3grwrbs6](//applications/core/interface/imageproxy/imageproxy.php?img=http://i46.tinypic.com/x41zkh.jpg&key=b2b67bf9aa2c293c545f1180783c64b4c34a5fa879750f72e0bdfb9c861756e6)[/align:3grwrbs6]




just need to activate and position, no inconvenience.







Quotegame.entitywrapper:GetEntityByName("Hunter"):Activate()

game.entitywrapper:GetEntityByName("Hunter"):SetPos(Math:newVector(-1314.20, 1006.21,-18.63))




game.entitywrapper:GetEntityByName("Hunter"):SetDir(Math:newVector(-1,0,0))




game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Hunter"))








Quotegame.entitywrapper:GetEntityByName("Escaper"):Activate()

game.entitywrapper:GetEntityByName("Escaper"):SetPos(Math:newVector(-1314.20, 1006.21,-18.63))




game.entitywrapper:GetEntityByName("Escaper"):SetDir(Math:newVector(-1,0,0))




game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Escaper"))



 




[hr:3grwrbs6][/hr:3grwrbs6]




2 Script.
[/size]





For FR M2
[/size]





Realized with injector in 2 step, inconvenience after activation "StreamMapLine" bodyguard Joe & Henry disappears.


 




[align=center:3grwrbs6][youtube:3grwrbs6]




<div><iframe width="480" height="270" src="https://www.youtube.com/embed/videoseries?list=UU0tznMrReaDD45edPDS8R9Q" frameborder="0" allowfullscreen="true"></iframe></div>[/youtube:3grwrbs6][/align:3grwrbs6] 




[align=center:3grwrbs6]Download NEW Script and without error, here :
[/size]http://www.mediafire.com/?e7ps0zfqe4yz9ek
[/size] (http://www.mediafire.com/?e7ps0zfqe4yz9ek)[/align:3grwrbs6]
Title: Script Car Entity
Post by: zahar999 on July 02, 2012, 03:41:15 PM
eXistenZ34




This line




game.sds:ActivateStreamMapLine("rtr_cardealer_load")




is not needed


 




and you forgot to add the script




open doors for cars




game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName(car)):SetDoorFree()
Title: Script Car Entity
Post by: eXistenZ34 on July 02, 2012, 09:50:32 PM
yes zahar999, this is true, this script was a little old and there is even others errors.


 




(//i46.tinypic.com/sesncw.jpg&key=0ac15807c3ec70f90712d0dc34d670af41d4ee7d130f48034d01f805a7635afe)




[align=center:7bgc71qt]Edit : this is the site that is not writing what I write
[/size]
[/align:7bgc71qt]




(//i48.tinypic.com/14avn94.jpg&key=bae0b29d5a5dd4a32cf0cf27eeadcd774836254f5cc736b26a723c827e70d07e)




[hr:7bgc71qt][/hr:7bgc71qt]




the site does not take into account the hooks (in red
) because they are considered as Boardcode.




(//i49.tinypic.com/21lsrxy.jpg&key=bb5f122945fcf5b33fb2a2bbc8d3a6298b1ede3e6d33e29e2f8eeb289c3b5e2f)




[hr:7bgc71qt][/hr:7bgc71qt]




But the command for unlock doors, is not good <strong>*
</strong>.




game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName(car)):SetDoorFree()



 




*
 (I have already said you on playground.ru)



 




"SetDoorFree(
xx
,
yy
)
" is used only with:




game.game:GetActivePlayer():GetOwner()
:SetDoorFree(
xx
,
yy
)
 or game.entitywrapper:GetEntityByName("Car_Name_Entity")
:SetDoorFree(
xx
,
yy
)





xx = NÃâðdoor 0 or 1 or 2 or 3 ,  yy = true




(//i50.tinypic.com/2r3ec81.jpg&key=d29b94423a7691d7ff4a7358afc9f9c28bdab1aa0036db50c0e958f7816eb8ab)


 




"game.game:GetActivePlayer():GetOwner()
": applies to all cars in traffic without knowing their "Car_Name_entity", as a Vito (player) is in the car.




"game.entitywrapper:GetEntityByName("Car_Name_Entity")
": applies only to the "Car_Name_Entity" although Vito (player) is not in the car.


 


 




So this command should be added in the script
<strong>*
</strong> above, but written like that.





game.game:GetActivePlayer():MakeCarOwnership(game.entitywrapper:GetEntityByName("Car_Name_Entity"))


 




*
 (this avoids having to break the window to get into the car.)
Title: Script Car Entity
Post by: zahar999 on July 09, 2012, 02:00:31 PM
and another




together with many StreamMapLine for car




will loaded with enemies




for example




game.sds:ActivateStreamMapLine("rtr_car14_load")




game.entitywrapper:GetEntityByName("soldier1"):Activate()




game.entitywrapper:GetEntityByName("soldier2"):Activate()




game.entitywrapper:GetEntityByName("soldier3"):Activate()


 




http://www.youtube.com/watch?v=nL8cXAOMuqg (http://www.youtube.com/watch?v=nL8cXAOMuqg)
Title: Script Car Entity
Post by: eXistenZ34 on July 09, 2012, 03:40:22 PM
yes I know in "fr_cardealer"
Title: Script Car Entity
Post by: zahar999 on July 09, 2012, 07:51:13 PM
then so


 




Vito soldiers


 




http://www.youtube.com/watch?v=ZvKbZKSgp5Y (http://www.youtube.com/watch?v=ZvKbZKSgp5Y)
Title: Script Car Entity
Post by: DvT on July 11, 2012, 08:42:15 AM
Zahar, did I see that right? Have you managed to activate the car blinkers?
Title: Script Car Entity
Post by: Cole Phelps on July 11, 2012, 11:04:01 AM
QuoteZahar' date=' did I see that right? Have you managed to activate the car blinkers?[/quote'] 




No  <img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">  If you look closely, Vito is not driving the car and he is not activating the blinkers.


Title: Script Car Entity
Post by: zahar999 on July 11, 2012, 11:41:00 AM
DvT




something I do not understand the question car blinkers?


 




you can get any car




eXistenZ34 written your article




link to the script in the first message
Title: Script Car Entity
Post by: crazypreacher on July 11, 2012, 12:02:50 PM
flasher, i thinks he mean Direction Flasher   (left - right)
Title: Script Car Entity
Post by: eXistenZ34 on July 12, 2012, 02:47:30 PM
as rahaar
I don't understand "car blinkers?"


 




Keep in mind, that  zahaar is Russian and me i'm French and we use a translator to understand.


 




toujours lÃÆà crazy
, c'est bientÃÆôt le 14.  :lol:   <img src="/wp-content/uploads/invision_emoticons/tongue.png" alt="(//tongue.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/tongue@2x.png 2x" width="20" height="20"><img src="/wp-content/uploads/invision_emoticons/wink.png" alt="(//wink.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/wink@2x.png 2x" width="20" height="20">
Title: Script Car Entity
Post by: crazypreacher on July 12, 2012, 02:52:33 PM
oui, 2 jours!
Title: Script Car Entity
Post by: ocram on July 12, 2012, 04:51:49 PM
thx for tuto eXistenz


 




eXistenZ car blinker c'est clignotant, feu clignotant, feu de d̮̩tresse


 




Zahar car blinker  ??? ??????? :  ??? ???,  ??? ???,  ??? ?????????  ??? ?????