ArmanCan Posted February 8, 2022 Share Posted February 8, 2022 I think the title is pretty much obvious..  I'm just wondering.. can i add "Fake Phonecall" function to this game when the "$ONMISSION 0" is? I think it will be useful to trigger OM0 without waiting from contacts a phonecall or hanging the phonecall for a long time.. It will be healthy too because not answering a phonecall too long may boil your system and damages the save file/progress  It will be a pretty simple.. This will be activated by a cheat and than a high priority phonecall (Classic 15-20 seconds delay phonecall) will be ringed. After you answer this phonecall the player will hear a randomized or specific audio and the script will complete it's life so it will be disposable.. Adding a cheat opcode is too easy but i have no idea about adding a new phonecall Link to comment Share on other sites More sharing options...
ZAZ Posted February 8, 2022 Share Posted February 8, 2022 add a "Fake Phone call" ? for what purpose? scripting a phone call is easy to do as cleo script adding a script to main.scm is easy too, but it needs to Start New Game  Or do you mean the phone calls for trigger originally SA story line? CLEO MODS   CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ArmanCan Posted February 8, 2022 Author Share Posted February 8, 2022 Hallo ZAZ   2 hours ago, ZAZ said: add a "Fake Phone call" ? for what purpose?  Für eine OM0 Einstellung mit zum Beispiel Quarry oder 8-Track..  I'm seeing some players waiting an important phonecall and than hanging up too long until they reach their designated missions.. for example Los Desperados duping in order to get rid of Gang Wars.. Sometimes players wants to do EC-EM Conversion after %100 percent and Catalina's unpredictable phonecall doesn't help them..  2 hours ago, ZAZ said: Or do you mean the phone calls for trigger originally SA story line?  No it won't have any affect with progress.. it will be completely independent.. Link to comment Share on other sites More sharing options...
ZAZ Posted February 9, 2022 Share Posted February 9, 2022 sounds weird can you give simple answer? what exactly should the phone call initiate? just display a text? start a mission script? start another script? start a cleo script?  by what script type should the phone call be done? Cleo script? script inside main.scm?  test the cleo script below press Backspace to get a phone ringing press your PED_ANSWER_PHONE -key to accept press enter/exit to cancel after 10 sec without keypress, time expired, then it needs again request the phone ringing after the call a video game mission starts   remove these codes if you not play with originally main.scm  $ONMISSION = 1  0417: start_mission 3   {$CLEO .cs} thread 'PHONCAL' 0@ = 20600 1@ = 0 while true wait 0 if 0256: player $PLAYER_CHAR defined then if and 1@ == 0 0AB0: key_pressed 8 // press Backspace start call by phone ringing then 0@ = 20600 gosub @PhoneCall_wav_sound 03D1: play_wav 1 03E5: show_text_box 'ANSWER' 1@ = 1 33@ = 0 end if or 33@ > 10000 // time expired 00E1: player 0 pressed_key 15// enter/exit key then 1@ = 0// cancel phone call end if and 1@ == 1 00E1: player 0 pressed_key 4 // TAB - PED_ANSWER_PHONE then 0247: load_model #CELLPHONE 038B: load_requested_models 01B4: set_player $PLAYER_CHAR can_move 0 0729: AS_actor $PLAYER_ACTOR hold_cellphone 1 067C: put_camera_on_actor $PLAYER_ACTOR with_offset 0.0 1.5 0.6 rotation 0.0 0.2 0.6 0.0 2 wait 250 03E6: remove_text_box 33@ = 0 // reset timer 1@ = 2 while 0256: player $PLAYER_CHAR defined wait 0 if or 33@ > 11000// check timer if 5 seconds are passed 00E1: player 0 pressed_key 14 00E1: player 0 pressed_key 15 00E1: player 0 pressed_key 17 00E1: player 0 pressed_key 6 then break end if and 1@ == 2 33@ > 2000// check timer if 5 seconds are passed then 0@ = 29052 gosub @PhoneCall_wav_sound 0949: link_wav 1 to_actor $PLAYER_ACTOR 0967: actor $PLAYER_ACTOR move_mouth 2000 ms 03D1: play_wav 1 1@ = 3 end if and 1@ == 3 33@ > 3000// check timer if 5 seconds are passed then 0@ = 29076 gosub @PhoneCall_wav_sound 0949: link_wav 1 to_actor $PLAYER_ACTOR //0967: actor $PLAYER_ACTOR move_mouth 2000 ms 03D1: play_wav 1 1@ = 4 end if and 1@ == 4 33@ > 4000// check timer if 5 seconds are passed then 0968: actor $PLAYER_ACTOR stop_mouth 0@ = 28405 gosub @PhoneCall_wav_sound 0949: link_wav 1 to_actor $PLAYER_ACTOR 03D1: play_wav 1 1@ = 5 end if and 1@ == 5 33@ > 9000// check timer if 5 seconds are passed then 0968: actor $PLAYER_ACTOR stop_mouth 0@ = 30415 gosub @PhoneCall_wav_sound 0949: link_wav 1 to_actor $PLAYER_ACTOR 0967: actor $PLAYER_ACTOR move_mouth 2000 ms 03D1: play_wav 1 1@ = 6 end end 0729: AS_actor $PLAYER_ACTOR hold_cellphone 0 wait 500 0968: actor $PLAYER_ACTOR stop_mouth 0373: set_camera_directly_behind_player 02EB: restore_camera_with_jumpcut 01B4: set_player $PLAYER_CHAR can_move 1 //-------------------------------------------------------------- // below place code that should start scripts // or other commands which should happen // // if you play on originally main.scm, // then test start_mission 3, it's a Video Game //-------------------------------------------------------------- 00BA: show_text_styled GXT 'FEN_JON' time 2000 style 4 // wait 1000 $ONMISSION = 1 0417: start_mission 3// Originally: Video Game: They Crawled From Uranus //-------------------------------------------------------------- // remove these codes if you not play with originally main.scm // $ONMISSION = 1 // 0417: start_mission 3 // // or if you not wanna play a misssion script // // you can also start a cleo script //0A92: create_custom_thread "scriptMod.cs" // or cleo mission script //0A94: start_custom_mission "MissionMod" //-------------------------------------------------------------- end end end :PhoneCall_wav_sound 040D: unload_wav 1 03CF: load_wav [email protected] as 1 repeat wait 0 until 03D0: wav 1 loaded return   CLEO MODS   CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ArmanCan Posted February 9, 2022 Author Share Posted February 9, 2022 57 minutes ago, ZAZ said: can you give simple answer? what exactly should the phone call initiate?  I'm lookig for a phonecall that will aid players to trigger OM0 or make an EC/EM Conversion healthy/safely  and like i said before it won't have any effects with progress/missions  57 minutes ago, ZAZ said: by what script type should the phone call be done? Cleo script?  Yes cleo script..and i only want a "press key/type cheat code" phonecall so players can use it whenever they want.. the phone will continously ring (Classic ringtone - 10 or 15 seconds delay between calls) until they answer it and when they answer it the players must press the same key or type the same cheat code again in order to get a new phonecall After they pick up the phone the players will hear either a randomized voice (i think there was a library in some files) or a specific voice (preferably a short one and i think this will be easier than randomizing).. They can off course skip it if they want   Your script seems partly clear for me and i have just one question..  Is 5 seconds really a must? I mean it's too short for me.. It would be at least 10 seconds between two unanswered phonecalls...  Link to comment Share on other sites More sharing options...
ZAZ Posted February 9, 2022 Share Posted February 9, 2022 (edited) 2 hours ago, ArmanCan said: Is 5 seconds really a must? I mean it's too short for me.. It would be at least 10 seconds between two unanswered phonecalls...   it's not 5 sec, it's 10 as i said, after 10 sec without keypress, time expired, then it needs again request the phone ringing but you can modify the script to your desire, make 20 sec, add more conversation, make fade, whatever you want Edited February 9, 2022 by ZAZ CLEO MODS   CLEO Script Tutorial Link to comment Share on other sites More sharing options...