Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mafia II - Taxi Ride
#21
ocram" post=7583":gpmkoent Wrote:@Cole, yes that's what I was showing, when you ask them to drive nervously, they keep bumping things and do uturns because they miss their way.

Is it possible to ask him to drive normally ?
#22
ocram
with navigation, I also experienced the problem
and so it is not decided
After posing on the map can not be removed
#23
@cole, yes they can drive perfectly, same as ai ingame , and they do get perfectly to their destination that way.
But I was testing, as I have got several choices, which one to use when once in the car we ask the driver to Step on it!
The one in the video is the worst one Wink there is 12 different possibilities, 4 speed within 3 different driving type.
Code:
NORMAL AGGRESSIVE PIRATE the latest one they do not stop a red lights and else


@zahar, are you talking about the User Marker , with the green line ? by the one that cannot be removed.
if so I am interested to know its name and how to use it.
#24
ocram
No I mean the standard navigation
game.navigation:RegisterIconPos
that after installing it on the map
I can not remove it
it does not work
game.navigation:UnregisterIconPos
but I think the movement is not necessary
it's just an assistant for the map
only need to move the position vector of the direction
#25
ok,well that green line marker must be somewhere ...regarding the icons yes they are just a drawing for the map, they are not necessary at all. I did not try yet but using objective also makes an icon onto the map, and this one do go away.
It must works as well with registered icon pos I have seen it in the game somewhere, but we have to do it properly. once again another thing to find out Smile
in the mean time, the registered icons can be hidden until we get near its position:

Code:
game.navigation:RegisterIconPos("-126.2","264.5",1,4,"Nbrid",true)
game.navigation:UnregisterIconPos(game.navigation:RegisterIconPos("-126.2","264.5",1,4,"Nbrid",true))
game.navigation:DisableFarVisibility(game.navigation:RegisterIconPos("-126.2","264.5",1,4,"Nbrid",true))
#26
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(""))
#27
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
Code:
game
    entitywrapper
    GetEntityByName
    GetPos
    iconId
    navigation
    RegisterIconPos
    0058000027
    ...
    ...
     iconId
     game
     navigation
     UnregisterIconPos


Code:
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
#28
ocram" post=7624":3en91fny Wrote:
Code:
game
    entitywrapper
    GetEntityByName
    GetPos
    iconId
    navigation
    RegisterIconPos
    0058000027
    ...
    ...
     iconId
     game
     navigation
     UnregisterIconPos


Code:
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
http://www.youtube.com/watch?v=2B_tvv_ldSE
#29
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
#30
Tu as réussi a utiliser les coordonnées du repère sur la carte.


At all
When you find how to use a new command LUA that is not in my list.
thank you for leaving the info here

http://mafiascene.net/forum/22-existenz ... ua-command
#31
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 Tongue
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 planché 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.
#32
wow, glad you are working on this, i look forward to the possiblity of it working thanks for sharing this and making the effort.
#33
Sans vouloir te vexer ocram tu en est au meme point que Yoshid et son Taxi Mod de Janvier 2011.

[Image: kah2x2.jpg]

et J'ai aussi réalisé un script le 30-01-2011 pour test.
Joe au volant et en utilisant E-Key follow il changez de destination.

http://www.mediafire.com/download.php?s8blsehuhwph1s8
#34
absolutley YES! this would be very cool!
#35
Where do i copy this file?: :dry:
www.mediafire.com/download.php?s8blsehuhwph1s8
#36
@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
#37
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
#38
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
#39
what's the progress with the mod ? Smile
#40
ocram" post=10488":jykwj8wf Wrote: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?


Forum Jump:


Users browsing this thread: 1 Guest(s)