ArmanCan Posted December 27, 2021 Share Posted December 27, 2021 Ok.. im gonna ask couple of questions and off course if i succesfully complete (like my previous Vice City Armory script) this i will upload it to you My intention is pretty simple. I'm removing some less used weapon/tool pickups from default locations (sometimes all pickups on the map), splitting to 5 locations (Ganton, Angel Pine, Doherty, Toreno's Ranch or Werdant Meadows and Dragon Casino) and creating new pickups for completing the armory.. I'm removing because OrionSR told me about some "Less Memory Pool" and creating new pickups may fill the remaining space and system may start to remove some other pickups so it will be unwanted thing for us. - My question is... how can i add new pickups? Do i have to count "Local Variables" from "Main.scm" and find another nummer/digit? I already added camera for Vice City by typing this "[email protected]" but this time i'm going to add 23 new pickups.. "Local variables Local variables are denoted by the @ characher put after the name identifier. A local variable name can only include digits: [email protected] [email protected] [email protected] Their values are available only within the current thread or mission. Threads, external scripts and CLEO scripts have a limited amount of local variables. Refer to the limits documentation to find out exact ranges." GTA III Vice City San Andreas LCS main size 131072 225512 200000 mission size 32768 35000 69000 num missions 120 120 200 Mission Cleanup List 50 50 75 model names (2nd segment) 200 220 395 running threads 128 128 96 local variables 16 + 2 timers 16 + 2 timers 32 + 2 timers 1024 total in missions 96 + 2 timers gosub levels 4 6 8 Text_Draw 2 48 96 Jump Table Labels - - 75 - external threads n/a n/a 82 n/a external thread attachments n/a n/a 70 n/a car generators 160 185 500 radar blips 32 75 175 pickups 336 336 620 last opcode 0481 05a8 0a4e spheres 16 16 16 car saving garagetypes 16..18 16..18,24..32 16..18,24..32,39..45 - I found some spots for armory but i'm having a problem with finding a good spot for ganton. This spot looks easy to reach but it is too open and not so "Starter Save" friendly.. This is also a great spot but it will be awkward during ryder missions This roof is starter save friendly if you don't get close to ganton but requires climbing This spot is almost perfect but there is always a spawned vehicle in the middle of it This is the widest spot that i'll be able to find but i'm not sure about this unwanted sandhill and carwreck What is your suggestions about this spots? - I know it is not related to armory but i'm also trying to remove these info pickups because these are nowadays unnecessary and picking them up means waiting an unskippable cutscene for ages What happens if i directly destroy these forever? Pickup.Create($PICKUP_INFO_HOSPITAL, #INFO, 3, 2027.77, -1420.52, 16.49) Pickup.Create($PICKUP_INFO_HOSPITAL_2, #INFO, 3, 1180.85, -1325.57, 13.08) Pickup.Create($PICKUP_INFO_POLICE, #INFO, 3, 1550.68, -1675.49, 15.01) Pickup.Create($PICKUP_INFO_CONVERSATION, #INFO, 3, 2431.17, -1668.75, 13.04) Link to comment Share on other sites More sharing options...
OrionSR Posted December 27, 2021 Share Posted December 27, 2021 3 hours ago, ArmanCan said: What happens if i directly destroy these forever? One thing to consider when removing the info icons is that they can be used as part of special vehicle exploits to allow CJ to move during cut-scenes. These strategies were popular briefly before OM0 was popularized; I'm not sure that anyone uses these exploits anymore. The other consideration is that the help shown flags should be set so the help script can eventually shut down once all help messages have been shown. //RBR/CG37: Remove Help Text Pickups 0215: destroy_pickup $PICKUP_INFO_HOSPITAL 0215: destroy_pickup $PICKUP_INFO_HOSPITAL_2 0215: destroy_pickup $PICKUP_INFO_POLICE 0004: $HELP_WASTED_SHOWN = 1 0004: $HELP_BUSTED_SHOWN = 1 //0215: destroy_pickup $PICKUP_INFO_CONVERSATION // this one's not such a nuisance //0004: $HELP_CHAT_SHOWN = 1 // so we could leave it in 3 hours ago, ArmanCan said: I already added camera for Vice City by typing this "[email protected]" but this time i'm going to add 23 new pickups. We should go over the use of variables in more detail, but in this context figure that [email protected] means temporary local variable, or "temp_lvar". We can swap out the variable number as needed, but temp_lvar will always be a throw-away variable. Basically, you need a variable to make an assignment or perform a computation but you don't care what the value is, will probably only perform the operation once, and you'll never need to use the current value again. So if you are making a patch script that makes changes to the save data and then isn't used again, you can simply reuse [email protected] to create each pickup. Cleo script will forget the values of their local vars so you would lose the pickup handles either way. There are quite a few useless pickups in San Andreas. You should be able weed a few out to use as handles for your armory pickups. Something to consider: A patch script strategy is similar to modifying main.scm, which requires different rules than working with a proper cleo mod. Mod users generally expect that removing the mod should be enough to restore things to normal. This is tricky with pickups because they persist in the save. A successful strategy would be to create the pickups only when CJ is near, remove them when he leaves, and don't allow saving when the pickups are active. Link to comment Share on other sites More sharing options...
ArmanCan Posted December 27, 2021 Author Share Posted December 27, 2021 (edited) 3 hours ago, OrionSR said: These strategies were popular briefly before OM0 was popularized; I'm not sure that anyone uses these exploits anymore. Yeah.. People were trying to get AP Packer, Sultan and DP/EP/FP BF-400 instead of Sprunk Machine+Satchel Charges on enemies.. 3 hours ago, OrionSR said: We should go over the use of variables in more detail I don't want to thumble down the rabbit hole i'll just use your previous and first template in order to destroy these pickups first, relocate to new coordinates, and add new pickups for example 3 more silenced pistol pickups for three locations to complete the armory.. 3 hours ago, OrionSR said: you can simply reuse [email protected] to create each pickup. Cleo script will forget the values of their local vars so you would lose the pickup handles either way. There are quite a few useless pickups in San Andreas. You should be able weed a few out to use as handles for your armory pickups. If i understood correctly you are offering me two solutions/methods According to these solutions i would like to choose the safest and easiest method.. And you were wrong.. there are TONS of useless weapon/tool pickups in San Andreas.. I'm also open to your suggestions about choosing the right spot for Ganton so @OrionSR please don't hesitate to write your own suggestions Edited December 27, 2021 by ArmanCan Link to comment Share on other sites More sharing options...
OrionSR Posted December 27, 2021 Share Posted December 27, 2021 It's easy for me to imagine lots of options, most of them too complex at this stage. But your emphasis on safe practice suggested a strategy that should fit well with your current project. How about... Two scripts; One to install your armory pickups by replacing useless standard pickups and reusing their pool slots and global variables. And an uninstall script that reverse the process to restore the standard pickups. As far as outdoor armory locations near Ganton, I worked with Glenster to put weapons on top of 10 Green Bottles. That worked well enough. My outdoor preference would be someplace with a lot of interesting detail that's tucked away in a spot that few players would notice without something like an armory to draw them near. I usually prefer indoor armories with interiors with access points in different cities so the same pickups can be accessed in different locations around the map. Disco bars have lots of empty space. Bincos are everywhere. Safehouses, strip clubs, 24/7s, and fast food joint etc can be exploited for this purpose. I always thought the large bunker west of the desert airstrip would be a cool place for an armory. Link to comment Share on other sites More sharing options...
ArmanCan Posted December 28, 2021 Author Share Posted December 28, 2021 1 hour ago, OrionSR said: with your current project It is actually a "Hobby" for me..it is good to kill time and keep the brain work just like sudoku or crossword 1 hour ago, OrionSR said: Two scripts; One to install your armory pickups by replacing useless standard pickups and reusing their pool slots and global variables. And an uninstall script that reverse the process to restore the standard pickups. I'm going to ask a question to learn/understand better.. For example there is only one "Combat Shotgun" pickup on the map and i need four new pickups in order to split to new spots.. Can i destroy for example four useless cane pickups from the map and use their variables/handlers as a combat shotgun pickup? Preparing the first one is already complicated for me so preparing an "Uninstall Script" will be close to impossible 1 hour ago, OrionSR said: I usually prefer indoor armories with interiors with access points in different cities so the same pickups can be accessed in different locations around the map. Disco bars have lots of empty space. Bincos are everywhere. Safehouses, strip clubs, 24/7s, and fast food joint etc can be exploited for this purpose. I always thought the large bunker west of the desert airstrip would be a cool place for an armory. Yeah.. i literally fell in love to your "Safehouse Armory" it was perfect and esthetic .. BUT most players usually doesn't buy safehouses and it will be weird to reach an armory by entering a bar, 24/7 or fastfood restaurants.. and off course when you leave the armory with wanted level cop assholes would blast you real good Actually there are some nice carparks, where provides some privacy and it makes sense to create an armory in some designated car parks.. like rodeo hotel (LS) underground car park or visage hotel carpark (LV).. I've also liked this bunker and it would be fantastic if i enter this.. Maybe.. i mean maybe if you arrange an entrance and interior for me (for example unused doherty garage interior) i can fill this up and maybe we can put some cars too (just like gta online tuner garage) Link to comment Share on other sites More sharing options...
OrionSR Posted December 28, 2021 Share Posted December 28, 2021 3 hours ago, ArmanCan said: Can i destroy for example four useless cane pickups from the map and use their variables/handlers as a combat shotgun pickup? Yes. And if you keep track of which canes you are replacing it would be pretty easy to put them back later. The undo script isn't too tough. It's the same as your patch script expect you use the placement codes from main.scm instead of your custom pickups. You could customize the enexes to use a custom interior for armories, but that's a bit more complex that what I was suggesting at this stage. An example, weapons placed in the burgershot interior would be available at any burgershot - it's a strategy for conserving the number of pickups that need to be placed. 4 hours ago, ArmanCan said: Actually there are some nice carparks Hm... I was thinking about a rather small underground garage just off the main road through... Commerce (LS). I can't remember exactly where - red brick walls with an on the southside of an east/west road. 4 hours ago, ArmanCan said: I've also liked this bunker and it would be fantastic if i enter this.. I think the Doherty garage exists behind the walls of the garage, and looks weird if you open the door because the transparencies don't work properly outside of the cut-scenes. It's been a very long time since I've explore the interior universe, but I seem to remember a very large and empty warehouse type interior what would look appropriate for the bunker. IIRC, it's large enough to hold several vehicles. Save this idea for another iteration. The bunker interior would be better managed with a cleo script. Link to comment Share on other sites More sharing options...
ArmanCan Posted December 28, 2021 Author Share Posted December 28, 2021 7 hours ago, OrionSR said: An example, weapons placed in the burgershot interior would be available at any burgershot But there is no Burgershot at Angel Pine, Whetstone, Red County and the whole Desert 7 hours ago, OrionSR said: Commerce (LS) Commerce stands in the middle of LS and this is also great idea to reach from every direction.. I've also found a half hidden spot at El Quebrados and it will be great option. I will upload the pictures from these spots 7 hours ago, OrionSR said: but I seem to remember a very large and empty warehouse type interior what would look appropriate for the bunker. IIRC, it's large enough to hold several vehicles. Save this idea for another iteration. The bunker interior would be better managed with a cleo script. These are all unused interiors that people can use and there is an unused San Fierro Police Department where perfect to stock up ammos for this bunker except vehicles Link to comment Share on other sites More sharing options...
ArmanCan Posted December 28, 2021 Author Share Posted December 28, 2021 OrionSR 1 Link to comment Share on other sites More sharing options...
OrionSR Posted December 28, 2021 Share Posted December 28, 2021 I like your underground theme. 7 hours ago, ArmanCan said: there is an unused San Fierro Police Department where perfect to stock up ammos Oh, yeah. I was going to mention... If you don't use the SFPD interior, there are pickups in there that can be recovered for your the armory. I don't have many notes on this because we kept the pickups and implemented the SFPD at the Dillimore police station in the chain game, and added a health pickup in case players wanted to try rampaging for weapon skills or respect. This weapon spawns inside of the SF stadium where is can't be reached. 032B: $3109 = create_weapon_pickup #CUNTGUN group 15 ammo 30 at -2094.0 -488.0 36.0 This bribe spawns inside of a building object near Doherty and can't be accessed without jetpacking through gray hell. It really belongs over the broken bridge in Palomino Creek but someone added a negative sign to the X coord. 0213: $3373 = create_pickup #BRIBE type 15 at -2120.0 96.39 39.0 Link to comment Share on other sites More sharing options...
ArmanCan Posted December 30, 2021 Author Share Posted December 30, 2021 (edited) @OrionSR i think i'm ready but i still need your eagle eyes i didn't remove commas for tools and i have an qustion for you also.. in original coordinates it's shown like "2023.0" but i entered like this "2023".. Do i have to add these ".0" the end of complete/exact nummers? Spoiler {$CLEO .cs} // Grove4Life.txt 0000: 0001: wait 3000 :Loop 0001: wait 0 00D6: if 0038: $ONMISSION == 0 004D: jump_if_false @Loop 00D6: if 0ADC: test_cheat "GROVE4LIFE" 004D: jump_if_false @Loop 0ACE: show_formatted_text_box "Armories Unlocked! Have Fun.." //RBR/CG37: Remove Help Text Pickups 0215: destroy_pickup $PICKUP_INFO_HOSPITAL 0215: destroy_pickup $PICKUP_INFO_HOSPITAL_2 0215: destroy_pickup $PICKUP_INFO_POLICE 0004: $HELP_WASTED_SHOWN = 1 0004: $HELP_BUSTED_SHOWN = 1 //0215: destroy_pickup $PICKUP_INFO_CONVERSATION //0004: $HELP_CHAT_SHOWN = 1 //0215: destroy_pickup $3061 // DESTROYED AND REUSED FOR NEW PICKUPS 0215: destroy_pickup $3065 0215: destroy_pickup $3098 0215: destroy_pickup $3123 0215: destroy_pickup $3140 0215: destroy_pickup $3155 0215: destroy_pickup $3158 0215: destroy_pickup $3164 0215: destroy_pickup $3177 0215: destroy_pickup $3206 0215: destroy_pickup $3208 0215: destroy_pickup $3209 0215: destroy_pickup $3210 0215: destroy_pickup $3211 0215: destroy_pickup $3213 0215: destroy_pickup $3214 0215: destroy_pickup $3215 0215: destroy_pickup $3217 0215: destroy_pickup $3218 0215: destroy_pickup $3227 0215: destroy_pickup $3234 0215: destroy_pickup $3235 0215: destroy_pickup $3236 0215: destroy_pickup $3239 0215: destroy_pickup $3058 0215: destroy_pickup $3124 0215: destroy_pickup $3059 0215: destroy_pickup $3088 0215: destroy_pickup $3127 0215: destroy_pickup $3180 0215: destroy_pickup $3183 0215: destroy_pickup $3186 0215: destroy_pickup $3092 0215: destroy_pickup $3128 0215: destroy_pickup $3168 0215: destroy_pickup $3229 0215: destroy_pickup $3067 // DESTROYED AND RELOCATED WEAPON PICKUPS 0215: destroy_pickup $3083 0215: destroy_pickup $3106 0215: destroy_pickup $3145 0215: destroy_pickup $3223 0215: destroy_pickup $3073 0215: destroy_pickup $3052 0215: destroy_pickup $3070 0215: destroy_pickup $3131 0215: destroy_pickup $3102 0215: destroy_pickup $3151 0215: destroy_pickup $3142 0215: destroy_pickup $3086 0215: destroy_pickup $3082 0215: destroy_pickup $3119 0215: destroy_pickup $3138 0215: destroy_pickup $3046 0215: destroy_pickup $3221 0215: destroy_pickup $3133 0215: destroy_pickup $3114 0215: destroy_pickup $3154 0215: destroy_pickup $3051 0215: destroy_pickup $3075 0215: destroy_pickup $3237 0215: destroy_pickup $3101 0215: destroy_pickup $3137 0215: destroy_pickup $3044 0215: destroy_pickup $3185 0215: destroy_pickup $3148 0215: destroy_pickup $3107 0215: destroy_pickup $3143 0215: destroy_pickup $3037 0215: destroy_pickup $3245 0215: destroy_pickup $3053 0215: destroy_pickup $3039 0215: destroy_pickup $3135 0215: destroy_pickup $3231 0215: destroy_pickup $3049 0215: destroy_pickup $3171 0215: destroy_pickup $3038 0215: destroy_pickup $3110 0215: destroy_pickup $3146 0215: destroy_pickup $3048 0215: destroy_pickup $3087 0215: destroy_pickup $3103 0215: destroy_pickup $3141 0215: destroy_pickup $3043 0215: destroy_pickup $3077 0215: destroy_pickup $3042 0215: destroy_pickup $3120 0215: destroy_pickup $3176 0215: destroy_pickup $3246 0215: destroy_pickup $3074 0215: destroy_pickup $3040 0215: destroy_pickup $3233 0215: destroy_pickup $3055 0215: destroy_pickup $3116 0215: destroy_pickup $3149 0215: destroy_pickup $3054 0215: destroy_pickup $3232 0215: destroy_pickup $3117 0215: destroy_pickup $3241 0215: destroy_pickup $3045 0215: destroy_pickup $3081 0215: destroy_pickup $3134 0215: destroy_pickup $3109 0215: destroy_pickup $3216 0215: destroy_pickup $3153 0215: destroy_pickup $3115 0215: destroy_pickup $3108 0215: destroy_pickup $3035 0215: destroy_pickup $3078 0215: destroy_pickup $3079 0215: destroy_pickup $3113 0215: destroy_pickup $3050 0215: destroy_pickup $3034 0215: destroy_pickup $3093 0215: destroy_pickup $3056 0215: destroy_pickup $3032 0215: destroy_pickup $3144 0215: destroy_pickup $3057 0215: destroy_pickup $3220 0215: destroy_pickup $3084 0215: destroy_pickup $3152 0215: destroy_pickup $3099 0215: destroy_pickup $3047 0215: destroy_pickup $3169 0215: destroy_pickup $3105 0215: destroy_pickup $3118 0215: destroy_pickup $3198 0215: destroy_pickup $3111 0215: destroy_pickup $3191 0215: destroy_pickup $3197 0215: destroy_pickup $3193 0215: destroy_pickup $3066 0215: destroy_pickup $3076 0215: destroy_pickup $3033 0215: destroy_pickup $3132 0215: destroy_pickup $3112 0215: destroy_pickup $3147 0215: destroy_pickup $3036 0215: destroy_pickup $3091 0215: destroy_pickup $3207 0215: destroy_pickup $3121 0215: destroy_pickup $3165 0215: destroy_pickup $3062 0215: destroy_pickup $3095 0215: destroy_pickup $3212 0215: destroy_pickup $3125 0215: destroy_pickup $3161 0215: destroy_pickup $3247 0215: destroy_pickup $3219 0215: destroy_pickup $3096 0215: destroy_pickup $3126 0215: destroy_pickup $3167 0215: destroy_pickup $3307 0215: destroy_pickup $3329 0215: destroy_pickup $3319 0215: destroy_pickup $3335 0215: destroy_pickup $3301 0215: destroy_pickup $3368 0215: destroy_pickup $3353 0215: destroy_pickup $3373 0215: destroy_pickup $3389 0215: destroy_pickup $3350 0215: destroy_pickup $3156 0215: destroy_pickup $3172 0215: destroy_pickup $3163 0215: destroy_pickup $3175 0215: destroy_pickup $3178 0215: destroy_pickup $3181 0215: destroy_pickup $3184 0215: destroy_pickup $3104 0215: destroy_pickup $3222 0215: destroy_pickup $3244 0215: destroy_pickup $3179 0215: destroy_pickup $3182 0215: destroy_pickup $3159 0215: destroy_pickup $3080 0215: destroy_pickup $3139 0215: destroy_pickup $5237 0215: destroy_pickup $3041 0215: destroy_pickup $5240 0215: destroy_pickup $3150 0215: destroy_pickup $3085 0215: destroy_pickup $3100 0215: destroy_pickup $3136 0215: destroy_pickup $3097 0215: destroy_pickup $3166 0215: destroy_pickup $3130 0215: destroy_pickup $3330 0215: destroy_pickup $3298 0215: destroy_pickup $3314 0215: destroy_pickup $3355 0215: destroy_pickup $3387 0215: destroy_pickup $3361 0001: wait 0 032B: $3067 = create_weapon_pickup #COLT45 type 15 ammo 500 at 1512 -1470,5 10 // LOS SANTOS.. COMMERCE UNDERGROUND CARPARK 032B: $3083 = create_weapon_pickup #COLT45 type 15 ammo 500 at -1900.4 -1684 23.5 // ANGEL PINE.. JUNKYARD 032B: $3106 = create_weapon_pickup #COLT45 type 15 ammo 500 at -2187.75 -232.5 37 // SAN FIERRO.. CRACK FACTORY 032B: $3145 = create_weapon_pickup #COLT45 type 15 ammo 500 at 2638.5 -1478.9 63.3 // EL QUEBRADOS NEAR TO AMMUNATION 032B: $3223 = create_weapon_pickup #COLT45 type 15 ammo 500 at 1900 2014 8.1 // LAS VENTURAS.. VISAGE HOTEL CARPARK 032B: $3073 = create_weapon_pickup #SILENCED type 15 ammo 500 at 1514.5 -1470.5 10 LS 032B: $3061 = create_weapon_pickup #SILENCED type 15 ammo 500 at -1900.4 -1681 23.5 AP 032B: $3065 = create_weapon_pickup #SILENCED type 15 ammo 500 at -2185.25 -232.5 37 SF 032B: $3098 = create_weapon_pickup #SILENCED type 15 ammo 500 at 2638.5 -1481.4 63.3 TR 032B: $3052 = create_weapon_pickup #SILENCED type 15 ammo 500 at 1900 2017 8.1 LV 032B: $3070 = create_weapon_pickup #DESERT_EAGLE type 15 ammo 500 at 1517 -1470.5 10 LS 032B: $3131 = create_weapon_pickup #DESERT_EAGLE type 15 ammo 500 at -1900.4 -1678 23.5 AP 032B: $3102 = create_weapon_pickup #DESERT_EAGLE type 15 ammo 500 at -2182.75 -232.5 37 SF 032B: $3151 = create_weapon_pickup #DESERT_EAGLE type 15 ammo 500 at 2638.5 -1483.9 63,3 TR 032B: $3142 = create_weapon_pickup #DESERT_EAGLE type 15 ammo 500 at 1900 2021 8,1 LV 032B: $3086 = create_weapon_pickup #TEC9 type 15 ammo 1000 at 1512 -1468 10 LS 032B: $3082 = create_weapon_pickup #TEC9 type 15 ammo 1000 at -1902.4 -1684 23.5 AP 032B: $3119 = create_weapon_pickup #TEC9 type 15 ammo 1000 at -2187.75 -230 37 SF 032B: $3138 = create_weapon_pickup #TEC9 type 15 ammo 1000 at 2636 -1478.9 63.3 TR 032B: $3046 = create_weapon_pickup #TEC9 type 15 ammo 1000 at 1897 2014 8.1 LV 032B: $3221 = create_weapon_pickup #MICRO_UZI type 15 ammo 1000 at 1514.5 -1468 10 LS 032B: $3133 = create_weapon_pickup #MICRO_UZI type 15 ammo 1000 at -1902.4 -1681 23.5 AP 032B: $3114 = create_weapon_pickup #MICRO_UZI type 15 ammo 1000 at -2185.25 -230 37 SF 032B: $3154 = create_weapon_pickup #MICRO_UZI type 15 ammo 1000 at 2636 -1481.4 63.3 TR 032B: $3051 = create_weapon_pickup #MICRO_UZI type 15 ammo 1000 at 1897 2017 8.1 LV 032B: $3075 = create_weapon_pickup #MP5LNG type 15 ammo 1000 at 1517 -1468 10 LS 032B: $3237 = create_weapon_pickup #MP5LNG type 15 ammo 1000 at -1902.4 -1678 23.5 AP 032B: $3101 = create_weapon_pickup #MP5LNG type 15 ammo 1000 at -2182.75 -230 37 SF 032B: $3137 = create_weapon_pickup #MP5LNG type 15 ammo 1000 at 2636 -1483.9 63.3 TR 032B: $3044 = create_weapon_pickup #MP5LNG type 15 ammo 1000 at 1897 2021 8.1 LV 032B: $3185 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at 1512 -1465.5 10 LS 032B: $3148 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at -1904.4 -1684 23.5 AP 032B: $3107 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at -2187.75 -227.5 37 SF 032B: $3143 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at 2633.5 -1478.9 63.3 TR 032B: $3037 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at 1894 2014 8.1 LV 032B: $3245 = create_weapon_pickup #SAWNOFF type 15 ammo 500 at 1514.5 -1465.5 10 LS 032B: $3053 = create_weapon_pickup #SAWNOFF type 15 ammo 500 at -1904.4 -1681 23.5 AP 032B: $3039 = create_weapon_pickup #SAWNOFF type 15 ammo 500 at -2185.25 -227.5 37 SF 032B: $3135 = create_weapon_pickup #SAWNOFF type 15 ammo 500 at 2633.5 -1481.4 63.3 TR 032B: $3231 = create_weapon_pickup #SAWNOFF type 15 ammo 500 at 1894 2017 8.1 LV 032B: $3123 = create_weapon_pickup #SHOTGSPA type 15 ammo 500 at 1517 -1465.5 10 LS 032B: $3140 = create_weapon_pickup #SHOTGSPA type 15 ammo 500 at -1904.4 -1678 23.5 AP 032B: $3155 = create_weapon_pickup #SHOTGSPA type 15 ammo 500 at -2182.75 -227.5 37 SF 032B: $3158 = create_weapon_pickup #SHOTGSPA type 15 ammo 500 at 2633.5 -1483.9 63.3 TR 032B: $3049 = create_weapon_pickup #SHOTGSPA type 15 ammo 500 at 1894 2021 8.1 LV 032B: $3171 = create_weapon_pickup #AK47 type 15 ammo 1000 at 1512 -1463 10 LS 032B: $3038 = create_weapon_pickup #AK47 type 15 ammo 1000 at -1906.4 -1684 23.5 AP 032B: $3110 = create_weapon_pickup #AK47 type 15 ammo 1000 at -2187.75 -224 37 SF 032B: $3146 = create_weapon_pickup #AK47 type 15 ammo 1000 at 2631 -1478.9 63.3 TR 032B: $3048 = create_weapon_pickup #AK47 type 15 ammo 1000 at 1891 2014 8.1 LV 032B: $3164 = create_weapon_pickup #M4 type 15 ammo 1000 at 1514.5 -1463 10 LS 032B: $3087 = create_weapon_pickup #M4 type 15 ammo 1000 at -1906.4 -1681 23.5 AP 032B: $3103 = create_weapon_pickup #M4 type 15 ammo 1000 at -2185.25 -224 37 SF 032B: $3141 = create_weapon_pickup #M4 type 15 ammo 1000 at 2631 -1481.4 63.3 TR 032B: $3043 = create_weapon_pickup #M4 type 15 ammo 1000 at 1891 2017 8.1 LV 032B: $3077 = create_weapon_pickup #SNIPER type 15 ammo 500 at 1517 -1463 10 LS 032B: $3042 = create_weapon_pickup #SNIPER type 15 ammo 500 at -1906.4 -1678 23.5 AP 032B: $3120 = create_weapon_pickup #SNIPER type 15 ammo 500 at -2182.75 -224 37 SF 032B: $3176 = create_weapon_pickup #SNIPER type 15 ammo 500 at 2631 -1483.9 63.3 TR 032B: $3246 = create_weapon_pickup #SNIPER type 15 ammo 500 at 1891 2021 8.1 LV 032B: $3177 = create_weapon_pickup #ROCKETLA type 15 ammo 500 at 1512 -1460.5 10 LS 032B: $3074 = create_weapon_pickup #ROCKETLA type 15 ammo 500 at -1908.4 -1684 23.5 AP 032B: $3040 = create_weapon_pickup #ROCKETLA type 15 ammo 500 at -2187.75 -221.5 37 SF 032B: $3233 = create_weapon_pickup #ROCKETLA type 15 ammo 500 at 2628.5 -1478.9 63.3 TR 032B: $3055 = create_weapon_pickup #ROCKETLA type 15 ammo 500 at 1888 2014 8.1 LV 032B: $3206 = create_weapon_pickup #HEATSEEK type 15 ammo 500 at 1514.5 -1460.5 10 LS 032B: $3208 = create_weapon_pickup #HEATSEEK type 15 ammo 500 at -1908.4 -1681 23.5 AP 032B: $3116 = create_weapon_pickup #HEATSEEK type 15 ammo 500 at -2185.25 -221.5 37 SF 032B: $3149 = create_weapon_pickup #HEATSEEK type 15 ammo 500 at 2628.5 -1481.4 63.3 TR 032B: $3054 = create_weapon_pickup #HEATSEEK type 15 ammo 500 at 1888 2017 8.1 LV 032B: $3209 = create_weapon_pickup #MINIGUN type 15 ammo 2500 at 1517 -1460.5 10 LS 032B: $3232 = create_weapon_pickup #MINIGUN type 15 ammo 2500 at -1908.4 -1678 23.5 AP 032B: $3117 = create_weapon_pickup #MINIGUN type 15 ammo 2500 at -2182.75 -221.5 37 SF 032B: $3241 = create_weapon_pickup #MINIGUN type 15 ammo 2500 at 2628.5 -1483.9 63.3 TR 032B: $3045 = create_weapon_pickup #MINIGUN type 15 ammo 2500 at 1888 2021 8.1 LV 032B: $3081 = create_weapon_pickup #CUNTGUN type 15 ammo 1000 at 1512 -1458 10 LS 032B: $3134 = create_weapon_pickup #CUNTGUN type 15 ammo 1000 at -1910.4 -1684 23.5 AP 032B: $3109 = create_weapon_pickup #CUNTGUN type 15 ammo 1000 at -2187.75 -219 37 SF 032B: $3210 = create_weapon_pickup #CUNTGUN type 15 ammo 1000 at 2626 -1478.9 63.3 TR 032B: $3211 = create_weapon_pickup #CUNTGUN type 15 ammo 1000 at 1885 2014 8.1 LV 032B: $3216 = create_weapon_pickup #FLAME type 15 ammo 5000 at 1514.5 -1458 10 LS 032B: $3153 = create_weapon_pickup #FLAME type 15 ammo 5000 at -1910.4 -1681 23.5 AP 032B: $3115 = create_weapon_pickup #FLAME type 15 ammo 5000 at -2185.25 -219 37 SF 032B: $3108 = create_weapon_pickup #FLAME type 15 ammo 5000 at 2626 -1481.4 63.3 TR 032B: $3035 = create_weapon_pickup #FLAME type 15 ammo 5000 at 1885 2017 8.1 LV 032B: $3078 = create_weapon_pickup #TEARGAS type 15 ammo 250 at 1517 -1458 10 LS 032B: $3079 = create_weapon_pickup #TEARGAS type 15 ammo 250 at -1910.4 -1678 23.5 AP 032B: $3113 = create_weapon_pickup #TEARGAS type 15 ammo 250 at -2182.75 -219 37 SF 032B: $3050 = create_weapon_pickup #TEARGAS type 15 ammo 250 at 2626 -1483.9 63.3 TR 032B: $3034 = create_weapon_pickup #TEARGAS type 15 ammo 250 at 1885 2021 8.1 LV 032B: $3093 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at 1520.5 -1470.5 10 LS 032B: $3056 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at -1912.4 -1684 23.5 AP 032B: $3032 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at -2187.75 -216.5 37 SF 032B: $3144 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at 2623.5 -1478.9 63.3 TR 032B: $3057 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at 1882 2014 8.1 LV 032B: $3220 = create_weapon_pickup #GRENADE type 15 ammo 250 at 1523 -1470.5 10 LS 032B: $3084 = create_weapon_pickup #GRENADE type 15 ammo 250 at -1912.4 -1681 23.5 AP 032B: $3152 = create_weapon_pickup #GRENADE type 15 ammo 250 at -2185.25 -216.5 37 SF 032B: $3099 = create_weapon_pickup #GRENADE type 15 ammo 250 at 2623.5 -1481.4 63.3 TR 032B: $3047 = create_weapon_pickup #GRENADE type 15 ammo 250 at 1882 2017 8.1 LV 032B: $3169 = create_weapon_pickup #SATCHEL type 15 ammo 250 at 1525.5 -1470.5 10 LS 032B: $3105 = create_weapon_pickup #SATCHEL type 15 ammo 250 at -1912.4 -1678 23.5 AP 032B: $3118 = create_weapon_pickup #SATCHEL type 15 ammo 250 at -2182.75 -216.5 37 SF 032B: $3213 = create_weapon_pickup #SATCHEL type 15 ammo 250 at 2623.5 -1483.9 63.3 TR 032B: $3214 = create_weapon_pickup #SATCHEL type 15 ammo 250 at 1882 2021 8.1 LV 032B: $3198 = create_weapon_pickup #CAMERA type 15 ammo 250 at 1520.5 -1468 10 LS 032B: $3111 = create_weapon_pickup #CAMERA type 15 ammo 250 at -1914.4 -1684 23.5 AP 032B: $3191 = create_weapon_pickup #CAMERA type 15 ammo 250 at -2187.75 -214 37 SF 032B: $3197 = create_weapon_pickup #CAMERA type 15 ammo 250 at 2621 -1478.9 63.3 TR 032B: $3193 = create_weapon_pickup #CAMERA type 15 ammo 250 at 1879 2014 8.1 LV 032B: $3215 = create_weapon_pickup #SPRAYCAN type 15 ammo 2500 at 1523 -1468 10 LS 032B: $3217 = create_weapon_pickup #SPRAYCAN type 15 ammo 2500 at -1914.4 -1681 23.5 AP 032B: $3066 = create_weapon_pickup #SPRAYCAN type 15 ammo 2500 at -2185.25 -214 37 SF 032B: $3076 = create_weapon_pickup #SPRAYCAN type 15 ammo 2500 at 2621 -1481.4 63.3 TR 032B: $3033 = create_weapon_pickup #SPRAYCAN type 15 ammo 2500 at 1879 2017 8.1 LV 032B: $3218 = create_weapon_pickup #FIRE_EX type 15 ammo 5000 at 1525.5 -1468 10 LS 032B: $3132 = create_weapon_pickup #FIRE_EX type 15 ammo 5000 at -1914.4 -1678 23.5 AP 032B: $3112 = create_weapon_pickup #FIRE_EX type 15 ammo 5000 at -2182.75 -214 37 SF 032B: $3147 = create_weapon_pickup #FIRE_EX type 15 ammo 5000 at 2621 -1483.9 63.3 TR 032B: $3036 = create_weapon_pickup #FIRE_EX type 15 ammo 5000 at 1879 2021 8.1 LV Pickup.Create($3091, #CHNSAW, 15, 1520.5, -1465.5, 10) LS Pickup.Create($3207, #CHNSAW, 15, -1916.4, -1684, 23.5) AP Pickup.Create($3121, #CHNSAW, 15, -2187.75, -211.5, 37) SF Pickup.Create($3165, #CHNSAW, 15, 2618.5, -1478.9, 63.3) TR Pickup.Create($3062, #CHNSAW, 15, 1876, 2014, 8.1) LV Pickup.Create($3095, #KATANA, 15, 1523, -1465.5, 10) LS Pickup.Create($3212, #KATANA, 15, -1916.4, -1681, 23.5) AP Pickup.Create($3125, #KATANA, 15, -2185.25, -211.5, 37) SF Pickup.Create($3161, #KATANA, 15, 2618.5, -1481.4, 63.3) TR Pickup.Create($3247, #KATANA, 15, 1876, 2017, 8.1) LV Pickup.Create($3219, #BRASSKNUCKLE, 15, 1525.5, -1465.5, 10) LS Pickup.Create($3096, #BRASSKNUCKLE, 15, -1916.4, -1678, 23.5) AP Pickup.Create($3126, #BRASSKNUCKLE, 15, -2182.75, -211.5, 37) SF Pickup.Create($3167, #BRASSKNUCKLE, 15, 2618.5, -1483.9, 63.3) TR Pickup.Create($3227, #BRASSKNUCKLE, 15, 1876, 2021, 8.1) LV Pickup.Create($3307, #BODYARMOUR, 15, 1520.5, -1463, 10) LS Pickup.Create($3329, #BODYARMOUR, 15, -1918.4, -1684, 23.5) AP Pickup.Create($3319, #BODYARMOUR, 15, -2187.75, -209, 37) SF Pickup.Create($3335, #BODYARMOUR, 15, 2616, -1478.9, 63.3) TR Pickup.Create($3301, #BODYARMOUR, 15, 1873, 2014, 8.1) LV Pickup.Create($3234, #HEALTH, 15, 1523, -1463, 10) LS Pickup.Create($3235, #HEALTH, 15, -1918.4, -1681, 23.5) AP Pickup.Create($3236, #HEALTH, 15, -2185.25, -209, 37) SF Pickup.Create($3239, #HEALTH, 15, 2616, -1481.4, 63.3) TR Pickup.Create($3058, #HEALTH, 15, 1873, 2017, 8.1) LV Pickup.Create($3368, #BRIBE, 15, 1525.5, -1463, 10) LS Pickup.Create($3353, #BRIBE, 15, -1918.4, -1678, 23.5) AP Pickup.Create($3373, #BRIBE, 15, -2182.75, -209, 37) SF Pickup.Create($3389, #BRIBE, 15, 2616, -1483.9, 63.3)TR Pickup.Create($3350, #BRIBE, 15, 1873, 2021, 8.1) LV Pickup.Create($3124, #GUN_PARA, 15, 1520.5, -1460.5, 10) LS Pickup.Create($3156, #GUN_PARA, 15, -1920.4, -1684, 23.5) AP Pickup.Create($3172, #GUN_PARA, 15, -2187.75, -206.5, 37) SF Pickup.Create($3163, #GUN_PARA, 15, 2613.5, -1478.9, 63.3) TR Pickup.Create($3175, #GUN_PARA, 15, 1870, 2014, 8.1) LV 032B: $3059 = create_weapon_pickup #NVGOGGLES type 15 ammo 1 at 1523 -1460.5 10 LS 032B: $3088 = create_weapon_pickup #NVGOGGLES type 15 ammo 1 at -1920.4 -1681 23.5 AP 032B: $3127 = create_weapon_pickup #NVGOGGLES type 15 ammo 1 at -2185.25 -206.5 37 SF 032B: $3180 = create_weapon_pickup #NVGOGGLES type 15 ammo 1 at 2613.5 -1481.4 63.3 TR 032B: $3183 = create_weapon_pickup #NVGOGGLES type 15 ammo 1 at 1870 2017 8.1 LV 032B: $3186 = create_weapon_pickup #IRGOGGLES type 15 ammo 1 at 1525.5 -1460.5 10 LS 032B: $3092 = create_weapon_pickup #IRGOGGLES type 15 ammo 1 at -1920.4 -1678 23.5 AP 032B: $3128 = create_weapon_pickup #IRGOGGLES type 15 ammo 1 at -2182.75 -206.5 37 SF 032B: $3168 = create_weapon_pickup #IRGOGGLES type 15 ammo 1 at 2613.5 -1483.9 63.3 TR 032B: $3229 = create_weapon_pickup #IRGOGGLES type 15 ammo 1 at 1870 2021 8.1 LV 032B: $3178 = create_weapon_pickup #COLT45 type 15 ammo 500 at 2469.8 -1974.75 15 // LOS SANTOS.. NEAR EMMET'S PLACE 032B: $3181 = create_weapon_pickup #COLT45 type 15 ammo 500 at -2112.8 -2412.3 31.8 // ANGEL PINE.. BEHIND OF FURNITURE STORE 032B: $3184 = create_weapon_pickup #COLT45 type 15 ammo 500 at 219.5 -227 2.3 // BLUEBERRY.. SMALL UNFINISHED PLACE 032B: $3104 = create_weapon_pickup #TEC9 type 15 ammo 1000 at 2474.1 -1974.75 13.9 GS 032B: $3222 = create_weapon_pickup #TEC9 type 15 ammo 1000 at -2114.9 -2409.8 31.8 AP 032B: $3244 = create_weapon_pickup #TEC9 type 15 ammo 1000 at 216.5 -227 2.3 BB 032B: $3179 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at 2478.6 -1974.75 15 GS 032B: $3182 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at -2115.9 -2416.1 31.8 AP 032B: $3159 = create_weapon_pickup #CHROMEGUN type 15 ammo 500 at 213.5 -227 2.3 BB 032B: $3080 = create_weapon_pickup #AK47 type 15 ammo 1000 at 2484.8 -1974.75 16.3 GS 032B: $3139 = create_weapon_pickup #AK47 type 15 ammo 1000 at -2114.4 -2414.2 31.8 AP 032B: $5237 = create_weapon_pickup #AK47 type 15 ammo 1000 at 219.5 -230 2.3 BB 032B: $3041 = create_weapon_pickup #SNIPER type 15 ammo 500 at 2489.1 -1974.75 17.1 GS 032B: $5240 = create_weapon_pickup #SNIPER type 15 ammo 500 at -2116.5 -2411.9 31.8 AP 032B: $3150 = create_weapon_pickup #SNIPER type 15 ammo 500 at 216.5 -230 2.3 BB 032B: $3085 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at 2493.8 -1974.75 16.3 GS 032B: $3100 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at -2118.8 -2410.6 31.8 AP 032B: $3136 = create_weapon_pickup #MOLOTOV type 15 ammo 250 at 213.5 -230 2.3 BB Pickup.Create($3097, #CHNSAW, 15, 2499.2, -1974.75, 15) GS Pickup.Create($3166, #CHNSAW, 15, -2115.9, -2416.1, 31.8) AP Pickup.Create($3130, #CHNSAW, 15, 219.5, -233, 2.3) BB Pickup.Create($3330, #BODYARMOUR, 15, 2504.1, -1974.75, 13.9) GS Pickup.Create($3298, #BODYARMOUR, 15, -2118.3, -2114.3, 31.8) AP Pickup.Create($3314, #BODYARMOUR, 15, 216.5, -233, 2.3) BB Pickup.Create($3355, #BRIBE, 15, 2508.4, -1974.75, 15) GS Pickup.Create($3387, #BRIBE, 15, -2120.4, -2412.5, 31.8) AP Pickup.Create($3361, #BRIBE, 15, 213.5, -233, 2.3) BB 0A93: terminate_this_custom_script Edited January 2, 2022 by ArmanCan Link to comment Share on other sites More sharing options...
OrionSR Posted December 30, 2021 Share Posted December 30, 2021 (edited) 2 hours ago, ArmanCan said: Do i have to add these ".0" Apples and Oranges: Yes. The decimal points are critical. Without the decimal point the value is encoded as an integer. Only whole numbers are allowed, the values are accurate, but limited in range. With the decimal point the value is encoded with the IEEE-754 floating-point format. Floating point values can be very large or very small but are not completely accurate. You will get erroneous results if you use the incorrect number format in an opcode or try to mix integers and floats in math operations. I intend edit this post with additional notes. //0215: destroy_pickup $PICKUP_INFO_CONVERSATION //0004: $HELP_CHAT_SHOWN = 1 //0215: destroy_pickup $3061 // DESTROYED AND REUSED FOR NEW PICKUPS Lines that start will a double-slash are comments and won't be executed. I'm not sure if you wanted to delete the conversation icon - it would make sense to keep the notes as comments. But the $3061 pickup is being reused for the AP silencer. 032B: $3223 = create_weapon_pickup #COLT45 type 15 ammo 500 at 1900 2014 8.1 // LAS VENTURAS.. VISAGE HOTEL CARPARK 032B: $3073 = create_weapon_pickup #SILENCED type 15 ammo 500 at 1514.5 -1470.5 10 LS Comments added to the end of the line should be preceded with a double-slash. In the example above, the $3223 line uses the correct format. In the $3073 line the "LS" will probably be ignored by Sanny as a descriptor, like type, ammo and at. Without the double slash to denote the comment you might run into conflicts with reserved keywords or defined constants. Still reviewing your script... Edited December 30, 2021 by OrionSR Link to comment Share on other sites More sharing options...
ArmanCan Posted December 30, 2021 Author Share Posted December 30, 2021 12 minutes ago, OrionSR said: Without the decimal point the value is encoded as an integer. Only whole numbers are allowed, the values are accurate, but limited in range. With the decimal point the value is encoded with the IEEE-754 floating-point format. Floating point values can be very large or very small but are not completely accurate. You will get erroneous results if you use the incorrect number format in an opcode or try to mix integers and floats in math operations. well sh*t.. you are talking weird and scientific sh*t again anyway i' going to add ".0" to certain values of coordinates.. i will also delete these.. "LS-AP-BB-SF-TR-LV".. These were information purpose only Link to comment Share on other sites More sharing options...
OrionSR Posted December 30, 2021 Share Posted December 30, 2021 14 minutes ago, ArmanCan said: i will also delete these.. "LS-AP-BB-SF-TR-LV".. These were information purpose only Noooo! Well... Okay, if you want. But if you wanted to develop the script into a version that only created the pickups when CJ is near the comments would be useful for sorting the pickups into their location groups. I suspect that you are anxious to finish the current script and aren't looking for more challenges just yet, but maybe, someday, you'll wish you still had the comments. I don't see any other obvious problems with the script. The only thing that concerns me is; that's an awful lot of pickups. Are you confident that the global variables of all of the destroyed pickups are only used once in the entire main.scm script, and that all were created during the intro missions? 35 minutes ago, ArmanCan said: you are talking weird and scientific Deal with it. Integers and floats don't mix. But I'll spare you the explanation involving bits, bytes and hexadecimal numbers encoded in little endian format. 5.0 / 2.0 = 2.5 5 / 2 = 2 5.0 / 2 = garbage And finally, the comments that I should have opened with; all the stuff you did well. I really like how you expanded the beginning of the script. Suggested filename, check. On Mission check, done. Cheat string trigger and loop, awesome. And the text box (with sound) indicating that the script has been activated, well done. If fact, it looks like you borrowed liberally from other scripts I've posted, nice work. Link to comment Share on other sites More sharing options...
ArmanCan Posted December 30, 2021 Author Share Posted December 30, 2021 (edited) 43 minutes ago, OrionSR said: Are you confident that the global variables of all of the destroyed pickups are only used once in the entire main.scm script, and that all were created during the intro missions? I created HEALTH, NV/IRGOGGLES from the stratch but using standart pickups variables for example destroying shovel.. Appr. they were only 25-30 new pickups so it was easy to check it Talking about "Uninstall Script" There was a gathered pickup section in "main.scm" (Studio/Police Station pickups also) and i've only copied these so i can create a "Destroy/Relocate" command by transfering all default pickup values (without beating myself with tracking these stupid variables) and revert the whole progress completely. I've also checked every weapon pickups by travelling around San Andreas with "Coordinates Finder" so these are only standart pickups during intro missions.. EDIT: I forgot to mention.. i've copied information pickup's remove commands from you and i didn't touch any other variables for example "Give player #DILDO $6969 type 3 ammo 1 at....." i was careful about this 43 minutes ago, OrionSR said: And finally, the comments that I should have opened with; all the stuff you did well. I really like how you expanded the beginning of the script. Suggested filename, check. On Mission check, done. Cheat string trigger and loop, awesome. And the text box (with sound) indicating that the script has been activated, well done. If fact, it looks like you borrowed liberally from other scripts I've posted, nice work. Typing a cheat is the safest method for me and as i said before i'm not modder i'm just doing this as a hobby so i borrowed these commands from you.. This is actually your script OrionSR.. i'm always learning new things from you Edited December 30, 2021 by ArmanCan OrionSR 1 Link to comment Share on other sites More sharing options...