0
ocram

Mafia II - Taxi Ride

Recommended Posts

ocram

This command automatically gives a map

a red icon and the red line path

game.navigation:RegisterObjectivePos("-45.4","724.9",game.quests:NewQuest("","",true,"",""):AddObjective(""))

Share this post


Link to post
Share on other sites

Zahar, I did it once in my test, but forgot which test it was.

so now I have got it back, Thank you.

 

Thanx

I did not test it yet, but ingame each time they give an ID (iconid) before unload, maybe it works

 

    
   game 
   entitywrapper 
   GetEntityByName 
   GetPos 
   iconId 
   navigation 
   RegisterIconPos 
   0058000027 
   ...
   ...
    iconId
    game
    navigation
    UnregisterIconPos 

 

     
    quest
    quests
    FindQuestByName
    main
    boss1
    objective
    AddObjective
    2151900001
    SetName
    OBJECTIVE_R2R_CH10
    Show
ikona_init_start
 navigation
   RegisterIconPos
     SetTargetForGPS

    .
    .
    .

game
  navigation
    UnregisterId
        ikona_init_start

 

Share this post


Link to post
Share on other sites

 

    
   game 
   entitywrapper 
   GetEntityByName 
   GetPos 
   iconId 
   navigation 
   RegisterIconPos 
   0058000027 
   ...
   ...
    iconId
    game
    navigation
    UnregisterIconPos 

 

     
    quest
    quests
    FindQuestByName
    main
    boss1
    objective
    AddObjective
    2151900001
    SetName
    OBJECTIVE_R2R_CH10
    Show
ikona_init_start
 navigation
   RegisterIconPos
     SetTargetForGPS

    .
    .
    .

game
  navigation
    UnregisterId
        ikona_init_start

not with these teams, I do not know

 

but ("boss1") - is the man

and for him so I wrote navigation

game.navigation:RegisterObjectiveEntity("boss1",game.quests:NewQuest("","",true,"",""):AddObjective(""))

red line will indicate the path to it on the radar

 

 

Share this post


Link to post
Share on other sites

Thanx Zahar999, and sorry for the delay, I had a break a few days

 

I do have the navigation red line, as well, but with SetTargetForGPS.

and it is the same problem as the registered icons, I cannot remove it from the Gps once used. .. yet

Share this post


Link to post
Share on other sites

French translation of last few posts:

 

@ExistenZ34

 

Non malheureusement, on parlait juste du fait que les icons mis sur la carte avec RegisterIconPos , on arrive pas a les enlever. et zahar me pointait qu'avec Quests, il y a la ligne rouge, moi je l'ai avec SetTargetForGPS.

mais m̮̻me probl̮̬me pour l'enlever.

je cherche effectivement le UserMarker celui qui fait la ligne verte, et promis j'update t'as page en cas de nouveau stuff, mais tu en sais beaucoup plus que moi :P

je rame beaucoup pour la syntax, alors j'essaie d'ecrire de toute les fa̮̤ons possible jusqu'a ce que ̮̤a marche.

Tout ce que j'ai pour le moment c'est un chauffeur qui me conduit ou je veux de la fa̮̤on de conduire voulus.

pour le moment je monte simplement dans le taxi comme dans n'importe quel voiture,j'injecte mon script F8, le script change al̮̩atoirement la fa̮̤on de conduire du taxi pour avoir diff̮̩rent style de chauffeur,et j'envoie le chauffeur a la gare, ma maison ou ailleurs avec des coordonn̮̩e 'keybind' a des touches, ou lui demande de mettre le pied au plancḫ̩ et d'ignorer les feu rouge moyennent un extra. voila c'est tout.

C'est pour ̮̤a effectivement que je cherchais la ligne verte; l'utilisation du t̮̩l̮̩phone ; faire parler ; et comment d̮̩tecter un type de voiture (ou objet) lorsqu'elle passe devant nous dans le but de l' arr̮̻ter avec le bras.

 

Share this post


Link to post
Share on other sites

wow, glad you are working on this, i look forward to the possiblity of it working thanks for sharing this and making the effort.

Share this post


Link to post
Share on other sites

@eXistenz

Well I hope I am a little further than this.. but thanks

I need some time to get that phone working, and detect a car in front of you by its type, and by the way any idear how we can set the brain for an entity ?

 

eXistenZ:Sans vouloir te vexer ocram tu en est au meme point que Yoshid et son Taxi Mod de Janvier 2011.

