Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: KNIFE MOD

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

    KNIFE MOD

    Hello,

    i added a knife from 'Demon Mod' in zz_allcustom_v1.iwd (moved with all the necessary files) everything works fine but no animation on the flying knife.


    Many thanks to Tally for this great knife mod


    I have a issue, what i should do whit script for 'Visible Knife Fly' for split with my _weapon.gsc

    What I'm stuck with right now:

    1. I moved to zz_allcustom_v1.iwd "demon" folder with _knife.gsc file

    2. In _knife.gsc deleted this code #include demon\_utils; (because I did not find any scripts for the flight)

    3. And i added in zz_allcustom_v1.iwd - maps/mp/gametypes/_weapons.gsc this code:


    I added in that Split order:


    }
    }

    detectWeaponChange()
    {
    while( isAlive( self ) )
    {
    self waittill( "weapon_change", newWeapon, oldWeapon );

    if( !maps\mp\gametypes\_utils::isWeaponType( "mg", newWeapon ) )
    {
    if( isDefined( self.turretHintHud ) )
    self.turretHintHud.alpha = 0;

    if( newWeapon == "knife_mp" )
    self thread demon\_knife::init_knife();
    else
    self notify( "stop_knife" );

    }

    }
    }


    What i has turned out: i see a flying knife just at the very end (at the end of the flight) it's all...


    This is my _weapon.gsc:
    Spoiler:


    This is with knife fly _weapon.gsc:
    Spoiler:



    This included
    Spoiler:


    This i was deleted
    Spoiler:
    Last edited by G-Stuff002; 6th March 2018 at 11:12.

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Given your code (i had a quick look) the knife doesnt do any damage while flying.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    I do not even know where to look more..

  4. #4
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    I returned In _knife.gsc this code #include demon\_utils;

    Found some necessary codes like: (GetStance(), bulletTrace, iMaxDamage - iMinDamage) and deleted all other _utilsGSC.txt

    But _utils.gsc redirect to zz_allcustom_v1.iwd\maps\mp\gametypes\_class.gsc. I added from Demon Mod and edited it. Here i found Damage Modifier _class.GSC.txt


    Not properly edited..got 'bad syntax'

  5. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by IzNoGoD View Post
    Given your code (i had a quick look) the knife doesnt do any damage while flying.
    The knife weapon file fires "invisible" bullets to kill players/bots. There is a script which runs an animated knife model, which rotates in the air, but this is mere cosmetics. Its the knife weapon file which actually kills. It's just that it has no muzzle flash or sound we normally associate with a weapon fired in COD.
    Last edited by Tally; 6th March 2018 at 14:43.

  6. #6
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    What did i miss, for visible flight of a knife ? I do not see rotates in the air

  7. #7
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Please see attachment.

    1. If you want to increase the range of the knife's kill zone, edit the knife_mp weapon file and adjust the minDamageRange and maxDamageRange values. They are currently set to the same kill zone as a pistol weapon. But you might want to increase this range to something like 800:

    Code:
    maxDamageRange = 800
    minDamageRange = 800
    2. The knife mod works by having increase damage (it is currently set to 150 making it a one-shot-kill weapon). Because it has no fire sound, and no muzzle flash FX, it shoots players/bots "invisibly". But it is basically working just the same way all other weapons do.

    3. The rotating knife flying through the air towards your victims is purely cosmetic. But you should get that every time you "throw" the knife at someone. If you don't, then you aren't threading to the required function properly. To fix that, learn how to code and mod for COD!
    Attached Files Attached Files

  8. The Following 2 Users Say Thank You to Tally For This Useful Post:

    G-Stuff002 (6th March 2018),kung foo man (6th March 2018)

  9. #8
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    knife_mod.zip did not help, I already have include all these files.

    Thanks but I can not fix myself

    Can I upload on filehosting.org mod for you?
    Last edited by G-Stuff002; 6th March 2018 at 15:24.

  10. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by G-Stuff002 View Post
    knife_mod.zip did not help, I already have include all these files.

    Thanks but I can not fix myself

    Can I upload on filehosting.org mod for you?
    Yeah, upload it and I'll have a quick look.

  11. #10
    Private First Class G-Stuff002's Avatar
    Join Date
    Jan 2018
    Posts
    212
    Thanks
    42
    Thanked 109 Times in 107 Posts
    Hurried to write, it works except rotating knife, not properly integrated _callbacksetup.gsc.. Let it be so, this is enough, so as not to bother.

    I'll upload in 15 minutes, have a bad internet speed..

    I want to show what has already turn out, zz_allcustom_v1.iwd almost finished except the same problem with flamethrower...

Posting Permissions

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