-
GAS Grenade For COD2 MP
Hi, someone have Gas Grenade mod for COD2 ? I know the Merciless MatadoR have it, but I can not cut it from this mod.
In MatadoR mod i have found a file on weapon folder "smoke_grenade_german_mp2" - this is Gas Grenade, but does not work correctly, not have damage, vomiting sound and yellow smoke quickly disappears..
-
2 Attachment(s)
I begin to disassemble this mod, its differently have this grenade is no possibility. As an experiment i deleted
moke_grenade_german_mp2,
smoke_grenade_german_mp,
GASGrenadeallies_mp,
GASGrenadeaxis_mp
and gas grenede STILL work in game, I think it's in scripts who are responsible for this.
I look in _weapons.gsc but not find script responsible for function
This is IWD have all folders and files for grenade but without script for damage
https://drive.google.com/open?id=1dD...4YFjg1fD2fYGRq
-
1 Attachment(s)
This is IWD with other folders and files. In these folder I think there is a script for damage function
https://drive.google.com/open?id=1Em...EpKPdEzGZeVV9z
Both IWDs work. I divided them in half to make it easier to search. Gas Grenade to be in Germany team like Smoke grenade.
I want to add a script to the first IWD, since it has all the files to load except the script for damage
-
Someone have idea, where i can to look a file for damage function ? Sorry for a maybe stupid question but i not have experience and no one else to ask for help
-
Open your weapons/mp/smoke_grenade_american_mp (or whatever your filename is) and search for "damage" in Notepad++ and replace it all with 0:
Code:
damage\0\meleeDamage\50\explosionRadius\0\explosionInnerDamage\0\explosionOuterDamage\0\
meleeDamage doesn't need to be 0, but shouldn't matter
-
Thank you! I just tested, but this method does not quite work correctly. This is not exectly what i need
In merc2V3_4pb2.iwd (2 upload link) When the smoke comes the health is leaving for little by little. Gas grenade does not take health (not work) like as frag_grenade, he has another act (function)
In any case, it need to look for script for this gas grenade. I can not guess where it can be written in files
-
Ah, I see, slow death by gas grenade script. I can't open the files on Google Drive, so use GitHub or something
-
This is 2-nd iwd with scripts. You can placed in main folder cod2 if you wont to look GasGrenade at work. It's need take team Germany, engineer class
Link:
https://oldbrowser.files.fm/u/qsw78zrd
1-st iwd i upload across 15 min. I have bad upload speed, only 60KB/s. First iwd include all file for gasgrenade for work but i did not delete unnecessary, yet. I'll figure it out later, it's not difficult.
1-st IWD Link:
https://oldbrowser.files.fm/u/49x7bs75
or here full mod:
http://www.moddb.com/downloads/merci...a-full-release
-
Use libcod, check for the callback_grenadefire or something, check for weapon name, make area effect around its origin.
Keep in mind that killcam warp forward is hardcoded to the smoke fx though, so you might end up with a bunch of smoke in your map after a killcam ends.
-
I deleted from iwd _callbacksetup.gsc because i checked, and gas grenade work without this gsc. I deleted superfluous files in hope that I will find the necessary..otherwise I do not know how
in callback file unclear what does grenade use
If this mod not have another class structure (HUD Elemets)for teams and I would have found differences and would have guessed what it is necessary to cut and add to usual Cod2