TiTAN_AI Posted September 19, 2015 Share Posted September 19, 2015 (edited) how / where can i disable that the SWAT VAN appear with the FBI on the top ? swat van appear also on level 6 sometimes,but i just use them if wanted level is 4 and the turret cleo i dont include ingame, but still sometimes a swat van appear on level 6 that just follow me and nobody left that vehice, so it seems there is a connection with this in any of the other 3 files, how to disable ? the rest of the code i understand. (i use this together with your helicopter script and with vehicle weapon script) my new WL system: {$CLEO}0000: NWLSWHILE 8256: not player $PLAYER_CHAR defined wait 250END01F0: set_max_wanted_level_to 6 REPEAT wait 0 UNTIL 010F: player $PLAYER_CHAR wanted_level > 20247: load_model #RANCHER0247: load_model #CHEETAH0247: load_model #SWATVAN0247: load_model #FBITRUCK0247: load_model #PATRIOT0247: load_model #BARRACKS0247: load_model #RHINO0247: load_model #ENFORCER0247: load_model #COPCARRU0247: load_model #SWATVAN 0247: load_model #HUNTLEY 038B: load_requested_models0006: [email protected] = 0x8A5A9c 0A8D: [email protected] = [email protected] 4 1 IF 0039: [email protected] == 0x20BTHEN0006: [email protected] = 0x8A5A8C 0006: [email protected] = 0x8A5A90 0006: [email protected] = 0x8A5A94 0006: [email protected] = 0x8A5A98 0006: [email protected] = 0x4219BA 0006: [email protected] = 0x4219E6 0006: [email protected] = 0x461BE7 0006: [email protected] = 0x461BCC 0006: [email protected] = 0x461BB1 0006: [email protected] = 0x561F83 0006: [email protected] = 0x561F63 0006: [email protected] = 0x561F43 0006: [email protected] = 0x561F23 ELSE 0006: [email protected] = 0x912364 0A8D: [email protected] = [email protected] 4 1 IF 0039: [email protected] == 0x20B THEN 0006: [email protected] = 0x912354 0006: [email protected] = 0x912358 0006: [email protected] = 0x91235C 0006: [email protected] = 0x912360 0006: [email protected] = 0x42287A 0006: [email protected] = 0x4228AC 0006: [email protected] = 0x466BCF 0006: [email protected] = 0x466BB0 0006: [email protected] = 0x466B91 0006: [email protected] = 0x57BB73 0006: [email protected] = 0x57BB53 0006: [email protected] = 0x57BB33 0006: [email protected] = 0x57BB13 ELSE 0006: [email protected] = 0x8A6D68 0A8D: [email protected] = [email protected] 4 1 IF 0039: [email protected] == 0x20B THEN 0006: [email protected] = 0x8A6D58 0006: [email protected] = 0x8A6D5C 0006: [email protected] = 0x8A6D60 0006: [email protected] = 0x8A6D64 0006: [email protected] = 0x421A3A 0006: [email protected] = 0x421A66 0006: [email protected] = 0x461C67 0006: [email protected] = 0x461C4C 0006: [email protected] = 0x461C31 0006: [email protected] = 0x562423 0006: [email protected] = 0x562403 0006: [email protected] = 0x5623E3 0006: [email protected] = 0x5623C3 ELSE 0A93: END ENDEND WHILE TRUEREPEAT wait 0UNTIL 0256: player $PLAYER_CHAR defined 0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 1 01C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 3 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 1 0A8C: [email protected] 4 #COPCARSF 1 0A8C: [email protected] 4 #COPCARVG 1 END 01C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 4 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 wait 0 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 END 0A96: [email protected] = actor $PLAYER_ACTOR struct 000A: [email protected] += 0x480 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0000A: [email protected] += 0x0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0000A: [email protected] += 0x0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 IF 0029: [email protected] >= 6700THEN0A8C: [email protected] 4 #HUNTLEY 1 0A8C: [email protected] 4 #HUNTLEY 10A8C: [email protected] 4 #HUNTLEY 10A8C: [email protected] 4 #HUNTLEY 1END01C0: [email protected] = player $PLAYER_CHAR wanted_level WHILE 0039: [email protected] == 5 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 1 0x5 1 0A8C: [email protected] 4 #FBIRANCH 1 0A8C: [email protected] 4 #FBIRANCH 1 wait 0 0A8C: [email protected] 4 #FBITRUCK 1 0A8C: [email protected] 4 #FBITRUCK 1 wait 0 0A8C: [email protected] 4 #FBIRANCH 1 0A8C: [email protected] 4 #FBITRUCK 1 END0A8C: [email protected] 1 0x6 101C0: [email protected] = player $PLAYER_CHAR wanted_level WHILE 0039: [email protected] == 6 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #BARRACKS 1 0A8C: [email protected] 4 #BARRACKS 1 wait 0 0A8C: [email protected] 4 #PATRIOT 1 0A8C: [email protected] 4 #PATRIOT 1 wait 0 0A8C: [email protected] 4 #BARRACKS 1 0A8C: [email protected] 4 #BARRACKS 1 wait 0 0A8C: [email protected] 4 #PATRIOT 1 0A8C: [email protected] 4 #PATRIOT 1END 0A8C: [email protected] 1 0x5 1 END Edited September 19, 2015 by TiTAN_AI AustinJSSS 1 Link to comment Share on other sites More sharing options...
Jack Posted September 19, 2015 Author Share Posted September 19, 2015 how / where can i disable that the SWAT VAN appear with the FBI on the top ? Only inside the turret code. You can replace the FBI model with the SWAT for example. swat van appear also on level 6 sometimes,but i just use them if wanted level is 4 and the turret cleo i dont include ingame, Yes you're right and those are actually regular cop cars which randomly appear in every star by default. I stored their models inside [email protected], [email protected], [email protected] and [email protected] variables:WHILE 0039: [email protected] == 4 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 wait 0 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1ENDThat's why SWATVAN came at 5th and 6th star. Use this: {$CLEO}0000: NWLSWHILE 8256: not player $PLAYER_CHAR defined wait 250END01F0: set_max_wanted_level_to 7 REPEAT wait 0 UNTIL 010F: player $PLAYER_CHAR wanted_level > 20247: load_model #RANCHER0247: load_model #CHEETAH0247: load_model #SWATVAN0247: load_model #FBITRUCK0247: load_model #PATRIOT0247: load_model #BARRACKS0247: load_model #RHINO0247: load_model #ENFORCER0247: load_model #COPCARRU0247: load_model #SWATVAN 0247: load_model #HUNTLEY 038B: load_requested_models0006: [email protected] = 0x8A5A9c 0A8D: [email protected] = [email protected] 4 1IF 0039: [email protected] == 0x20BTHEN0006: [email protected] = 0x8A5A8C0006: [email protected] = 0x8A5A900006: [email protected] = 0x8A5A940006: [email protected] = 0x8A5A980006: [email protected] = 0x4219BA0006: [email protected] = 0x4219E60006: [email protected] = 0x461BE70006: [email protected] = 0x461BCC0006: [email protected] = 0x461BB10006: [email protected] = 0x561F830006: [email protected] = 0x561F630006: [email protected] = 0x561F430006: [email protected] = 0x561F23ELSE0006: [email protected] = 0x912364 0A8D: [email protected] = [email protected] 4 1 IF 0039: [email protected] == 0x20B THEN 0006: [email protected] = 0x912354 0006: [email protected] = 0x912358 0006: [email protected] = 0x91235C 0006: [email protected] = 0x912360 0006: [email protected] = 0x42287A 0006: [email protected] = 0x4228AC 0006: [email protected] = 0x466BCF 0006: [email protected] = 0x466BB0 0006: [email protected] = 0x466B91 0006: [email protected] = 0x57BB73 0006: [email protected] = 0x57BB53 0006: [email protected] = 0x57BB33 0006: [email protected] = 0x57BB13 ELSE 0006: [email protected] = 0x8A6D68 0A8D: [email protected] = [email protected] 4 1 IF 0039: [email protected] == 0x20B THEN 0006: [email protected] = 0x8A6D58 0006: [email protected] = 0x8A6D5C 0006: [email protected] = 0x8A6D60 0006: [email protected] = 0x8A6D64 0006: [email protected] = 0x421A3A 0006: [email protected] = 0x421A66 0006: [email protected] = 0x461C67 0006: [email protected] = 0x461C4C 0006: [email protected] = 0x461C31 0006: [email protected] = 0x562423 0006: [email protected] = 0x562403 0006: [email protected] = 0x5623E3 0006: [email protected] = 0x5623C3 ELSE 0A93: END ENDEND WHILE TRUEREPEAT wait 0UNTIL 0256: player $PLAYER_CHAR defined0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 101C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 3 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 1 0A8C: [email protected] 4 #COPCARSF 1 0A8C: [email protected] 4 #COPCARVG 1END0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 101C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 4 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 0A8C: [email protected] 4 #ENFORCER 1 wait 0 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1 0A8C: [email protected] 4 #SWATVAN 1ENDIF 010F: player $PLAYER_CHAR wanted_level > 6THEN0A8C: [email protected] 4 #HUNTLEY 1 0A8C: [email protected] 4 #HUNTLEY 10A8C: [email protected] 4 #HUNTLEY 10A8C: [email protected] 4 #HUNTLEY 1END0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 101C0: [email protected] = player $PLAYER_CHAR wanted_level WHILE 0039: [email protected] == 5 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 1 0x5 1 0A8C: [email protected] 4 #FBIRANCH 1 0A8C: [email protected] 4 #FBIRANCH 1 wait 0 0A8C: [email protected] 4 #FBITRUCK 1 0A8C: [email protected] 4 #FBITRUCK 1 wait 0 0A8C: [email protected] 4 #FBIRANCH 1 0A8C: [email protected] 4 #FBITRUCK 1END0A8C: [email protected] 1 0x6 10A8C: [email protected] 4 #PATRIOT 1 0A8C: [email protected] 4 #PATRIOT 10A8C: [email protected] 4 #PATRIOT 10A8C: [email protected] 4 #PATRIOT 101C0: [email protected] = player $PLAYER_CHAR wanted_level WHILE 0039: [email protected] == 6 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #BARRACKS 1 0A8C: [email protected] 4 #BARRACKS 1 wait 0 0A8C: [email protected] 4 #PATRIOT 1 0A8C: [email protected] 4 #PATRIOT 1 wait 0 0A8C: [email protected] 4 #BARRACKS 1 0A8C: [email protected] 4 #BARRACKS 1 wait 0 0A8C: [email protected] 4 #PATRIOT 1 0A8C: [email protected] 4 #PATRIOT 1END0A8C: [email protected] 1 0x5 1END but still sometimes a swat van appear on level 6 [[that just follow me and nobody left that vehice]], so it seems there is a connection with this in any of theother 3 files, how to disable ? I was aware of that problem before but I can't fix it atm. Synchronized code is responsible for that. I should probably use $include instead of "take handle" opcodes used inside sync code. TiTAN_AI 1 Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
TiTAN_AI Posted September 21, 2015 Share Posted September 21, 2015 example, if i no use a civil vehicle (here the Ranger) in this section: 01C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 3 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 0A8C: [email protected] 4 #RANCHER 1 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 1 0A8C: [email protected] 4 #COPCARSF 1 0A8C: [email protected] 4 #COPCARVG 1END0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 1 will the HECK 1 + 2 (here "undercver cops") still appear or not, or will it result in any errors because the game try load them ? And what about the WOMIB & WYMIB ? i never saw them appear but they are included in the syncronisized code & in the helicoper code, are they just leftover from the 7 star mod ? AustinJSSS 1 Link to comment Share on other sites More sharing options...
Jack Posted September 21, 2015 Author Share Posted September 21, 2015 example, if i no use a civil vehicle (here the Ranger) will the HECK 1 + 2 (here "undercver cops") still appear or not, or will it result in any errors because the game try load them ? Synchronised code only puts actors inside the empty civil vehicles originaly created by the game as a part of the wanted level system, but ignores the police models (COPCAR, ENFORCER, FBIRANCHER, RHINO and BARRACKS) because those vehicles already have actors (COP, SWAT, FBI and the ARMY).SO undercver cops will appear only inside civil cars if WL > 2. However I think there's is a way to replace WL actors inside emergency vehicles with some other models. And what about the WOMIB & WYMIB ? i never saw them appear but they are included in the syncronisized code & in the helicoper code, are they just leftover from the 7 star mod ? At the time I was building sync' code I thought I'm gonna need those models for the 7th star but later I build up another code with a purpose to create attacking vehicles AND actors inside them.The helicopter code actually uses those actor models at the 7th star instead of the SWAT team models. AustinJSSS and TiTAN_AI 2 Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
TiTAN_AI Posted September 21, 2015 Share Posted September 21, 2015 so when i just use: 01C0: [email protected] = player $PLAYER_CHAR wanted_levelWHILE 0039: [email protected] == 3 wait 0 01C0: [email protected] = player $PLAYER_CHAR wanted_level 0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 1 0A8C: [email protected] 4 #COPCARSF 1 0A8C: [email protected] 4 #COPCARVG 1END0A8C: [email protected] 4 #COPCARRU 1 0A8C: [email protected] 4 #COPCARLA 10A8C: [email protected] 4 #COPCARSF 10A8C: [email protected] 4 #COPCARVG 1 the heck 1 + 2 wont appear but the game still runs fine ? Link to comment Share on other sites More sharing options...
Jack Posted September 21, 2015 Author Share Posted September 21, 2015 Yes. Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel 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