BArielNMtz Posted August 16, 2009 Share Posted August 16, 2009 hello there... well .. where i can find explicit info about San Andreas opcodes? i mean opcode + "human" description if not.. could you tell me how can I use 06BC correctly ? please help...thanks bnm9417 Link to comment Share on other sites More sharing options...
cr4k3r Posted August 16, 2009 Share Posted August 16, 2009 (edited) hello there...well .. where i can find explicit info about San Andreas opcodes? i mean opcode + "human" description if not.. could you tell me how can I use 06BC correctly ? please help...thanks bnm9417 im not very sure but.... http://www.gtaforums.com/index.php?showtopic=222397 and http://www.gtaforums.com/index.php?showtopic=194990 and others on google just type San Andreas opcodes simple if you dont mind can you answear me on the topic Traffic Help ? (that i cant find on google) Tnx Edited August 16, 2009 by cr4k3r Link to comment Share on other sites More sharing options...
ToonSkull Posted August 17, 2009 Share Posted August 17, 2009 If you want simple descriptions you should ask either Deji, my brother Jabhacksoul or one of the modders in the modding forum here. I will forward this to JAB in hopes he is not too busy to help you out. Link to comment Share on other sites More sharing options...
JAB HacksouL Posted August 18, 2009 Share Posted August 18, 2009 There are no simple answers for opcodes. The quickest way to see how an opcode works is to search the original main.scm. This opcode is first used in the drugs mission and later on some other missions. 04C4: store_coords_to $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD from_actor $PLAYER_ACTOR with_offset $TEMPVAR_FLOAT_1 -10.0 $TEMPVAR_FLOAT_3 06BC: create_M4_shoot_from 1269.668 -778.8566 94.9557 target $TEMPVAR_X_COORD $TEMPVAR_Y_COORD $TEMPVAR_Z_COORD energy 0 The code above is from the invasion of MD's mansion. 04C4 is used to get the player's position. Then the player's position is fed into 06BC to create M4 gunfire at the player's position from the X Y Z (1269.668 -778.8566 94.9557) position with an energy of 0. I can only guess that raising the energy will make the gun fire more intense. The use of such an opcode could be used for making tank gun turrets or gun fire from unseen attackers. However I would use this code to make an actor fire an M4 at the player: 41@ = Actor.Create(Gang10, #CWFYHB, -1016.771, -2626.34, 96.769) 01B2: give_actor 41@ weapon 31 ammo 99999 Actor.WeaponAccuracy(41@) = 70 //This number gives your 70% chance of hitting. //This will define the actors actions you can assign up to 8 actions per pack 0615: define_AS_pack_begin 1@ 0638: AS_actor -1 stay_put 1 07A5: AS_actor -1 attack_actor $PLAYER_ACTOR 1500 ms 0638: AS_actor -1 stay_put 0 0605: actor -1 perform_animation_sequence "GUN_STAND" IFP_file "PED" 8.0 loop 0 1 1 0 time 1500 0643: set_AS_pack 1@ loop 1 0616: define_AS_pack_end 1@ 0618: assign_actor 41@ to_AS_pack 1@ 061B: remove_references_to_AS_pack 1@ Link to comment Share on other sites More sharing options...
BArielNMtz Posted August 18, 2009 Author Share Posted August 18, 2009 thanks everyone... i did manage to control m4 shoots ... (developing new cleo) thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now