spaceeinstein Posted March 2, 2017 Share Posted March 2, 2017 (edited) Introduction Potent Tear Gas is a modification for Grand Theft Auto: Vice City utilizing the CLEO Library. In the standard PC version of the game, the tear gas weapon is unavailable and its effect is ineffective if you manage to obtain one. This mod replaces the grenade weapon pickup behind the VCPD HQ with the tear gas and allows the tear gas to be more potent. You can modify the potency of the tear gas by editing SETearGas.dat, a plain text file, and changing the decimal number in line 1. This mod uses the number 5.0 and the base game uses the number 1.0. Bonus feature: any law enforcers affected by the gas will increase your wanted level. You can toggle the bonus feature off or on by editing SETearGas.dat and changing the number in line 2. Use 0 for off and 1 for on. Installation Download the mod at GTAGarage. If you are unable to open SETearGas.rar, rename the file to SETearGas.zip. Download CLEO for Vice City at http://cleo.li/. From the CLEO download, copy VC.CLEO.asi into Vice City's folder. If CLEO.asi already exists in the folder, you must delete that file. From this mod download, place the CLEO folder containing SETearGas.cs and SETearGas.dat into Vice City's folder. This mod has been tested only on VC v1.00 US. Video Source Sanny Builder constSTRUCT_BEGIN = 0x945D30STRUCT_SIZE = 0x34INDEX = [email protected]_VAR = [email protected]_LOCATION = [email protected]_ELEMENT = [email protected]_ENTITY = [email protected]_MODEL = [email protected]_ENTITY = [email protected]_OFFSET = [email protected]_FVAR = [email protected] : intTEMP_VAR : intPICKUP_LOCATION : intSTRUCT_ELEMENT : intPICKUP_ENTITY : intPICKUP_MODEL : intTEMP_FVAR : floatend0247: request_model #TEARGAS038B: load_requested_modelswait 10000AC6: LABEL_OFFSET = label @HEX_VALUE offset0A8C: write_memory 0x4D4ED6 size 4 val LABEL_OFFSET virtual_protect 1 // make gas more potent0A8C: write_memory 0x4D4E0F size 4 val 0x90909090 virtual_protect 1 // allows anyone to get damaged by it0A8C: write_memory 0x4D4E13 size 2 val 0x9090 virtual_protect 1INDEX = 00A8C: write_memory 0x4D4ECE size 1 value 0xE9 virtual_protect 1 // jmp0AC6: LABEL_OFFSET = label @HEX_CODE offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source 0x4D4ECF target LABEL_OFFSET0AC6: LABEL_OFFSET = label @UPDATEWANTEDLEVEL offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x4D2110 // UpdateWantedLevel0AC6: LABEL_OFFSET = label @JMP offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x4D4ED4while if INDEX 362.0 TEMP_FVAR -501.0 TEMP_FVAR 12.0 TEMP_FVAR GTA3script {LVAR_INT index, temp_var, pickup_location, struct_element, pickup_entity, pickup_model, object_entity, label_offsetLVAR_FLOAT temp_fvarREQUEST_MODEL TEARGASLOAD_ALL_MODELS_NOWWAIT 1000GET_LABEL_POINTER hex_value label_offsetWRITE_MEMORY 0x4D4ED6 4 label_offset 1 // make gas more potentWRITE_MEMORY 0x4D4E0F 4 0x90909090 1 // allows anyone to get damaged by itWRITE_MEMORY 0x4D4E13 2 0x9090 1index = 0WRITE_MEMORY 0x4D4ECE 1 0xE9 1 // jmpGET_LABEL_POINTER hex_code label_offsetCLEO_CALL relative_address 0 0x4D4ECF label_offsetGET_LABEL_POINTER updatewantedlevel label_offsetCLEO_CALL relative_address 0 label_offset 0x4D2110 // UpdateWantedLevelGET_LABEL_POINTER jmp label_offsetCLEO_CALL relative_address 0 label_offset 0x4D4ED4WHILE index 362.0 AND temp_fvar -501.0 AND temp_fvar 12.0 AND temp_fvar Thanks to piko and Jitterdoomer for suggesting that the player should get a wanted level when using the tear gas, and Mugetsuga for suggesting an option to change the potency. Edited July 22, 2017 by spaceeinstein Ruvix, Dominik_, Vishnuka and 18 others 20 1 Link to comment Share on other sites More sharing options...
Blackbird88 Posted March 2, 2017 Share Posted March 2, 2017 Very very nice! VCLF will love this Igor Bogdanoff and Rachel Amber 2 Link to comment Share on other sites More sharing options...
inadequate Posted March 2, 2017 Share Posted March 2, 2017 Nice. will sh*t his pants in 3, 2, 1... Igor Bogdanoff and Rachel Amber 2 Link to comment Share on other sites More sharing options...
Igor Bogdanoff Posted March 2, 2017 Share Posted March 2, 2017 Very very nice! VCLF will love this Nice. will sh*t his pants in 3, 2, 1... Can confirm. Rachel Amber 1 Link to comment Share on other sites More sharing options...
gts. Posted March 2, 2017 Share Posted March 2, 2017 Great. Just you forgot to add the source code to the post as always. Rachel Amber and Blackbird88 2 Link to comment Share on other sites More sharing options...
spaceeinstein Posted March 2, 2017 Author Share Posted March 2, 2017 I updated the post with the source code. Igor Bogdanoff, Silent and Blackbird88 3 Link to comment Share on other sites More sharing options...
piko Posted March 6, 2017 Share Posted March 6, 2017 Nice one, but it still doesn't give me a wanted level which makes it kinda overpowered Link to comment Share on other sites More sharing options...
Igor Bogdanoff Posted March 6, 2017 Share Posted March 6, 2017 It behaves like normal weapon, aka some cop has to see you. Link to comment Share on other sites More sharing options...
Silent Posted March 6, 2017 Share Posted March 6, 2017 (edited) You're writing a pointer to a float inside the script itself and then terminating it but I'm not really sure if the script gets deleted on termination or not - you might have to make it spin in an idle loop just to be safer? At least that's why (I think) CBO for SA is totally broken. Edited March 6, 2017 by Silent dkluin 1 Link to comment Share on other sites More sharing options...
Jitterdoomer Posted March 6, 2017 Share Posted March 6, 2017 At least the tear gas on this version wasn't as laggy as the PS2 version. Can you add something where if you kill a cop with the tear gas, you'll get another wanted star like every other weapons in the game? Link to comment Share on other sites More sharing options...
spaceeinstein Posted March 7, 2017 Author Share Posted March 7, 2017 @Silent, I hadn't thought of that possibility. I'll add a loop in the next update. @piko and Jitterdoomer, I could make your wanted level to be set to a minimum of one if the gas affects a cop. piko 1 Link to comment Share on other sites More sharing options...
spaceeinstein Posted April 10, 2017 Author Share Posted April 10, 2017 Version 2 is released! Any law enforcers affected by the gas will increase your wanted level. Igor Bogdanoff 1 Link to comment Share on other sites More sharing options...
Mugetsuga Posted April 12, 2017 Share Posted April 12, 2017 That's nice to see the tear gas do damages again, but they are too deadly. Right now the damages are between 24 and 27. On PS2, the damages were between 2 and 5. LaDiDa 1 Link to comment Share on other sites More sharing options...
spaceeinstein Posted April 12, 2017 Author Share Posted April 12, 2017 The PS2 version being weak is why I made the tear gas more potent. I didn't intend to replicate it. Do you want an option to change how much it damages? Blackbird88, Marsi4eg, Igor Bogdanoff and 1 other 4 Link to comment Share on other sites More sharing options...
Mugetsuga Posted April 12, 2017 Share Posted April 12, 2017 I see. Yes, I would like an option like that. Marsi4eg and Rachel Amber 2 Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 11, 2017 Author Share Posted July 11, 2017 (edited) Version 3 is up. You can now modify the potency of the tear gas by changing the number in SETearGas.dat, a plain text file. The value used for this mod is 5.0 and the value used by the base game is 1.0. Edited July 12, 2017 by spaceeinstein Mugetsuga, Blackbird88, Marsi4eg and 2 others 5 Link to comment Share on other sites More sharing options...
gts. Posted July 12, 2017 Share Posted July 12, 2017 What value is in the original PS2 version? Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 12, 2017 Author Share Posted July 12, 2017 (edited) It should be 1.0 also. Edited July 12, 2017 by spaceeinstein Rachel Amber 1 Link to comment Share on other sites More sharing options...
Rachel Amber Posted July 12, 2017 Share Posted July 12, 2017 its not approved yet ask Kalvin to do it Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 12, 2017 Author Share Posted July 12, 2017 (edited) The website thinks the particular file has a virus (does a virus even fit in such a small size?). Check the status of the issue here. Edited July 12, 2017 by spaceeinstein LaDiDa and Rachel Amber 2 Link to comment Share on other sites More sharing options...
Rachel Amber Posted July 12, 2017 Share Posted July 12, 2017 Well Kalvin Is a Moderator on GTA Garage so he might approve it Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 12, 2017 Author Share Posted July 12, 2017 I think Kalvin is well aware of the issue if you followed the link. If the update is what you actually want, I uploaded the file on my site here. Jinx. and Rachel Amber 2 Link to comment Share on other sites More sharing options...
Rachel Amber Posted July 12, 2017 Share Posted July 12, 2017 (edited) Thanks anyway just some question any way to port this into .asi in a feathure? Edited July 12, 2017 by NOskillx Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 12, 2017 Author Share Posted July 12, 2017 What's the difference between CLEO and ASI for you? Link to comment Share on other sites More sharing options...
Rachel Amber Posted July 12, 2017 Share Posted July 12, 2017 just asking because i don't use cleo really i only stick to .asi mods + they more stable but yeah ok if no plans for asi version , i will use cleo one its still nice after all Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 12, 2017 Author Share Posted July 12, 2017 Any mod regardless of its type can be unstable if the person developing it doesn't make sure it is stable. All my recent CLEO mods should be generally stable. Rachel Amber and Blackbird88 2 Link to comment Share on other sites More sharing options...
gts. Posted July 12, 2017 Share Posted July 12, 2017 Any mod regardless of its type can be unstable if the person developing it doesn't make sure it is stable. All my recent CLEO mods should be generally stable. Or that the person doesn't know what he's doing. Rachel Amber 1 Link to comment Share on other sites More sharing options...
Marsi4eg Posted July 12, 2017 Share Posted July 12, 2017 PS2 value is 0.7. It decreases health by 2-4 points. But killing a cop doesn't give 3 stars on PS2. Need another setting for this... Rachel Amber 1 Link to comment Share on other sites More sharing options...
spaceeinstein Posted July 13, 2017 Author Share Posted July 13, 2017 (edited) The tear gas should not have immediately given you three stars. I'm releasing Version 4 for those who want to turn off the bonus feature. Change the number in line 2 to 0 to turn it off. Edited July 13, 2017 by spaceeinstein Rachel Amber, Igor Bogdanoff, Marsi4eg and 1 other 4 Link to comment Share on other sites More sharing options...
Marsi4eg Posted July 13, 2017 Share Posted July 13, 2017 The tear gas should not have immediately given you three stars. I'm releasing Version 4 for those who want to turn off the bonus feature. Change the number in line 2 to 0 to turn it off. Wow, thank you very much. Your mod is awesome Rachel Amber 1 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