Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Free Ride for DLC Joe's Adventures v2.0
#61
i have already and more of pastebin.  Wink
#62
Hey exsistenz maybe you can help me with this.

I want to set a checkpoint on the map which triggers when the player passes it in a vehicle.

Like Costa had in his script after you drive away from the Mansion.

Any idea how to do that?
#63
it's fonction math.abs but in car it all depends on the speed - walk is still Ok
and it poses a problem for mansion.

Here are different test and for verify it removes the hat of Vito.
for i=1,1 do -- entre 4<>1 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])>1 and testw[i]==0 then testw[i]=1 end
end
for i=1,1 do -- de infini a >1  plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])>1 and testw[i]==0 then testw[i]=1 game.game:GetActivePlayer():ShowHat(false)end
end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for i=1,1 do -- Couloir de 1 et de 4 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])>1 and testw[i]==0 then testw[i]=1 end
end
for i=1,1 do -- Bizzare comme un couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])>1 and testw[i]==0 then testw[i]=1 game.game:GetActivePlayer():ShowHat(false)end
end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for i=1,1 do -- de infini a >4 et de 1< a 0 plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<1 and testw[i]==0 then testw[i]=1 end
end
for i=1,1 do -- de 0 a >1  plus de chapeau
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>4 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<1 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<1 and testw[i]==0 then testw[i]=1 game.game:GetActivePlayer():ShowHat(false)end
end
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for i=1,1 do -- Couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 game.game:GetActivePlayer():ShowHat(false)end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<1 and testw[i]==0 then testw[i]=1 end
end
for i=1,1 do -- Couloir
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])>4 and math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<4 and testw[i]==1 then testw[i]=0 end
if math.abs(game.game:GetActivePlayer():GetPos().x-testx[i])<1 or math.abs(game.game:GetActivePlayer():GetPos().y-testy[i])<1 and testw[i]==0 then testw[i]=1 game.game:GetActivePlayer():ShowHat(false)end
end

Costa used a value of 100 and 450 and not like me 1 and 4
#64
Checkout these video's, if you can eXistenZ34, it would be an awesome idea to implement what these video's have in your next FR.  ;D

Mafia2 2011-09-07 03-29-39-97.wmv Mafia2 2011-09-09 16-00-26-90.wmv
#65
Video of MrSergey1940 but MrSergey1940=zahar999 on http://www.playground.ru/files/47468/

LOOK
eXistenZ34
01.09.11 16:42 zahar999
? ?? ??? ?????, ?? ??? ?? : ENABLESHOOTPROMCAR

in English : Enable Shoot From Car : ??? ????? ??? ????? ?? ??? ???????

Find on MafiaScene.com :
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I spend a few hours searching for this ....but finally I found everything you need to shoot out of car.

First you need a...driver
then you need to run this in the injector or change it in the costa free ride

if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end

and if you need a weapon

game.game:GetActivePlayer():InventoryAddWeapon(12,250)


Thats all...unfortunately the first thing is hard to get...but in multiplayer mode this will be easy and fun.
Some things you need to know: Doesn't work in a car without a roof or in a truck (because of the lack of animations)
img814.imageshack.us/img814/1857/shootcar1.jpg
img64.imageshack.us/img64/6172/1223bf.jpg
#66
Oh, nice. Smile is it possible to shoot from the car without using LUA injectors?

Also about the bus, is that possible, or is it a fake vid?

Btw, If I have offended you at all by posting the vids above, I sincerely apologize, I did not mean to upset anyone.
#67
Many thanks existenz.  8)

