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

Happy Holidays from the GTANet team!

[SA] All-Proof Player in CLEO


Inadequate
 Share

Recommended Posts

Is there a way to make the player all proof using 0A8C and memory addresses instead of 02AB in a loop but acting the same way as 02AB works if possible? Oh well, in a few words I need to get the memory address/addresses to do it. Any help, I'll appreciate it.

Link to comment
Share on other sites

You need to obtain ped pointer, add offset to flags field and modify required bits.

If you don't know how to obtain a pointer, how to find an offset and how to modify bits, you can

use plugin-sdk because you don't need all these things there

 

ped->m_nPhysicalFlags.bBulletProof = true;ped->m_nPhysicalFlags.bFireProof = true;ped->m_nPhysicalFlags.bCollisionProof = true;ped->m_nPhysicalFlags.bMeeleProof = true;ped->m_nPhysicalFlags.bInvulnerable = true;ped->m_nPhysicalFlags.bExplosionProof = true;
or use 02AB. Edited by DK22Pac
Link to comment
Share on other sites

As an option, you can borrow some code pieces of the "Player Invincibility" cheat from remastered version:

 

// Enable GTA:SA SRC mode{$CLEO}goto @script_starthex    FFendconst    _CPedDamageResponseCalculator__AccountForPedDamageStats = 0x004AD430 // void CPedDamageResponseCalculator::AccountForPedDamageStats(CPed *pTarget, CPedDamageResponse &pdr)    _CPed__IsPlayer                                         = 0x005DF8F0 // void CPed::IsPlayer()end:_CPlayerPed__bDebugPlayerInvinciblehex    00end:_hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponsehex    8BCF            // 00000000 mov     ecx, edi    E8 00000000     // 00000002 call    CPed::IsPlayer    84C0            // 00000007 test    al, al    74 0E           // 00000009 jz      L1    8A15 00000000   // 0000000B mov     dl, CPlayerPed::bDebugPlayerInvincible    84D2            // 00000011 test    dl, dl    0F85 00000000   // 00000013 jnz     CPedDamageResponseCalculator::ComputeDamageResponse+21Bh                    // L1:    55              // 00000019 push    ebp    57              // 0000001A push    edi    8BCE            // 0000001B mov     ecx, esi    E8 00000000     // 0000001D call    CPedDamageResponseCalculator::AccountForPedDamageStats    E9 00000000     // 00000022 jmp     CPedDamageResponseCalculator::ComputeDamageResponse+55hend:script_startconst    _CPlayerPed__bDebugPlayerInvincible  = [email protected] // static bool CPlayerPed::bDebugPlayerInvincibleendconst    _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse  = [email protected]: get_this_script_struct [email protected]@ += 0x10 // offsetof(CRunningScript, m_pStartAddress)0A8D: read_process_memory [email protected] size 4 vp FALSE store_to [email protected]: _CPlayerPed__bDebugPlayerInvincible = [email protected] - @_CPlayerPed__bDebugPlayerInvincible0A8F: _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse = [email protected] - @_hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse0A8C: write_process_memory 0x004B5AF0 size 2 value 0x9066 vp TRUE0A8F: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse - 0x004B5B150A8C: write_process_memory 0x004B5B10 size 1 value 0xE9 vp TRUE0A8C: write_process_memory 0x004B5B11 size 4 value [email protected] vp TRUE0A8E: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse + 30A8E: [email protected] = [email protected] + 40A8F: [email protected] = _CPed__IsPlayer - [email protected]: write_process_memory [email protected] size 4 value [email protected] vp FALSE0A8E: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse + 0x0D0A8C: write_process_memory [email protected] size 4 value _CPlayerPed__bDebugPlayerInvincible vp FALSE0A8E: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse + 0x150A8F: [email protected] = 0x004B5CD7 - [email protected]: write_process_memory [email protected] size 4 value [email protected] vp FALSE0A8E: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse + 0x1E0A8E: [email protected] = [email protected] + 40A8F: [email protected] = _CPedDamageResponseCalculator__AccountForPedDamageStats - [email protected]: write_process_memory [email protected] size 4 value [email protected] vp FALSE0A8E: [email protected] = _hook_004B5B10_CPedDamageResponseCalculator__ComputeDamageResponse + 0x230A8F: [email protected] = 0x004B5B11 - [email protected]: write_process_memory [email protected] size 4 value [email protected] vp FALSE0A8C: write_process_memory _CPlayerPed__bDebugPlayerInvincible size 1 value TRUE vp FALSE0A93: terminate_this_custom_script
Edited by Wesser
  • Like 1

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.