Jump to content

Remove/Open Gates at studio in VC


KJMarket

Recommended Posts

Been messing around with CLEO scripting lately. Been trying to figure out a way to remove or open the closed gates at the movie studio in Vice City. I've tried some things but all have led to crashes. I have no code to post, as I am not even sure what opcodes to use for this. Can someone give me a push in the right direction please?

Link to comment
Share on other sites

The door as well two others are placed in main.scm, will then be removed and maybe respawned depending to the storyline script.

So, best way is, to edit main.scm

It's also possible to it by cleo script but consider that these door objects can only be handled by their global var ID and global vars are not recommanded to use in cleo scripts

you should check if you're near at that object and then check if it exist, then just place it in the underground

try the script below, use it only for private use, consider that it maybe works or maybe not or maybe cause a crash

3 gates will be placed in the unground when player comes near to it: the main gate, a big gate nearby the main gate, the small gate at backside of the film studio area

{$CLEO .cs}thread 'CIGATES' wait 1000 ms 13@ = 0 14@ = 015@ = 0 :CIGATES_1wait 0 if 0256:   player $player_char defined jf @CIGATES_1 if and13@ == 0 00FE:   actor $player_actor 0 11.697 963.176 12.258 radius 9.0 9.0 9.0 jf @CIGATES_3 wait 50 if 03CA:   object $263 exists jf @CIGATES_1 wait 1000 01BC: put_object $263 at 11.697 963.176 -12.258 13@ = 1 jump @CIGATES_1 :CIGATES_3if and14@ == 0 00FE:   actor $player_actor 0 -11.853 884.06 13.542 radius 9.0 9.0 9.0 jf @CIGATES_5 wait 50 if 03CA:   object $264 exists jf @CIGATES_1 wait 1000 01BC: put_object $264 at -11.853 884.06 -13.542 14@ = 1 jump @CIGATES_1 :CIGATES_5if and 15@ == 0 00FE:   actor $player_actor 0 -116.738 1027.729 11.34 radius 9.0 9.0 9.0 jf @CIGATES_1 wait 50 if 03CA:   object $1811 exists jf @CIGATES_1 wait 1000 01BC: put_object $1811 at -116.738 1027.729 -11.34 15@ = 1 jump @CIGATES_1
Link to comment
Share on other sites

Open main.scm and search the file for CI_GATESCLOSED and CI_BACKGATECLOSE. I think these two are responsible for the front and back gates at the porn studio.

Link to comment
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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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