KJMarket Posted April 2, 2014 Share Posted April 2, 2014 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 More sharing options...
ZAZ Posted April 5, 2014 Share Posted April 5, 2014 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
xNCx Posted April 5, 2014 Share Posted April 5, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now