Springfield Posted August 31, 2017 Share Posted August 31, 2017 {$CLEO .cs}thread 'SNIPER AIM'wait 0if and Player.Defined($PLAYER_ACTOR) 02D8: actor $PLAYER_ACTOR current_weapon == 34jf @Pif 0AD2: [email protected] = player $PLAYER_ACTOR targeted_actor //IF and SETjf @Pjump @FIRE:FIREwait 004C4: store_coords_to [email protected] [email protected] [email protected] from_actor [email protected] with_offset 0.0 0.0 0.0if 02E0: actor $PLAYER_ACTOR firing_weaponjf @[email protected] = [email protected] += 0x100A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 // x pos [email protected] += 0x14 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 // y [email protected] += 0x180A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 // z pos ...jump @P It first take the target actor coords. Now i want to send sniper bullet x,y,z coords toward target actor or target actor coords. So, i can't do that. Help me. Link to comment Share on other sites More sharing options...
thalilmythos Posted August 31, 2017 Share Posted August 31, 2017 what are you exactly trying to acomplish? from what you describe, sounds like you could just shoot the guy, what is the purpose of the script? Link to comment Share on other sites More sharing options...
Springfield Posted August 31, 2017 Author Share Posted August 31, 2017 It reads the x,y,z positions of sniper bullet. I first store the position of target actor and now i want to send the sniper bullet at target actor x,y,z position. Simple! Link to comment Share on other sites More sharing options...
GuruGuru Posted September 2, 2017 Share Posted September 2, 2017 It is some kind of auto-shoot script? if that's so then it's way easier to get target actor on-screen 2D coords,then simulate a key press (fire key in this case) when coords are equal to the center of the screen... 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