yair1221 Posted August 5, 2010 Share Posted August 5, 2010 the script worked fine when i only used one minigun but when i modified it to fit for two, it stopped working im entering the car(phoenix) but when i press 0 nothing happends // This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010{$VERSION 3.1.1000}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'MONSTERMGS' 0247: load_model #MINIGUN 0247: load_model #MALE01 :MONSTERMGS_280001: wait 0 ms 00D6: if and0248: model #MINIGUN available 0248: model #MALE01 available 004D: jump_if_false @MONSTERMGS_28 :MONSTERMGS_520001: wait 0 ms 00D6: if 00DD: actor $PLAYER_ACTOR driving_car_with_model #PHOENIX 004D: jump_if_false @MONSTERMGS_52 03C0: [email protected] = actor $PLAYER_ACTOR car 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 0337: set_actor [email protected] visibility 0 0337: set_actor [email protected] visibility 0 0568: set_actor [email protected] targetable 0 0568: set_actor [email protected] targetable 0 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B9: set_actor [email protected] armed_weapon_to 38 01B9: set_actor [email protected] armed_weapon_to 38 02A9: set_actor [email protected] immune_to_nonplayer 1 02A9: set_actor [email protected] immune_to_nonplayer 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 054A: set_actor [email protected] immune_to_car_headshots 1 054A: set_actor [email protected] immune_to_car_headshots 1 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 :MONSTERMGS_3190001: wait 0 ms 00D6: if 0AB0: key_pressed 96 004D: jump_if_false @MONSTERMGS_319 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0001: wait 101 ms 017B: set_actor [email protected] weapon 38 ammo_to 999999 017B: set_actor [email protected] weapon 38 ammo_to 999999 0002: jump @MONSTERMGS_319 Link to comment Share on other sites More sharing options...
james227uk Posted August 5, 2010 Share Posted August 5, 2010 96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard) Link to comment Share on other sites More sharing options...
Jerry123 Posted August 5, 2010 Share Posted August 5, 2010 The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot. Link to comment Share on other sites More sharing options...
MW_29 Posted August 5, 2010 Share Posted August 5, 2010 (edited) the script worked fine when i only used one minigunbut when i modified it to fit for two, it stopped working im entering the car(phoenix) but when i press 0 nothing happends // This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010{$VERSION 3.1.1000}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'MONSTERMGS' 0247: load_model #MINIGUN 0247: load_model #MALE01 :MONSTERMGS_280001: wait 0 ms 00D6: if and0248: model #MINIGUN available 0248: model #MALE01 available 004D: jump_if_false @MONSTERMGS_28 :MONSTERMGS_520001: wait 0 ms 00D6: if 00DD: actor $PLAYER_ACTOR driving_car_with_model #PHOENIX 004D: jump_if_false @MONSTERMGS_52 03C0: [email protected] = actor $PLAYER_ACTOR car 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 0337: set_actor [email protected] visibility 0 0337: set_actor [email protected] visibility 0 0568: set_actor [email protected] targetable 0 0568: set_actor [email protected] targetable 0 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B9: set_actor [email protected] armed_weapon_to 38 01B9: set_actor [email protected] armed_weapon_to 38 02A9: set_actor [email protected] immune_to_nonplayer 1 02A9: set_actor [email protected] immune_to_nonplayer 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 054A: set_actor [email protected] immune_to_car_headshots 1 054A: set_actor [email protected] immune_to_car_headshots 1 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 :MONSTERMGS_3190001: wait 0 ms 00D6: if 0AB0: key_pressed 96 004D: jump_if_false @MONSTERMGS_319 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 100 ms 0001: wait 101 ms 017B: set_actor [email protected] weapon 38 ammo_to 999999 017B: set_actor [email protected] weapon 38 ammo_to 999999 0002: jump @MONSTERMGS_319 Damn, man did you make it out to work? As i am not blind, those miniguns are ...for car? Did it work for you at least with one gun, i am really curious bzc i would like to have my ah6 lil bird armed ;d I ve seen this kinda scripts working in Sa, but not for VC, could you show me any screenshot for proof that it is possible, i m really curious PS.: I found a bug in your code, #PHOENIX should be #PHEONIX, just as model name is exactly like that Maybe thats does'nt work bcz of this? Oh, i think and to be honest now im sure that your script is for SA, i didn't notice it, i first thought that is is for VC, my mistake, so probably all that i wrote can be put into the bin, Edited August 5, 2010 by MW_29 Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 (edited) Damn, man did you make it out to work? As i am not blind, those miniguns are ...for car? Did it work for you at least with one gun, i am really curious bzc i would like to have my ah6 lil bird armed ;d I ve seen this kinda scripts working in Sa, but not for VC, could you show me any screenshot for proof that it is possible, i m really curious PS.: I found a bug in your code, #PHOENIX should be #PHEONIX, just as model name is exactly like that wink.gif Maybe thats does'nt work bcz of this? Oh, i think and to be honest now im sure that your script is for SA, i didn't notice it, i first thought that is is for VC, my mistake, so probably all that i wrote can be put into the bin, its for sa anyway, ill see if it works with the repair, sorry for not seeing this, its not because i didnt looked its because i thought thats the way to write it(not from USA nor UK :S) edit: no, i wrote it right the first time 96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard) yes im pressing the right button and the num lock is on The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot. i tried rising it to 1000 still doesnt work, besides, my old script works with 100 ms but its only one minigun Edited August 5, 2010 by yair1221 Link to comment Share on other sites More sharing options...
ZAZ Posted August 5, 2010 Share Posted August 5, 2010 96 is a Numpad key. Are you pressing the 0 on the number pad? Do you have the numberpad switched on? (Switch it on by pressing the Num Lock key. A light should then light up on your keyboard) yes im pressing the right button and the num lock is on The Actors only shoot for 100 ms WTF Add more duration. They always need some milliseconds before they shoot. i tried rising it to 1000 still doesnt work, besides, my old script works with 100 ms but its only one minigun your posted script works for me but needs a bit more time 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0001: wait 300 ms CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 how is it possible? i changed what you said, but it still does nothing Link to comment Share on other sites More sharing options...
ZAZ Posted August 5, 2010 Share Posted August 5, 2010 how is it possible?i changed what you said, but it still does nothing change the key_press, try backspace make the actors visible to see what happens CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 i tried, the actors dont even appear,probably something earlier in the code Link to comment Share on other sites More sharing options...
james227uk Posted August 5, 2010 Share Posted August 5, 2010 Well they won't appear, you set them as invisible 0337: set_actor [email protected] visibility 0 Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 no, i changed that to test it Link to comment Share on other sites More sharing options...
ZAZ Posted August 5, 2010 Share Posted August 5, 2010 no, i changed that to test it post your recent script CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
yair1221 Posted August 5, 2010 Author Share Posted August 5, 2010 // This file was decompiled using sascm.ini published by http://gtag.gtagaming.com/opcode-database on 4.8.2010 {$VERSION 3.1.1000} {$CLEO .cs} //-------------MAIN--------------- 03A4: name_thread 'MONSTERMGS' 0247: load_model #MINIGUN 0247: load_model #MALE01 :MONSTERMGS_28 0001: wait 0 ms 00D6: if and 0248: model #MINIGUN available 0248: model #MALE01 available 004D: jump_if_false @MONSTERMGS_28 :MONSTERMGS_52 0001: wait 0 ms 00D6: if 00DD: actor $PLAYER_ACTOR driving_car_with_model #PHOENIX 004D: jump_if_false @MONSTERMGS_52 03C0: [email protected] = actor $PLAYER_ACTOR car 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0 0337: set_actor [email protected] visibility 0 0337: set_actor [email protected] visibility 0 0568: set_actor [email protected] targetable 0 0568: set_actor [email protected] targetable 0 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this 01B9: set_actor [email protected] armed_weapon_to 38 01B9: set_actor [email protected] armed_weapon_to 38 02A9: set_actor [email protected] immune_to_nonplayer 1 02A9: set_actor [email protected] immune_to_nonplayer 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 02AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1 054A: set_actor [email protected] immune_to_car_headshots 1 054A: set_actor [email protected] immune_to_car_headshots 1 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 0464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 38 :MONSTERMGS_319 0001: wait 0 ms 00D6: if 0AB0: key_pressed 96 004D: jump_if_false @MONSTERMGS_319 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.5 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.5 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms 0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms 0001: wait 300 ms 017B: set_actor [email protected] weapon 38 ammo_to 999999 017B: set_actor [email protected] weapon 38 ammo_to 999999 0002: jump @MONSTERMGS_319 Link to comment Share on other sites More sharing options...
ZAZ Posted August 6, 2010 Share Posted August 6, 2010 clear your cleo folder then try the script below {$CLEO .cs}03A4: name_thread 'MONSTERMGS':MONSTERMGS_10001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @MONSTERMGS_1if00DF: actor $PLAYER_ACTOR driving004D: jump_if_false @MONSTERMGS_10247: load_model #MINIGUN0247: load_model #MALE01:MONSTERMGS_280001: wait 0 ms00D6: if and0248: model #MINIGUN available0248: model #MALE01 available004D: jump_if_false @MONSTERMGS_2803C0: [email protected] = actor $PLAYER_ACTOR car009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.0009A: [email protected] = create_actor_pedtype 4 model #MALE01 at 0.0 0.0 100.00337: set_actor [email protected] visibility 10337: set_actor [email protected] visibility 10568: set_actor [email protected] targetable 00568: set_actor [email protected] targetable 001B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this01B2: give_actor [email protected] weapon 38 ammo 999999 // Load the weapon model before using this01B9: set_actor [email protected] armed_weapon_to 3801B9: set_actor [email protected] armed_weapon_to 3802E2: set_actor [email protected] weapon_accuracy_to 100 02E2: set_actor [email protected] weapon_accuracy_to 10002A9: set_actor [email protected] immune_to_nonplayer 102A9: set_actor [email protected] immune_to_nonplayer 102AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 102AB: set_actor [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 10946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1060B: set_actor [email protected] decision_maker_to 320946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1060B: set_actor [email protected] decision_maker_to 32054A: set_actor [email protected] immune_to_car_headshots 1054A: set_actor [email protected] immune_to_car_headshots 10464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset 0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 380464: put_actor [email protected] into_turret_on_car [email protected] at_car_offset -0.75 0.6 0.7 position 1 shooting_angle_limit 360.0 with_weapon 380114: set_actor [email protected] car_weapon 38 ammo_to 20000114: set_actor [email protected] car_weapon 38 ammo_to 2000:MONSTERMGS_3190001: wait 0 msif0256: player $PLAYER_CHAR defined004D: jump_if_false @MONSTERMGS_500if and8119: not car [email protected] wrecked00DF: actor $PLAYER_ACTOR driving004D: jump_if_false @MONSTERMGS_5000407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0.75 25.0 -0.50407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset -0.75 25.0 -0.50668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0668: AS_actor [email protected] rotate_and_shoot_at [email protected] [email protected] [email protected] 500 ms0001: wait 300 ms0114: set_actor [email protected] car_weapon 38 ammo_to 20000114: set_actor [email protected] car_weapon 38 ammo_to 20000002: jump @MONSTERMGS_319:MONSTERMGS_5000465: remove_actor [email protected] from_turret_mode0465: remove_actor [email protected] from_turret_mode009B: destroy_actor [email protected] 009B: destroy_actor [email protected] 01C3: remove_references_to_car [email protected] 10000002: jump @MONSTERMGS_1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 thanks a lot but i already managed to fix the script, i dont know what the problem was, but i rebuilt it from scratch and it works Link to comment Share on other sites More sharing options...
BnB Posted August 6, 2010 Share Posted August 6, 2010 thanks a lot but i already managed to fix the script, i dont know what the problem was, but i rebuilt it from scratch and it works Then why did you asked for help if you could try harder and fix the script. Link to comment Share on other sites More sharing options...
yair1221 Posted August 6, 2010 Author Share Posted August 6, 2010 i couldnt, i tried for like 3 hours streak yesterday about in the second hour i published the question i hoped that someone will answer fast,but probably the time difference and today in the morning i deleted the script, and re-created it,dont know why it didnt worked the first time 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