Modme Forums

Change Widow’s Wine Knife?

Game Modding | Call of Duty: Black Ops 3 | Scripting


Ping998:

Hi there,

I've got the Sickle weapon to replace the bowie knife for my map however, when you purchase widow's wine, the melee is replaced with the default widow's wine knife.

Is there a way to change the knife used when you have widow's wine?

Any suggestions would be appreciated :)

- Ping


Magicman:

zm_utility::register_melee_weapon_for_level( WIDOWS_WINE_KNIFE );
level.w_widows_wine_knife = GetWeapon( WIDOWS_WINE_KNIFE );

zm_utility::register_melee_weapon_for_level( WIDOWS_WINE_BOWIE_KNIFE );
level.w_widows_wine_bowie_knife = GetWeapon( WIDOWS_WINE_BOWIE_KNIFE );

zm_utility::register_melee_weapon_for_level( WIDOWS_WINE_SICKLE_KNIFE );
level.w_widows_wine_sickle_knife = GetWeapon( WIDOWS_WINE_SICKLE_KNIFE );
}

maybe where it says "WIDOWS_WINE_KNIFE" replace it with the name for the sickle?
possibly change this (approximately line 179):

// replace your knife with widows_wine knife
self TakeWeapon( self.w_widows_wine_prev_knife );

so it doesn't replace your knife? (possibly by deleting) I'm no expert, but that would be my best guess, hope this helps