Jump to content

[Q] Is it possible to make the bus doors open?


Recommended Posts

One word: Yes.

lamer.. how? icon13.gif

 

u syaing that for help or just spam? icon13.gif

Now that was a pretty well-thought post mate.... seriously, go back to your cave and do your thing.

 

If you think about it, it's possible somehow. Since he didn't ask HOW, the answer is correct. So please make this world better by shooting yourself. suicidal.gif

 

One word: Yes.

lamer.. how? icon13.gif

 

u syaing that for help or just spam? icon13.gif

Now that was a pretty well-thought post mate.... seriously, go back to your cave and do your thing.

 

If you think about it, it's possible somehow. Since he didn't ask HOW, the answer is correct. So please make this world better by shooting yourself. suicidal.gif

Precisely. The question was, whether one can code the game to make the bus doors open when one's PC is inside a bus and at certain locations, eg bus stops.

The answer is, yes.

However, you have to:

-Crack the model format.

-Crack the animation format.

-Edit the model of the bus and add an animation - in this case, the animation of the doors opening.

-Develop a tool that would tell one one's location on the map, in game's files' units.

-Crack the script files - completely, that is.

-Crack the opcodes.

-Find the opcode that plays certain animations.

-Find the opcode that creates certain game areas for defined purposes.

-Create an area of such type at every bus stop.

-Create a command that would activate the (already compiled) animation for opening the doors.

-Write code that would play the animation if the player is 1. riding a bus, 2. is not on a mission, and 3. is going at 15 kmph or less.

-Bind the code to the areas.

-Debug debug debug debug.

 

 

dbpStoney, believe me, there was.

 

Precisely. The question was, whether one can code the game to make the bus doors open when one's PC is inside a bus and at certain locations, eg bus stops.

The answer is, yes.

However, you have to:

-Crack the model format.

-Crack the animation format.

-Edit the model of the bus and add an animation - in this case, the animation of the doors opening.

-Develop a tool that would tell one one's location on the map, in game's files' units.

-Crack the script files - completely, that is.

-Crack the opcodes.

-Find the opcode that plays certain animations.

-Find the opcode that creates certain game areas for defined purposes.

-Create an area of such type at every bus stop.

-Create a command that would activate the (already compiled) animation for opening the doors.

-Write code that would play the animation if the player is 1. riding a bus, 2. is not on a mission, and 3. is going at 15 kmph or less.

-Bind the code to the areas.

-Debug debug debug debug.

 

 

dbpStoney, believe me, there was.

wrong. the bus doors are animated already. just tried it with a few group members. all you have to do to trigger it by script is to call the native OPEN_CAR_DOOR with the door IDs 1 (right front) and 3 (right rear).

 

@petergriffin: i'll write you a script when i release the next version of my .Net script hook. it will support door handling. its just 4 lines of code or something.

Edited by HazardX
Precisely. The question was, whether one can code the game to make the bus doors open when one's PC is inside a bus and at certain locations, eg bus stops.

The answer is, yes.

However, you have to:

-Crack the model format.

-Crack the animation format.

-Edit the model of the bus and add an animation - in this case, the animation of the doors opening.

-Develop a tool that would tell one one's location on the map, in game's files' units.

-Crack the script files - completely, that is.

-Crack the opcodes.

-Find the opcode that plays certain animations.

-Find the opcode that creates certain game areas for defined purposes.

-Create an area of such type at every bus stop.

-Create a command that would activate the (already compiled) animation for opening the doors.

-Write code that would play the animation if the player is 1. riding a bus, 2. is not on a mission, and 3. is going at 15 kmph or less.

-Bind the code to the areas.

-Debug debug debug debug.

 

 

dbpStoney, believe me, there was.

wrong. the bus doors are animated already. just tried it with a few group members. all you have to do to trigger it by script is to call the native OPEN_CAR_DOOR with the door IDs 1 (right front) and 3 (right rear).

 

@petergriffin: i'll write you a script when i release the next version of my .Net script hook. it will support door handling. its just 4 lines of code or something.

open_car_door only in certain areas, automatically.

open_car_door only in certain areas, automatically.

Did he say that? No. I think he meant that he wants to be able to open the doors of the bus when he is driving. And even if not, it would just require an array of positions, then check if one position is close to the bus and then open the doors when speed is close to zero. 15 lines of code instead of 5, OMG. dozingoff.gif

 

BTW: i think you both should improve your tone. this is no flame board or something.

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 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.