Mike, what is shown in that video is possible the problem is you will have to wait a while for a bus to come by.
#68
Oh? :o I had no-clue, stupid me.  :-[

As always though I will say, thank you guys so much for everything you do, it means alot to all Mafia fans.
#69
bus is not manageable
too near the driver, he stopped the bus
too far back you died
Always follow the movement of bus
you can stay one hour at a bus stop without seeing a bus : and I tested

You must use the bus to the prison, civilian bus have no interior. it's simple just rename "parry_prison.sds" to "parry_bus.sds".
#70
Shoot From Car is possible
he must disable the police, for get into a police car and have a chauffeur
ai.police:IgnorePerson(game.game:GetActivePlayer():GetGuid(), true)
ai.police:ClearKnownCars(game.game:GetActivePlayer():GetGuid(), true)
ai.policeBig GrineactivateOffence(game.game:GetActivePlayer():GetGuid(), true)
but must disable the police, just when you get into the police car. it's pretty easy to manage.

and in my script change
if game.game:GetActivePlayer():GetControlStyleStr()~="CS_NORMAL" then game.game:GetActivePlayer():SetControlStyleStr("CS_NORMAL")end
by
if game.game:GetActivePlayer():GetControlStyleStr()~="CS_ENABLESHOOTFROMCAR" then game.game:GetActivePlayer():SetControlStyleStr("CS_ENABLESHOOTFROMCAR")end
#71
Oh, yeah I was just sat at a bus stop for this time, saw no bus! LOL. I will replace with the Police bus.

Is it possible to enable shooting from car in your next FR? If possible, maybe make it where you can sit as passenger in any car around, and you shoot from the car. Kinda like the original Mafia.
#72
you need a driver for to be a passenger.
the Civil run off when you get in their car.
Only the police still in their cars.

with our current knowledge it is not very interesting.
#73
especially since it is one thing that you did not know

it's the limit of file size "freeraid_main" >Sad

I'll break the atmosphere

"freeraid_main.sds" > 20Ko = game crash --------- 18Ko < FR M2 v3.0 <19Ko ---- without the addition of the enemy
"dlc_freeraid_main.sds" > 15Ko = game crash ----- FR JA v2.0 = 12.7Ko


Merci 2K Game  >Sad
#74
Oh, sorry for asking apparently dumb questions and or requests.  :-[

Thanks eXistenZ34 as always for everything.
#75
You're not asking dumb questions Mike.

Anyways existenz is right we are limited by file size restrictions.

2K really made this game a pain to mod.
#76
Tommy Mafioso:3omrcie6 Wrote:2K really made this game a pain to mod.

I'm sure that was very deliberate
For site support visit - Site Help
For mod support visit - Modders Corner
Submit Mod News visit - Submit Mod News
#77
Oh, okay thanks Tommy. Smile

But yeah shame that the game is so hard to modify, I saw on the Zmod forums that modding is so hard on Mafia II, that they can't import cars into Mafia II, because the cars are so advanced with bone strcutures, Zmod has to build a whole new function system just for Mafia II.

I will ask this though, is it possible to add all the awesome features you added FR JA to the regular storyline? What I mean is the Trams & Buses, I would love it if in the main-story you can take the bus or the trams instead of stealing a car, wich I hated, I was really upset when I first played Mafia II and sometimes the level would leave me with no car, and I really wanted to take public transport back, but instead I had to steal a damn car, wich is the last thing I wanted to do.
#78
Btw, concerning Cathouse, in the JA DLC storyline you walk around in the Cathouse with it packed of people, music, and bar tenders and waitresses and even customers, is it possible to have that in the FR? I know that the Cathouse is in the FR but it is so dead. I would love to see the cathouse like how it is in the storyline of the DLC. Also is it possible to enter the Maxwell's Grocers? the Mr Sergey guy actually made a vid of him/her entering the Maxwell's Grocer in FR. Of course no pressure or anything like that, but if those things I listed are possible to put into the next FR, that would be sick.
#79
I have not tried the entity of Cathouse, and even if I find I don't know how to use the animation.

almost all controls are in this file http://www.multiupload.com/A9C08TQV72 & WIKI of MS.com http://www.multiupload.com/60BPLSGPL9

but there is an unknown, sometimes easy and sometimes very complicated to find without an example.

Example:
game.game:GetActivePlayer():ShowModel(?) --> (?)= (true) or (false) --> easy to test
=
game.game:GetActivePlayer():ShowModel(true)
game.game:GetActivePlayer():GetOwner():OpenSeatWindow(?) --> (?) = (1,true,0) or (1,false,0) and for the 4 windows of the Car (2,true,0)  (3,true,0)  (4,true,0) 
--> impossible to find without an example
=
game.game:GetActivePlayer():GetOwner():OpenSeatWindow(1,true,0)
game.game:GetActivePlayer():GetOwner():OpenSeatWindow(2,true,0)
game.game:GetActivePlayer():GetOwner():OpenSeatWindow(3,true,0)
game.game:GetActivePlayer():GetOwner():OpenSeatWindow(4,true,0)
All windows are open in Car
game.entitywrapper:GetEntityByName("Escaper"):MoveTo(?) --> (?) = (Math:newVector(-391.80, 902.07,-20.14),START) 
--> impossible to find without an example
"Escaper"= Car entity in Taxi Mod in FR M2 by Yoshid
=
game.entitywrapper:GetEntityByName("Escaper"):MoveTo(Math:newVector(-391.80, 902.07,-20.14),START)


For anim
AnimPlay(?) 
AnimIsFinished(?) 
AnimStop(?) 
AnimPlayEffect(?) 
AnimEffectStop(?) 
AnimPlaySync(?) 
AnimPlayDummy(?) 
SetAnimStyle(,)
SetMoveAnimEntityCyl(?) 
SetMoveAnimEntity(?)
AnimationReset(?)
which command to used, and what value for ?
#80
Mike Bruski:ym1dzizt Wrote:Oh, okay thanks Tommy. Smile

But yeah shame that the game is so hard to modify, I saw on the Zmod forums that modding is so hard on Mafia II, that they can't import cars into Mafia II, because the cars are so advanced with bone strcutures, Zmod has to build a whole new function system just for Mafia II.

Yeah, agreed. Although a side effect of this would be that Zmod may now be able to edit peds as well (if progress with the filter pushes through).


Forum Jump:


Users browsing this thread: 1 Guest(s)