Inadequate Posted March 19, 2018 Share Posted March 19, 2018 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 More sharing options...
DK22Pac Posted March 21, 2018 Share Posted March 21, 2018 (edited) 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 March 21, 2018 by DK22Pac Link to comment Share on other sites More sharing options...
Wesser Posted March 22, 2018 Share Posted March 22, 2018 (edited) 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 March 22, 2018 by Wesser RyanDri3957V 1 012Â Â Â Â Â 345 678Â Â 9AÂ Â BCD EFG HIJK LMN OPQRÂ STUV WX Â Â YZ 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