Hi,
I've got to use cars in a mode - three cars to be precise.
From the script sources it seems that using one car is pretty simple - all you have to do is add a few lines to mapscript for each location where the car's supposed to be.
I thought that in order to add another car there I'd just have to modify some of the functions and perhaps add a GVAR or two.
Unfortunatelly it seems that the car_current_town value (which returns the town area where the car is) is hardcoded into the game and it's not editable.
This is how it's definition looks:
I didn't find the metarule definition anywhere and so I expect that it's some internal function that cannot be edited. The same seems to be true for the car_give_to_party and the car_give_gas(AMOUNT) functions.
So basically I'm asking whether anyone here has any experience with adding an additional car into the game or how would you suggest to do so.
Of course, it's possible to write the whole car thing from the scratch using the script only, but I'd rather avoid that - it would take long (I guess) and it could introduce new bugs into the game - and I thing there's enough of them there without me adding some more .
If you have any idea how to do this while using as much of the original game as possible then please let me know .
I've got to use cars in a mode - three cars to be precise.
From the script sources it seems that using one car is pretty simple - all you have to do is add a few lines to mapscript for each location where the car's supposed to be.
I thought that in order to add another car there I'd just have to modify some of the functions and perhaps add a GVAR or two.
Unfortunatelly it seems that the car_current_town value (which returns the town area where the car is) is hardcoded into the game and it's not editable.
This is how it's definition looks:
Code:
#define car_current_town metarule(METARULE_CAR_CURRENT_TOWN, 0)
I didn't find the metarule definition anywhere and so I expect that it's some internal function that cannot be edited. The same seems to be true for the car_give_to_party and the car_give_gas(AMOUNT) functions.
So basically I'm asking whether anyone here has any experience with adding an additional car into the game or how would you suggest to do so.
Of course, it's possible to write the whole car thing from the scratch using the script only, but I'd rather avoid that - it would take long (I guess) and it could introduce new bugs into the game - and I thing there's enough of them there without me adding some more .
If you have any idea how to do this while using as much of the original game as possible then please let me know .