Th3MaN1 Posted July 2, 2011 Share Posted July 2, 2011 (edited) Can I edit something in this script so when I aim it rotates the camera to the left?If yes,where do I write the opcode? // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------0662: NOP "GOGGLES" :NONAME_11wait 0 if 0AB0: key_pressed 17 else_jump @NONAME_62 Camera.SetPosition(664.9277, -479.6112, 16.1668, 400.0, 200.0, 0.0):NONAME_62if Player.Defined($PLAYER_CHAR)else_jump @NONAME_11 if Actor.Defined($PLAYER_ACTOR)else_jump @NONAME_11 if not Actor.Dead($PLAYER_ACTOR)else_jump @NONAME_11 if not Actor.Driving($PLAYER_ACTOR)else_jump @NONAME_11 if or02D8: actor $PLAYER_ACTOR current_weapon == 22 02D8: actor $PLAYER_ACTOR current_weapon == 23 02D8: actor $PLAYER_ACTOR current_weapon == 24 02D8: actor $PLAYER_ACTOR current_weapon == 25 02D8: actor $PLAYER_ACTOR current_weapon == 26 02D8: actor $PLAYER_ACTOR current_weapon == 27 02D8: actor $PLAYER_ACTOR current_weapon == 28 02D8: actor $PLAYER_ACTOR current_weapon == 29 else_jump @NONAME_217 if 00E1: player 0 pressed_key 6 else_jump @NONAME_11 jump @NONAME_305 :NONAME_217wait 0 if or02D8: actor $PLAYER_ACTOR current_weapon == 30 02D8: actor $PLAYER_ACTOR current_weapon == 31 02D8: actor $PLAYER_ACTOR current_weapon == 32 02D8: actor $PLAYER_ACTOR current_weapon == 33 02D8: actor $PLAYER_ACTOR current_weapon == 37 02D8: actor $PLAYER_ACTOR current_weapon == 38 02D8: actor $PLAYER_ACTOR current_weapon == 41 02D8: actor $PLAYER_ACTOR current_weapon == 42 else_jump @NONAME_11 if 00E1: player 0 pressed_key 6 else_jump @NONAME_11 :NONAME_305wait 0 if 00E1: player 0 pressed_key 6 else_jump @NONAME_414 if not Actor.Dead($PLAYER_ACTOR)else_jump @NONAME_11 if not Actor.Driving($PLAYER_ACTOR)else_jump @NONAME_11 0A8D: [email protected] = read_memory 12006407 size 1 virtual_protect 0 if [email protected] == 0 else_jump @NONAME_454 0922: set_camera_zoom_in_factor 20.0 out_factor 20.0 timelimit 1000 mode 1 jump @NONAME_305 :NONAME_414wait 0 0922: set_camera_zoom_in_factor 20.0 out_factor 70.0 timelimit 1000 mode 1 [email protected] = -1 wait 700 jump @NONAME_11 :NONAME_454wait 0 0922: set_camera_zoom_in_factor 20.0 out_factor 10.0 timelimit 300 mode 1 wait 250 :NONAME_480wait 0 if 00E1: player 0 pressed_key 6 else_jump @NONAME_414 if not Actor.Dead($PLAYER_ACTOR)else_jump @NONAME_11 if not Actor.Driving($PLAYER_ACTOR)else_jump @NONAME_11 0A8D: [email protected] = read_memory 12006408 size 1 virtual_protect 0 if [email protected] == 0 else_jump @NONAME_589 0922: set_camera_zoom_in_factor 10.0 out_factor 10.0 timelimit 1000 mode 1 jump @NONAME_480 :NONAME_589wait 0 0922: set_camera_zoom_in_factor 10.0 out_factor 20.0 timelimit 300 mode 1 wait 250 jump @NONAME_305 Edited July 4, 2011 by Th3MaN1 Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 3, 2011 Author Share Posted July 3, 2011 Come onnnn,no one? Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 4, 2011 Author Share Posted July 4, 2011 Bump! Link to comment Share on other sites More sharing options...
BnB Posted July 4, 2011 Share Posted July 4, 2011 What is the problem doe your script crashes? Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 4, 2011 Author Share Posted July 4, 2011 (edited) No.The script works perfectly,what it does is to zoom the camera in when I aim just like in Gta 4.But the problem is:It only zooms straight,something like this: http://imageshack.us/photo/my-images/225/g...2717143360.png/ It's ok,but I want it to be something like this: http://playstationlifestyle.net/wp-content...aiv-screen4.jpg In short,all I want is an opcode for the script so the camera rotates to the left.Not much,only a little.And I would like to know WHERE to write the opcode. Edited July 4, 2011 by Th3MaN1 Link to comment Share on other sites More sharing options...
Kweckzilber Posted July 4, 2011 Share Posted July 4, 2011 I don't think there is a documented opcode for rotating a zoomed camera sideways. Not in the specific way you need, anyway. Did you try 015F &/ 0160 relative to the player? Link to comment Share on other sites More sharing options...
fireguy109 Posted July 4, 2011 Share Posted July 4, 2011 You could use sine/cosine to move the camera one unit to the right of the guy and point it where he's aiming. Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 5, 2011 Author Share Posted July 5, 2011 (edited) The script has been not done by me,I just got permission to modify it,so please don't think I know how to make a script. EDIT:Ok I got this 0172: [email protected] = actor $PLAYER_ACTOR Z_angle 02F6: [email protected] = sine [email protected] 02F7: [email protected] = cosine [email protected] Now I have two questions,then maybe I can get what I want. 1)Do the values [email protected] change the angles? 2)Where do I write this opcode in the script?Anywhere? Edited July 8, 2011 by Th3MaN1 Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 13, 2011 Author Share Posted July 13, 2011 Lock this.Looks like neither do people want to help or they don't know the solution. P.S:I know I double-posted,I did it so it will be on the top of the forum. Link to comment Share on other sites More sharing options...
aStiffSausage Posted July 13, 2011 Share Posted July 13, 2011 Lock this.Looks like neither do people want to help or they don't know the solution.P.S:I know I double-posted,I did it so it will be on the top of the forum. You could have just reported the post instead of doing one week bump on it Link to comment Share on other sites More sharing options...
Th3MaN1 Posted July 13, 2011 Author Share Posted July 13, 2011 Actually Adler pm'ed me and he said that it's no problem if I do a 1 week bump on it. Link to comment Share on other sites More sharing options...
Adler Posted July 13, 2011 Share Posted July 13, 2011 Only if it's relevant and useful to the topic lol! Locked. Link to comment Share on other sites More sharing options...
Recommended Posts