Page 1 of 8 123 ... LastLast
Results 1 to 10 of 73

Thread: GAS Grenade For COD2 MP

  1. #1
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts

    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. The Following User Says Thank You to G-Stuff002 For This Useful Post:

    kubislav23 (19th February 2018)

  3. #2
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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

    Spoiler:
    Click image for larger version. 

Name:	1.jpg 
Views:	49 
Size:	136.1 KB 
ID:	1397


    Spoiler:
    Click image for larger version. 

Name:	2.jpg 
Views:	47 
Size:	289.9 KB 
ID:	1398

  4. #3
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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

    Spoiler:
    Click image for larger version. 

Name:	damage.jpg 
Views:	45 
Size:	447.9 KB 
ID:	1399



    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
    Last edited by G-Stuff002; 20th February 2018 at 17:14.

  5. #4
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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

  6. The Following User Says Thank You to G-Stuff002 For This Useful Post:

    kubislav23 (20th February 2018)

  7. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    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
    timescale 0.01

  8. The Following User Says Thank You to kung foo man For This Useful Post:

    G-Stuff002 (20th February 2018)

  9. #6
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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
    Last edited by G-Stuff002; 20th February 2018 at 17:57.

  10. #7
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Ah, I see, slow death by gas grenade script. I can't open the files on Google Drive, so use GitHub or something
    timescale 0.01

  11. #8
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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
    Last edited by G-Stuff002; 21st February 2018 at 00:37.

  12. #9
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    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.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  13. #10
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    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
    Last edited by G-Stuff002; 21st February 2018 at 10:39.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •