crashoverride93 Posted January 17, 2016 Share Posted January 17, 2016 First the small question about coding is there an opcode for checking players body armor not health but body armor? The other thing not really coding but How can I mod handling.cfg File to make the ambulance unflippable or at least really hard to Flip. Link to comment Share on other sites More sharing options...
Jack Posted January 17, 2016 Share Posted January 17, 2016 For the question about the armour: WHILE TRUE wait 0 05E6: [email protected] = actor $PLAYER_ACTOR struct // CPlayerPed 000A: [email protected] += 0x2C4 0006: [email protected] = 0 05E0: [email protected] = read_memory [email protected] size 4 virtual_protect 0 // armour (size 4 for float values) IF AND 0021: [email protected] > 70.0 // floating-point values 0023: 90.0 > [email protected] // floating-point values THEN // 70.0 < armour < 90.0 ELSE // 90.0 < armour < 70.0 ENDEND Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
crashoverride93 Posted January 17, 2016 Author Share Posted January 17, 2016 (edited) For the question about the armour: WHILE TRUE wait 0 05E6: [email protected] = actor $PLAYER_ACTOR struct // iPlayer per 000A: [email protected] += 0x2C4 0006: [email protected] = 0 05E0: [email protected] = read_memory [email protected] size 4 virtual_protect 0 // armour (size 4 for float values) IF AND 0021: [email protected] > 70.0 // floating-point values 0023: 90.0 > [email protected] // floating-point values THEN // 70.0 < armour < 90.0 ELSE // 90.0 < armour < 70.0 ENDEND Hey Jack I need a bit of explanation what is happening here please is this saying if 70 and not 90 by the way I hit the quote I don't know how it got screwed up like it did in the quote but anyway also is the 0x2c4 the offset of the armor in the exe file Edited January 17, 2016 by crashoverride93 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