LukasAws Posted July 28, 2020 Share Posted July 28, 2020 1. 0AA6: call_method 4509088 struct 12195720 num_params 4 pop 0 3@ 2@ 1@ 0@ _______________________________ 2. 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 ______________________________ 3. call @Noname_1365 4 10 1 -1647 3 (especially the numbers) ________________________________ 4. Car.SetDriverBehaviour(0@, Nowhere) (the nowhere/FollowRoad part) ________________________________ 5. 0092: 10@ = float 4@ to_integer (how to understand 'float') ________________________________ 6. 0900: clear_object 'FREI_11' last_weapon_damage ________________________________ 7. 0A9F: 1@ = current_thread_pointer 0A8E: 2@ = 1@ + 220 // int 0A8D: 2@ = read_memory 2@ size 1 virtual_protect 0 (All Of them) how do these opcodes/lines work and what do they mean? I want to learn and know more about scripting. So please teach me Gta SA coding masters ;D Link to comment https://gtaforums.com/topic/959151-need-explaination/ Share on other sites More sharing options...
ZAZ Posted July 29, 2020 Share Posted July 29, 2020 (edited) 0AA6 0A8D 0092 0A9F 0A8E 00AF: set_car 0@ driver_behaviour_to 2 1 - follow road, drive back if way is blocked 2 - kill the player 4 - drive to player and stop 8 - ignore road-paths 0900: clear_object 2@ last_weapon_damage sometimes does it need to check if an object is damaged the problem is, as soon as the object is damaged, it returns permanently a damage flag, so that it is impossible to check if the object is damaged a second time but it's possible, when you restore the damage flag be an clear_damage opcode consider that there exist several opcodes to check an object damage Edited July 29, 2020 by ZAZ Link to comment https://gtaforums.com/topic/959151-need-explaination/#findComment-1071293581 Share on other sites More sharing options...
LukasAws Posted July 29, 2020 Author Share Posted July 29, 2020 Thank you. Finally found a website explaining all opcodes. Link to comment https://gtaforums.com/topic/959151-need-explaination/#findComment-1071293595 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