HeresOtis Posted June 25, 2013 Share Posted June 25, 2013 Is it possible to rotate a car's component to make it turn? I have a custom component named spotlight_dummy on a police car. I want to make it functional. I'm using DK's New Opcodes. Link to comment Share on other sites More sharing options...
aStiffSausage Posted June 26, 2013 Share Posted June 26, 2013 No idea if this will work, but could you just attach an invisible object to where dummy is, and then set rotation for it? These two might help you if you can't find another way: 0D0C: get_car [email protected] component "wheel_lf_dummy" matrix_pointer_to [email protected] // IF and SET 0D06: get_matrix [email protected] position_to [email protected] [email protected] [email protected] Link to comment Share on other sites More sharing options...
HeresOtis Posted June 26, 2013 Author Share Posted June 26, 2013 If I do attach an object, will it make the component, itself, rotate? Link to comment Share on other sites More sharing options...
HeresOtis Posted July 3, 2013 Author Share Posted July 3, 2013 I found this code which makes the newsvan's satellite spin around. [email protected] = Actor.CurrentCar($PLAYER_ACTOR)0A97: [email protected] = car [email protected] struct [email protected] += 0x68C 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 if not [email protected] == 0 jf @Noname_395 [email protected] += 0x9C 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 if not [email protected] == 0 jf @Noname_395 0085: [email protected] = [email protected] // (int) [email protected] += 64 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= 56 :Noname_234 Actor.InCar($PLAYER_ACTOR, [email protected])jf @Noname_395 [email protected] += 0.03 0AA6: call_method 0x59B120 [email protected] num_params 3 pop 0 [email protected] 0.0 0.0 [email protected] += 48 0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0 [email protected] += 4 0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0 [email protected] += 4 0A8C: write_memory [email protected] size 4 value [email protected] virtual_protect 0 [email protected] -= 56 What does car struct + 0x68C point to? How can I incorporate this to make my spotlight_dummy spin around? 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