This is a script that add weapon attachments to guns, it only works for non-upgraded weapons and ones that don't have an attachment already (like weapon_XXXX_attachment).
Also this script I'm giving 0 support as I really can't be bothered to help fix the issues that come from using this such as:
Exceeded FX limit or too many weapon assets loaded.
So I'm only supplying the script and you can probably load like 2-4 extra weapons before getting tossed out with the FX error if you're on stock DLC3 scripts and such.
Code is also a chance for you guys to learn something I've made the script super easy to understand read (like how all my code is ;3).
Setup:
- add_zombie_weapon & include_weapon have a new parameter type (last parameter) it defines which attachments will be loaded into the game (where you can give by script).
- Just realized I didn't actually add a new example for add_zombie_weapon so... there's this: add_zombie_weapon( "zombie_thompson", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0 ); NOW WILL BE add_zombie_weapon( "zombie_thompson", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0, 1 );
- maps\_dukip_attachment_box is the main script for this everything related to how it works is found in here, be sure to thoroughly read my comments and understand what I'm doing.
- menufile,ui\scriptmenus\dukip_attachment_box_01.menu //FMJ Xmags Sight
menufile,ui\scriptmenus\dukip_attachment_box_02.menu //FMJ Xmags
menufile,ui\scriptmenus\dukip_attachment_box_03.menu //Grip FMJ Xmags
Add to CSV
Images:
[Outdated: Attachments are FMJ/Xmags/Grip/Weapon Sight]
Credits:
- DidUknowiPwn - Scripter
- EMZ - UI Creator