Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

[VC]Vigilante in any vehicle


lolleroz
 Share

Recommended Posts

Is there any way to script being able to start vigilante in any vehicle, and have no time limit to get back in a vehicle as you step out of it? The reason I'm asking because I changed 'Vigilante' to 'Contract Killing' (with GXT editor) so now it'd make more sense if I could do it in my black bulletproof Admiral and all... oh, and I'm talking about CLEO here, but if it's totally not possible then I guess I can start the whole game over too.

Link to comment
Share on other sites

  • 2 weeks later...
ThirteenAG

All submissions controlled by main.scm:

 

:COP_252if and856C:   not actor $player_actor driving_police_vehicle 80DE:   not player $player_char driving_vehicle_type #HUNTER 80DE:   not player $player_char driving_vehicle_type #FBICAR jf @COP_291 jump @COP :COP_291jump @COP_208 :COP_298if 00DE:   player $player_char driving_vehicle_type #HUNTER jf @COP_339 00BA: text_styled 'COP_M3' 6000 ms 5 jump @COP_395 :COP_339if 00DE:   player $player_char driving_vehicle_type #CHEETAH jf @COP_380 00BA: text_styled 'COP_M2' 6000 ms 5 jump @COP_395 :COP_38000BA: text_styled 'COP_M' 6000 ms 5 :COP_395wait 0 start_mission 78  // VIGILANTE$322 = 1 // integer values 

 

So, is there an easy way to do what you want? I guess not.

It probably could be done by modifying some main.scm checks(like actor $player_actor driving_police_vehicle to actor $player_actor driving, theoretically speaking) in memory, if you don't want to change main.scm itself.

Edited by ThirteenAG
Link to comment
Share on other sites

damn....guess I'll have to start a new game. Thanks for your help anyway.

Link to comment
Share on other sites

I prepared this script for SA that fits all of your needs:

 