non au contraire , moi j'en suis arriv̮̩ la 3 semaines apr̮̬s avoir achet̮̩ le jeu, lol, mais bon j'y connait pas grand chose je fais ce que je peut, je me rapproche de la ligne verte ̮̤a m'intrigue

 

@director

this is some old test file, as vito free ride

Share this post


Link to post
Share on other sites

I opened the "basic_anim2" with SDS explorer, and I found this script:

 

 

ply=game.game:GetActivePlayer()

DelayBuffer:Insert(function(l_1_0)

CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,

function(l_2_0)return ply:AnimPlay("TAXI_CALL-A", false)end,

function(l_3_0)return ply:AnimPlay("TAXI_CALL-B", false)end,

function(l_4_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})

end,{l_1_0},500,1,false)

Animation of stopping the taxi

 

Share this post


Link to post
Share on other sites

Hellofarhad_999

Yes, the Taxi was supposed to be included into the game. but it has been disabled...

anyway somme left-over animations and text files are still around.

TAXI_CALL-A and TAXI_CALL-B one lift the arm forward to make a sign to a cab, the other one just bend the shoulder , those two animation are supposed to be played simultaneously.So vito put the shoulder to the right and lift the arm.

 

Look at 3:00' http://www.dailymotion.com/video/xqr8f7_mafia2-2012-05-10-taxi-driver-nervous-driving-ability-test_videogames#rel-page-under-2

Share this post


Link to post
Share on other sites
yes, the Taxi was supposed to be included into the game. but it has been disabled...

anyway somme leftover animation and text files are still around.

TAXI_CALL-A and TAXI_CALL-B one lift the arm forward to make a sign to a cab, the other one just bend the shoulder , those two animation are supposed to be played simultaneously.So vito put the shoulder to the right and lift the arm.

Thanks for the detailed information.Hence, we can make a taxi mod... For example: Vito calls the taxi, sit down and points the way (with injector). What do you think about it?

Share this post


Link to post
Share on other sites

Or, We will be a taxi driver, and will deliver passengers. Is there a script that allows you to make the passerby to sit in a taxi?

Share this post


Link to post
Share on other sites

kaminski,farhad_999

 

For Now I am working on trying to get working the click on map, to set the destination of the Taxi.

(The green line you see in game).

 

The Cab is for now working perfectly,I climb into any cab that pass in the street, and send him where I want (with for now pre-recorded destinations using bindkeys).

My script shuffle a bit the way the drivers behave (ways of driving) so it changes one from another.

and on the way I can ask the driver to go slower or to put the pedal to the floor for a few extra bucks.

 

If I work onto the green line it is because in Fr compare to the Injector there is no Bindkey command,

so as I said on the first posts of this topic, I had the choice to make a menu, where you can chose your destination, or to get that green line working...

(the use of the phone to call a cab is to find out as well)

 

If it takes to long I'll release a menu version of it for a start.

Ican make a video of a cab ride if you want, but well just a car driving hey ;)

 

Ps: and yes try to be THE driver of the cab for work is one of my goal, but well mafia2 is not that easy to mod as mafia1..

Share this post


Link to post
Share on other sites
kaminski' date='farhad_999[/b']

 

For Now I am working on trying to get working the click on map, to set the destination of the Taxi.

(The green line you see in game).

 

The Cab is for now working perfectly,I climb into any cab that pass in the street, and send him where I want (with for now pre-recorded destinations using bindkeys).

My script shuffle a bit the way the drivers behave (ways of driving) so it changes one from another.

and on the way I can ask the driver to go slower or to put the pedal to the floor for a few extra bucks.

 

If I work onto the green line it is because in Fr compare to the Injector there is no Bindkey command,

so as I said on the first posts of this topic, I had the choice to make a menu, where you can chose your destination, or to get that green line working...

(the use of the phone to call a cab is to find out as well)

 

If it takes to long I'll release a menu version of it for a start.

Ican make a video of a cab ride if you want, but well just a car driving hey ;)

 

Ps: and yes try to be THE driver of the cab for work is one of my goal, but well mafia2 is not that easy to mod as mafia1..

Okay, we wait for this mod. If you need help with scripts, I am ready to help you :) Good luck ;)

Share this post


Link to post
Share on other sites

Hey how's the mod progressing ? Are you still working on it? Really interested in knowing more about this, keep up the good work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0