{$CLEO}0000: NOP// "R3" script starts at 0x00012A72 offset.// "COPCAR" mission starts at 0x002C9495 offset.0AAA: [email protected] = thread 'R3' pointerif   [email protected] <> 0x00000000then   // Main block (0x00A49960).   {       Skip the following check at the top of the submissions script loop:           IF  IS_CHAR_IN_TAXI scplayer           OR  IS_CHAR_IN_MODEL scplayer ambulan           OR  IS_CHAR_IN_MODEL scplayer firetruk           OR  IS_CHAR_IN_MODEL scplayer hunter           OR  IS_CHAR_IN_MODEL scplayer boxburg           OR  IS_CHAR_IN_ANY_POLICE_VEHICLE scplayer   }   0A8C: write_memory 0x00A5C42E size 4 value 0x00012B15 virtual_protect 0   // Skip "Vigilante" trigger by jumping from "Firefighter" to "Burglar" trigger.   0A8C: write_memory 0x00A5C853 size 4 value 0x0001334F virtual_protect 0   0A8C: write_memory 0x00A5C865 size 4 value 0x0001334F virtual_protect 0   0A8C: write_memory 0x00A5C960 size 4 value 0x0001334F virtual_protect 0   0A8C: write_memory 0x00A5C971 size 4 value 0x0001334F virtual_protect 0   // Set "Vigilante" as the last trigger by jumping to the end of "Pimping" trigger.   0A8C: write_memory 0x00A5CA29 size 4 value 0x00013A0C virtual_protect 0   0A8C: write_memory 0x00A5CB8F size 4 value 0x00013A0C virtual_protect 0   0A8C: write_memory 0x00A5CBA0 size 4 value 0x00013A0C virtual_protect 0   {       Skip the following check which occurs twice of "Vigilante" trigger:           IF  NOT IS_CHAR_IN_ANY_POLICE_VEHICLE scplayer           AND NOT IS_CHAR_IN_MODEL scplayer hunter   }   0A8C: write_memory 0x00A5CABB size 4 value 0x00013185 virtual_protect 0   0A8C: write_memory 0x00A5CBD2 size 4 value 0x000132A8 virtual_protect 0   // Jump from "Pimping" to "Vigilante" trigger.   0A8C: write_memory 0x00A5D160 size 4 value 0x000130CD virtual_protect 0   0A8C: write_memory 0x00A5D178 size 4 value 0x000130CD virtual_protect 0   0A8C: write_memory 0x00A5D18A size 4 value 0x000130CD virtual_protect 0   0A8C: write_memory 0x00A5D29E size 4 value 0x000130CD virtual_protect 0   0A8C: write_memory 0x00A5D2AF size 4 value 0x000130CD virtual_protect [email protected] = falsewhile true   wait 0   if       $ONMISSION == true   then       if           [email protected] == false       then           0AAA: [email protected] = thread 'COPCAR' pointer           if               [email protected] <> 0x00000000           then               // Mission block (0x00A7A6A0).               0A9F: [email protected] = current_thread_pointer               [email protected] += 0x10 // CScriptThread.m_pcBaseAddress               0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0               [email protected] -= @HOOK_00A7BC01_pcMainBuffer               0A8F: [email protected] = 0x00A7A6A0 - [email protected] // pcMissionBuffer               {                   Considering the following check:                       IF  IS_CHAR_IN_MODEL scplayer hunter                   Replace it with this one:                       IF  IS_CHAR_IN_FLYING_VEHICLE scplayer               }               0A8C: write_memory 0x00A7BC01 size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7BC03 size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7BC04 size 4 value 1@ virtual_protect 0         // relative offset               // Comment this code and uncomment the rest to enable the timer while not in a vehicle.               0A8C: write_memory 0x00A7DE57 size 4 value 0xFFFFC6AA virtual_protect 0               0A8C: write_memory 0x00A7DE69 size 4 value 0xFFFFC6AA virtual_protect 0               0A8C: write_memory 0x00A7DE98 size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7DE9A size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7DE9B size 4 value 0xFFFFC6AA virtual_protect 0 // relative offset               0A8C: write_memory 0x00A7EF4F size 4 value 0xFFFFB5C0 virtual_protect 0               0A8C: write_memory 0x00A7EF61 size 4 value 0xFFFFB5C0 virtual_protect 0               0A8C: write_memory 0x00A7EF8E size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7EF90 size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7EF91 size 4 value 0xFFFFB5C0 virtual_protect 0 // relative offset               {                   Considering the following check which occurs twice:                       IF  IS_CHAR_IN_ANY_POLICE_VEHICLE scplayer                       OR  IS_CHAR_IN_MODEL scplayer hunter                   Replace it with this one:                       IF  IS_CHAR_IN_ANY_CAR scplayer               }               {0A8C: write_memory 0x00A7DD42 size 1 value 0x00 virtual_protect 0       // IF comparing rule (none)               0A8C: write_memory 0x00A7DD43 size 2 value 0x00DF virtual_protect 0     // IS_CHAR_IN_ANY_CAR command ID               0A8C: write_memory 0x00A7DD48 size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7DD4A size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7DD4B size 4 value 0xFFFFC950 virtual_protect 0 // relative offset               0A8C: write_memory 0x00A7F0E8 size 1 value 0x00 virtual_protect 0       // IF comparing rule (none)               0A8C: write_memory 0x00A7F0E9 size 2 value 0x00DF virtual_protect 0     // IS_CHAR_IN_ANY_CAR command ID               0A8C: write_memory 0x00A7F0EE size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7F0F0 size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7F0F1 size 4 value 0xFFFFB5AA virtual_protect 0 // relative offset}               {                   Considering the following check which occurs twice:                       IF  NOT IS_CHAR_IN_ANY_POLICE_VEHICLE scplayer                       AND NOT IS_CHAR_IN_MODEL scplayer hunter                   Replace it with this one:                       IF  NOT IS_CHAR_IN_ANY_CAR scplayer               }               0A8C: write_memory 0x00A7DE9B size 1 value 0x00 virtual_protect 0       // IF comparing rule (none)               0A8C: write_memory 0x00A7DE9C size 2 value 0x80DF virtual_protect 0     // NOT IS_CHAR_IN_ANY_CAR command ID (not flag set)               0A8C: write_memory 0x00A7DEA1 size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7DEA3 size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7DEA4 size 4 value 0xFFFFC7F7 virtual_protect 0 // relative offset               0A8C: write_memory 0x00A7EF91 size 1 value 0x00 virtual_protect 0       // IF comparing rule (none)               0A8C: write_memory 0x00A7EF92 size 2 value 0x80DF virtual_protect 0     // NOT IS_CHAR_IN_ANY_CAR command ID (not flag set)               0A8C: write_memory 0x00A7EF97 size 2 value 0x0002 virtual_protect 0     // GOTO command ID               0A8C: write_memory 0x00A7EF99 size 1 value 0x01 virtual_protect 0       // 32-bit signed integer argument type               0A8C: write_memory 0x00A7EF9A size 4 value 0xFFFFB701 virtual_protect 0 // relative offset           end           [email protected] = true       end   else       [email protected] = false   endend:HOOK_00A7BC01_pcMainBufferhex   C804 02 0C00     // IS_CHAR_IN_FLYING_VEHICLE scplayer   0200 01 97EAFFFF // GOTO FFFFEA97end

 

I would encourage anyone to port it to VC.

012          345
678   9A   BCD
EFG HIJK LMN
OPQR  STUV
WX    YZ

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
 Share

  • 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.