UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Unable to get a gun adding in ugx mod

broken avatar :(
Created 11 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
5,795 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
I have set my map up and want to keep it on ugx mod for game modes and guns. I have tried to add a thompson with everymethod i can find possible. Adding all lines to weapons.gsc, adding all folders to mod folder and building ( all i find in raw sound, weapon , image , mnaterial ) , trying to edit existing weapons to be the thompson or other. None of these methods work, the closest i have got is an invisible set of hands from a modified weapon to change the thompson . It seems the thompson model is not loading , i have added the original prefab, and made an edited ugx prefab with the thompson string, both take the money but provide no weapon.

I have added other stuff to the map and mod but for some reason the weapons are not having it , last thing i want to do is change the mod on my map again but these guns need to be added if anyone knows the correct steps for adding a gun plz tell me it is driving me crazy now.

Thanks
broken avatar :(
×
broken avatar :(
Location: es
Date Registered: 15 August 2013
Last active: 7 years ago
Posts
161
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Mapper
My Groups
More
Signature
Enjoy my work? Feel free to donate here to support me

Wanna become a Patron? Try my Patreon Page
×
sethnorris's Groups
Mapper Has released one or more maps to the UGX-Mods community.
sethnorris's Contact & Social Links
Remember that for guns to appear they must be called in yourmapname.csv (zone_source), in zombiemode_weapons in your mod folder and in dlc3_code in your mod folder also. Also you have to place the weapon file in yourmod/weapons/sp
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
I have always been unsure what to do with the dlc3code n ugx mod. As before i installed it the dlc3code was ion map folder, but when using ugx i could not find it anywhere, and the map seemed to run the same with or without it included. I am trying that now i have added it again to ugx_mod.iwd/ maps and map folder and ticked in launcher.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
UGX mod doesnt use dlc3_code, all weapon work is done via _zombiemode_weapons, you can find it in ugxm_weapons.iwd. There is also some info inside the script for it
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Code Snippet
Plaintext
// UGX_SCRIPT - This is a modified function. Removed all the add_zombie_weapon lines; they will be added in _loadout.gsc file
init_weapons()
{
// UGX_SCRIPT - moved all the include weapons funcs to here so that it doesn't count for cod's crazy version of a precache
// when sending this to a standalone-mod, make sure to check if any of these weapon names appear anywhere in the ugx mod code. if they do, and are relavant to this mod, copy them over
//include_zombie_weapon_ugx(weapon_name, string name, cost,  in_box, weight func, upgradedammo, weaponVO,  variation, temporary )
include_zombie_weapon_ugx("napalmblob", "Semtex Grenades", 250, false, undefined, 250,  undefined, undefined, false);
include_zombie_weapon_ugx("m60", "M60", 3000, true, undefined, undefined, "vox_mg",  4);
include_zombie_weapon_ugx("m60_upgraded", "M60 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
//include_zombie_weapon_ugx("m249saw", "M249 SAW", 3000, true, undefined, undefined, "vox_mg",  4);
//include_zombie_weapon_ugx("m249saw_upgraded", "M249 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
include_zombie_weapon_ugx("m1014", "M1014", 2200, true, undefined, undefined, "vox_shotgun", 4);
include_zombie_weapon_ugx("m1014_upgraded", "M1014 Upgraded", 2200, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("mp5", "MP5", 1200);
include_zombie_weapon_ugx("mp5_upgraded", "MP5 Upgraded", 1200, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("p90", "P90", 1500);
//include_zombie_weapon_ugx("p90_upgraded", "P90 Upgraded", 1500, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("r700", "R700", 1000, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("r700_upgraded", "R700 Upgraded", 1000, false, undefined, 4500, "vox_sniper", 5, true);
include_zombie_weapon_ugx("rpd", "RPD", 3000, true, undefined, undefined, "vox_mg", 4);
include_zombie_weapon_ugx("rpd_upgraded", "RPD Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
include_zombie_weapon_ugx("silver_deagle", "Desert Eagle", 2000, true, undefined, undefined, "vox_357", 4);
include_zombie_weapon_ugx("silver_deagle_upgraded", "Desert Eagle Upgraded", 7000, false, undefined, 4500, "vox_357", 4, false);
include_zombie_weapon_ugx("skorpion", "Skorpion", 1050, true, undefined, undefined, "vox_crappy", 4);
include_zombie_weapon_ugx("skorpion_upgraded", "Skorpion Upgraded", 1050, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("uzi", "Uzi", 1100, true, undefined, undefined, "vox_crappy", 4);
include_zombie_weapon_ugx("uzi_upgraded", "Uzi Upgraded", 1100, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("winchester", "Winchester 1200", 1800, true, undefined, undefined, "vox_shotgun", 4);
include_zombie_weapon_ugx("winchester_upgraded", "Winchester 1200 Upgraded", 1800, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("ak47", "AK-47", 1000);
include_zombie_weapon_ugx("ak47_upgraded", "AK-47 Upgraded", 1000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("m4a1", "M4A1", 2000);
include_zombie_weapon_ugx("m4a1_upgraded", "M4A1 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("m14", "M14", 350, true, undefined, undefined, "vox_crappy", 4);
//include_zombie_weapon_ugx("m14_upgraded", "M14 Upgraded", 14000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("commando", "Commando", 2000);
include_zombie_weapon_ugx("commando_upgraded", "Commando Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("m16", "M16", 2000);
//include_zombie_weapon_ugx("m16_upgraded", "M16 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ak74u", "AK-74u", 1900);
include_zombie_weapon_ugx("ak74u_upgraded", "AK-74u Upgraded", 1900, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("barrett", "Barrett .50", 1500, true, undefined, undefined, "vox_sniper", 5);
include_zombie_weapon_ugx("barrett_upgraded", "Barrett .50 Upgraded", 9000, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("dragunov", "Dragonov", 1800, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("dragunov_upgraded", "Dragonov Upgraded", 1800, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("g3", "G3", 750);
//include_zombie_weapon_ugx("g3_upgraded", "G3 Upgraded", 10000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("aug", "AUG", 2200);
include_zombie_weapon_ugx("aug_upgraded", "AUG Upgraded", 2200, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("g36c", "G36c", 2000);
include_zombie_weapon_ugx("g36c_upgraded", "G36c Upgraded", 2000, false, undefined, 4500, "vox_flame", 4, false);
include_zombie_weapon_ugx("m9", "M9", 150, true, undefined, 2000,    "vox_crappy", 4);
include_zombie_weapon_ugx("m9_upgraded", "M9 Upgraded", 5150, false, undefined, 2000, undefined, undefined, false);
include_zombie_weapon_ugx("m40a3", "M40A3", 1100, true, undefined, undefined, "vox_sniper", 5);
include_zombie_weapon_ugx("m40a3_upgraded", "M40A3 Upgraded", 18000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("xm8", "XM8", 2100);
//include_zombie_weapon_ugx("xm8_upgraded", "XM8 Upgraded", 2100, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("stoner", "Stoner 63", 2400);
include_zombie_weapon_ugx("stoner_upgraded", "Stoner 63 Upgraded", 2400, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ump45", "UMP-45", 2000);
include_zombie_weapon_ugx("ump45_upgraded", "UMP-45 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("pp19", "PP-19 Bizon", 2000);
include_zombie_weapon_ugx("pp19_upgraded", "PP-19 Bizon Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("usas12", "USAS-12", 3000, true, undefined, undefined, "vox_shotgun", 6);
include_zombie_weapon_ugx("usas12_upgraded", "USAS-12 Upgraded", 3000, false, undefined, 4500, "vox_shotgun", undefined, true);
include_zombie_weapon_ugx("crossbow_exp", "Explosive Crossbow", 8000, true,  ::default_crossbow_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("crossbow_exp_upgraded", "Explosive Crossbow Upgraded", 8000, false, undefined, 4500, "vox_mg", 4, false);
include_zombie_weapon_ugx("zombie_thompson", "zombie_thompson",         100);
add_zombie_weapon("zombie_thompson",                  "zombie_thompson", 2200, false, undefined, 4500, undefined, undefined, true);
        include_zombie_weapon_ugx("zombie_thompson",                  "zombie_thompson", 2200, false, undefined, 4500, undefined, undefined, true);
        level.pulls_since_last_crossbow = 0;
//include_zombie_weapon_ugx("freezegun_sp", "Winter's Howel", 10000, true, ::default_freezegun_weighting_func, undefined, "vox_raygun", 4, false);
include_zombie_weapon_ugx("freezegun_sp_upgraded", "Winger's Howel Upgraded", 15000, false, undefined,   4500, "vox_flame", 4);
level.pulls_since_last_freeze_gun = 0;
include_zombie_weapon_ugx("thunderg", "Thundergun", 10500, true, ::default_thundergun_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("thunderg_upgraded", "Thundergun Upgraded", 10500, false, undefined, 4500, "vox_mg", 4, true);
level.pulls_since_last_thunder_gun = 0;
include_zombie_weapon_ugx("ray_gun", "Ray Gun", 8000, true, ::default_ray_gun_weighting_func, undefined, "vox_raygun", 4, false);
include_zombie_weapon_ugx("ray_gun_upgraded", "Ray Gun Upgraded", 12000, false, undefined,   4500, "vox_raygun", 4, false);
        include_zombie_weapon_ugx("ray_gun2",                           "ray_gun2",                                      8000,true,                      ::default_ray_gun_weighting_func,             undefined,                         "vox_raygun",  4,                      false);
        add_zombie_weapon( "zombie_thompson", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0 );
        // UGX_SCRIPT END

This the entire weapon list i have up to now, i have // some of them to try save fx for other guns added as i got to the 400 fx limit. I do not know where else i would need to edit to add these guns.  Thanks
Last Edit: January 10, 2015, 01:15:14 pm by pcmodder
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
did you add the weapon-file's to the ugxm_weapons.iwd?
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Code Snippet
Plaintext
// UGX_SCRIPT - This is a modified function. Removed all the add_zombie_weapon lines; they will be added in _loadout.gsc file
init_weapons()
{
// UGX_SCRIPT - moved all the include weapons funcs to here so that it doesn't count for cod's crazy version of a precache
// when sending this to a standalone-mod, make sure to check if any of these weapon names appear anywhere in the ugx mod code. if they do, and are relavant to this mod, copy them over
//include_zombie_weapon_ugx(weapon_name, string name, cost,  in_box, weight func, upgradedammo, weaponVO,  variation, temporary )
include_zombie_weapon_ugx("napalmblob", "Semtex Grenades", 250, false, undefined, 250,  undefined, undefined, false);
include_zombie_weapon_ugx("m60", "M60", 3000, true, undefined, undefined, "vox_mg",  4);
include_zombie_weapon_ugx("m60_upgraded", "M60 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
//include_zombie_weapon_ugx("m249saw", "M249 SAW", 3000, true, undefined, undefined, "vox_mg",  4);
//include_zombie_weapon_ugx("m249saw_upgraded", "M249 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
include_zombie_weapon_ugx("m1014", "M1014", 2200, true, undefined, undefined, "vox_shotgun", 4);
include_zombie_weapon_ugx("m1014_upgraded", "M1014 Upgraded", 2200, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("mp5", "MP5", 1200);
include_zombie_weapon_ugx("mp5_upgraded", "MP5 Upgraded", 1200, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("p90", "P90", 1500);
//include_zombie_weapon_ugx("p90_upgraded", "P90 Upgraded", 1500, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("r700", "R700", 1000, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("r700_upgraded", "R700 Upgraded", 1000, false, undefined, 4500, "vox_sniper", 5, true);
include_zombie_weapon_ugx("rpd", "RPD", 3000, true, undefined, undefined, "vox_mg", 4);
include_zombie_weapon_ugx("rpd_upgraded", "RPD Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
include_zombie_weapon_ugx("silver_deagle", "Desert Eagle", 2000, true, undefined, undefined, "vox_357", 4);
include_zombie_weapon_ugx("silver_deagle_upgraded", "Desert Eagle Upgraded", 7000, false, undefined, 4500, "vox_357", 4, false);
include_zombie_weapon_ugx("skorpion", "Skorpion", 1050, true, undefined, undefined, "vox_crappy", 4);
include_zombie_weapon_ugx("skorpion_upgraded", "Skorpion Upgraded", 1050, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("uzi", "Uzi", 1100, true, undefined, undefined, "vox_crappy", 4);
include_zombie_weapon_ugx("uzi_upgraded", "Uzi Upgraded", 1100, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("winchester", "Winchester 1200", 1800, true, undefined, undefined, "vox_shotgun", 4);
include_zombie_weapon_ugx("winchester_upgraded", "Winchester 1200 Upgraded", 1800, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("ak47", "AK-47", 1000);
include_zombie_weapon_ugx("ak47_upgraded", "AK-47 Upgraded", 1000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("m4a1", "M4A1", 2000);
include_zombie_weapon_ugx("m4a1_upgraded", "M4A1 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("m14", "M14", 350, true, undefined, undefined, "vox_crappy", 4);
//include_zombie_weapon_ugx("m14_upgraded", "M14 Upgraded", 14000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("commando", "Commando", 2000);
include_zombie_weapon_ugx("commando_upgraded", "Commando Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("m16", "M16", 2000);
//include_zombie_weapon_ugx("m16_upgraded", "M16 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ak74u", "AK-74u", 1900);
include_zombie_weapon_ugx("ak74u_upgraded", "AK-74u Upgraded", 1900, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("barrett", "Barrett .50", 1500, true, undefined, undefined, "vox_sniper", 5);
include_zombie_weapon_ugx("barrett_upgraded", "Barrett .50 Upgraded", 9000, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("dragunov", "Dragonov", 1800, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("dragunov_upgraded", "Dragonov Upgraded", 1800, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("g3", "G3", 750);
//include_zombie_weapon_ugx("g3_upgraded", "G3 Upgraded", 10000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("aug", "AUG", 2200);
include_zombie_weapon_ugx("aug_upgraded", "AUG Upgraded", 2200, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("g36c", "G36c", 2000);
include_zombie_weapon_ugx("g36c_upgraded", "G36c Upgraded", 2000, false, undefined, 4500, "vox_flame", 4, false);
include_zombie_weapon_ugx("m9", "M9", 150, true, undefined, 2000,    "vox_crappy", 4);
include_zombie_weapon_ugx("m9_upgraded", "M9 Upgraded", 5150, false, undefined, 2000, undefined, undefined, false);
include_zombie_weapon_ugx("m40a3", "M40A3", 1100, true, undefined, undefined, "vox_sniper", 5);
include_zombie_weapon_ugx("m40a3_upgraded", "M40A3 Upgraded", 18000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("xm8", "XM8", 2100);
//include_zombie_weapon_ugx("xm8_upgraded", "XM8 Upgraded", 2100, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("stoner", "Stoner 63", 2400);
include_zombie_weapon_ugx("stoner_upgraded", "Stoner 63 Upgraded", 2400, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ump45", "UMP-45", 2000);
include_zombie_weapon_ugx("ump45_upgraded", "UMP-45 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("pp19", "PP-19 Bizon", 2000);
include_zombie_weapon_ugx("pp19_upgraded", "PP-19 Bizon Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("usas12", "USAS-12", 3000, true, undefined, undefined, "vox_shotgun", 6);
include_zombie_weapon_ugx("usas12_upgraded", "USAS-12 Upgraded", 3000, false, undefined, 4500, "vox_shotgun", undefined, true);
include_zombie_weapon_ugx("crossbow_exp", "Explosive Crossbow", 8000, true,  ::default_crossbow_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("crossbow_exp_upgraded", "Explosive Crossbow Upgraded", 8000, false, undefined, 4500, "vox_mg", 4, false);
include_zombie_weapon_ugx("zombie_thompson", "zombie_thompson",         100);
add_zombie_weapon("zombie_thompson",                  "zombie_thompson", 2200, false, undefined, 4500, undefined, undefined, true);
        include_zombie_weapon_ugx("zombie_thompson",                  "zombie_thompson", 2200, false, undefined, 4500, undefined, undefined, true);
        level.pulls_since_last_crossbow = 0;
//include_zombie_weapon_ugx("freezegun_sp", "Winter's Howel", 10000, true, ::default_freezegun_weighting_func, undefined, "vox_raygun", 4, false);
include_zombie_weapon_ugx("freezegun_sp_upgraded", "Winger's Howel Upgraded", 15000, false, undefined,   4500, "vox_flame", 4);
level.pulls_since_last_freeze_gun = 0;
include_zombie_weapon_ugx("thunderg", "Thundergun", 10500, true, ::default_thundergun_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("thunderg_upgraded", "Thundergun Upgraded", 10500, false, undefined, 4500, "vox_mg", 4, true);
level.pulls_since_last_thunder_gun = 0;
include_zombie_weapon_ugx("ray_gun", "Ray Gun", 8000, true, ::default_ray_gun_weighting_func, undefined, "vox_raygun", 4, false);
include_zombie_weapon_ugx("ray_gun_upgraded", "Ray Gun Upgraded", 12000, false, undefined,   4500, "vox_raygun", 4, false);
        include_zombie_weapon_ugx("ray_gun2",                           "ray_gun2",                                      8000,true,                      ::default_ray_gun_weighting_func,             undefined,                         "vox_raygun",  4,                      false);
        add_zombie_weapon( "zombie_thompson", &"ZOMBIE_WEAPON_THOMPSON_1200", 1200, "", 0 );
        // UGX_SCRIPT END

This the entire weapon list i have up to now, i have // some of them to try save fx for other guns added as i got to the 400 fx limit. I do not know where else i would need to edit to add these guns.  Thanks

I would remove all other, except one Thompson line, keep the one that is same as others. That could be issue here
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
did you add the weapon-file's to the ugxm_weapons.iwd?
Ye i added to that file and also weapons file in mod folder / maps. with adding the dlc3code i get an error unable to find zombie thompson. I will get a console log and paste some now brb thanks for help

Double Post Merge: January 10, 2015, 01:29:31 pm
Code Snippet
Plaintext
napalmblob: WEAPON_SMOKE
Error: Could not load fx "shellejects/pistol_view".
Error: Could not load fx "shellejects/pistol".
Error: Could not load xmodel "bo2_t6_wpn_zmb_raygun2_world".
Error: Could not load xmodel "viewmodel_zombie_thompson".
Error: Could not load material "hud_icon_thompson".
Error: Could not load xmodel "viewmodel_zombie_mp44_lmg".
Error: Could not load xmodel "viewmodel_zombie_thompson_smg_up".
Error: Could not load xmodel "weapon_zombie_thompson_smg_up".
Error: Could not load fx "shellejects/rifle_view".
Error: Could not load fx "shellejects/rifle".
Error: Could not load xmodel "viewmodel_zombie_thompson_smg".

******* script runtime error *******
unknown item 'zombie_thompson': (file 'maps/_zombiemode_weapons.gsc', line 47)
 PrecacheItem( weapon_name );
               *
Error: called from:
(file 'maps/_zombiemode_weapons.gsc', line 325)
 add_zombie_weapon(weapon_name, hint, cost, weaponVO, variation_count, ammo_cost);
 *
Error: called from:
(file 'maps/_zombiemode_weapons.gsc', line 396)
 include_zombie_weapon_ugx("zombie_thompson",     "zombie_thompson",            100);
 *
Error: called from:
(file 'maps/_zombiemode_weapons.gsc', line 7)
 init_weapons();
 *
Error: called from:
(file 'maps/_zombiemode.gsc', line 60)
  maps\_zombiemode_weapons::init();
  *
Error: called from:
(file 'maps/ugx_mod_install1.gsc', line 81)
        maps\_zombiemode::main();
        *
Error: started from:
(file 'maps/ugx_mod_install1.gsc', line 11)
main()
*
Error: ************************************
Database: Assets Sync Started
Database: Assets Sync Finished
      dvar set cl_paused 0
      dvar set long_blocking_call 0
      dvar set sv_network_warning 0
      dvar set cl_network_warning 0
      dvar set loc_language 0
      dvar set loc_forceEnglish 0
      dvar set language english
      dvar set com_errorTitle Error
      dvar set com_errorMessage script runtime error
(see console for details)
unknown item 'zombie_thompson'
********************
ERROR: script runtime error
(see console for details)
unknown item 'zombie_thompson'
********************
      dvar set sv_disableClientConsole 0
PROFILES: setting server info to 0.0.0.0:0
Couldn't get profiles instance, are we logged on?
----- Server Shutdown -----
ShutdownGame:
------------------------------------------------------------

This is with the dlc3code included, and a prefab of the thompson , all lines added to csv anim and the others, should i have dlc3code at all with ugx mod then ?
Last Edit: January 10, 2015, 01:29:31 pm by pcmodder
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
Quote
Ye i added to that file and also weapons file in mod folder / maps.


there's a weapons/sp folder inside the ugxm_weapons.iwd. You want to put the weapon file's in there and not in your mod\weapons\sp\ folder ( and def not in your mod\maps fodler, but that's maybe just a typo ).


And no, you dont need dlc3_code.gsc with ugx-mod..
Last Edit: January 10, 2015, 01:46:08 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Ok i will try it with that removed, i have also tried to add zombie_thompson to the precache line in zombiemode_weapons.gcs.
Exactly which folders will i need to add per weapon added, like material, sound? SO far i have added eveything i can find with thompson in its name to my mod folder lol. I only want to reskin it and add a bit of damage XD  thanks

Double Post Merge: January 10, 2015, 01:48:35 pm
Guys do i need to add anything here? PrecacheItem( weapon_name ); it comes up as an error when i do logfile 2?  Example i will put   PrecacheItem( zombie_thompson );   but i get an error saying   "uninitialized variable"  thanks

Double Post Merge: January 10, 2015, 05:32:49 pm
Code Snippet
Plaintext
add_zombie_weapon(weapon_name, hint, cost, weaponVO, variation_count, ammo_cost);
        add_zombie_weapon( "zombie_thompson", "Press & hold &&1 to buy thompson", 1200,"",0 );
        add_zombie_weapon( "ray_gun2", "Press & hold &&1 to buy the Ray Gun MKII", 10000, "vox_raygun", 6 );
}
// UGX_SCRIPT END

// UGX_SCRIPT - This is a modified function. Removed all the add_zombie_weapon lines; they will be added in _loadout.gsc file
init_weapons()
{
// UGX_SCRIPT - moved all the include weapons funcs to here so that it doesn't count for cod's crazy version of a precache
// when sending this to a standalone-mod, make sure to check if any of these weapon names appear anywhere in the ugx mod code. if they do, and are relavant to this mod, copy them over
//include_zombie_weapon_ugx(weapon_name, string name, cost,  in_box, weight func, upgradedammo, weaponVO,  variation, temporary )
include_zombie_weapon_ugx("napalmblob", "Semtex Grenades", 250, false, undefined, 250,  undefined, undefined, false);
include_zombie_weapon_ugx("m60", "M60", 3000, true, undefined, undefined, "vox_mg",  4);
//include_zombie_weapon_ugx("m60_upgraded", "M60 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
//include_zombie_weapon_ugx("m249saw", "M249 SAW", 3000, true, undefined, undefined, "vox_mg",  4);
//include_zombie_weapon_ugx("m249saw_upgraded", "M249 Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
//include_zombie_weapon_ugx("m1014", "M1014", 2200, true, undefined, undefined, "vox_shotgun", 4);
//include_zombie_weapon_ugx("m1014_upgraded", "M1014 Upgraded", 2200, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("mp5", "MP5", 1200);
include_zombie_weapon_ugx("mp5_upgraded", "MP5 Upgraded", 1200, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("p90", "P90", 1500);
//include_zombie_weapon_ugx("p90_upgraded", "P90 Upgraded", 1500, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("r700", "R700", 1000, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("r700_upgraded", "R700 Upgraded", 1000, false, undefined, 4500, "vox_sniper", 5, true);
//include_zombie_weapon_ugx("rpd", "RPD", 3000, true, undefined, undefined, "vox_mg", 4);
//include_zombie_weapon_ugx("rpd_upgraded", "RPD Upgraded", 3000, false, undefined, 4500, "vox_mg", 4, true);
include_zombie_weapon_ugx("silver_deagle", "Desert Eagle", 2000, true, undefined, undefined, "vox_357", 4);
include_zombie_weapon_ugx("silver_deagle_upgraded", "Desert Eagle Upgraded", 7000, false, undefined, 4500, "vox_357", 4, false);
//include_zombie_weapon_ugx("skorpion", "Skorpion", 1050, true, undefined, undefined, "vox_crappy", 4);
//include_zombie_weapon_ugx("skorpion_upgraded", "Skorpion Upgraded", 1050, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("uzi", "Uzi", 1100, true, undefined, undefined, "vox_crappy", 4);
//include_zombie_weapon_ugx("uzi_upgraded", "Uzi Upgraded", 1100, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("winchester", "Winchester 1200", 1800, true, undefined, undefined, "vox_shotgun", 4);
include_zombie_weapon_ugx("winchester_upgraded", "Winchester 1200 Upgraded", 1800, false, undefined, 4500, "vox_shotgun", 4, true);
include_zombie_weapon_ugx("ak47", "AK-47", 1000);
include_zombie_weapon_ugx("ak47_upgraded", "AK-47 Upgraded", 1000, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("m4a1", "M4A1", 2000);
//include_zombie_weapon_ugx("m4a1_upgraded", "M4A1 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("m14", "M14", 350, true, undefined, undefined, "vox_crappy", 4);
//include_zombie_weapon_ugx("m14_upgraded", "M14 Upgraded", 14000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("commando", "Commando", 2000);
include_zombie_weapon_ugx("commando_upgraded", "Commando Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
//include_zombie_weapon_ugx("m16", "M16", 2000);
//include_zombie_weapon_ugx("m16_upgraded", "M16 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ak74u", "AK-74u", 1900);
include_zombie_weapon_ugx("ak74u_upgraded", "AK-74u Upgraded", 1900, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("barrett", "Barrett .50", 1500, true, undefined, undefined, "vox_sniper", 5);
include_zombie_weapon_ugx("barrett_upgraded", "Barrett .50 Upgraded", 9000, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("dragunov", "Dragonov", 1800, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("dragunov_upgraded", "Dragonov Upgraded", 1800, false, undefined, 4500, "vox_sniper", 5, false);
//include_zombie_weapon_ugx("g3", "G3", 750);
//include_zombie_weapon_ugx("g3_upgraded", "G3 Upgraded", 10000, false, undefined, 4500, undefined, undefined, false);
include_zombie_weapon_ugx("aug", "AUG", 2200);
include_zombie_weapon_ugx("aug_upgraded", "AUG Upgraded", 2200, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("g36c", "G36c", 2000);
//include_zombie_weapon_ugx("g36c_upgraded", "G36c Upgraded", 2000, false, undefined, 4500, "vox_flame", 4, false);
include_zombie_weapon_ugx("m9", "M9", 150, true, undefined, 2000,    "vox_crappy", 4);
include_zombie_weapon_ugx("m9_upgraded", "M9 Upgraded", 5150, false, undefined, 2000, undefined, undefined, false);
//include_zombie_weapon_ugx("m40a3", "M40A3", 1100, true, undefined, undefined, "vox_sniper", 5);
//include_zombie_weapon_ugx("m40a3_upgraded", "M40A3 Upgraded", 18000, false, undefined, 4500, undefined, undefined, false);
//include_zombie_weapon_ugx("xm8", "XM8", 2100);
//include_zombie_weapon_ugx("xm8_upgraded", "XM8 Upgraded", 2100, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("stoner", "Stoner 63", 2400);
include_zombie_weapon_ugx("stoner_upgraded", "Stoner 63 Upgraded", 2400, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("ump45", "UMP-45", 2000);
include_zombie_weapon_ugx("ump45_upgraded", "UMP-45 Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("pp19", "PP-19 Bizon", 2000);
include_zombie_weapon_ugx("pp19_upgraded", "PP-19 Bizon Upgraded", 2000, false, undefined, 4500, undefined, undefined, true);
include_zombie_weapon_ugx("usas12", "USAS-12", 3000, true, undefined, undefined, "vox_shotgun", 6);
include_zombie_weapon_ugx("usas12_upgraded", "USAS-12 Upgraded", 3000, false, undefined, 4500, "vox_shotgun", undefined, true);
include_zombie_weapon_ugx("crossbow_exp", "Explosive Crossbow", 8000, true,  ::default_crossbow_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("crossbow_exp_upgraded", "Explosive Crossbow Upgraded", 8000, false, undefined, 4500, "vox_mg", 4, false);
        level.pulls_since_last_crossbow = 0;
//include_zombie_weapon_ugx("freezegun_sp", "Winter's Howel", 10000, true, ::default_freezegun_weighting_func, undefined, "vox_raygun", 4, false);
//include_zombie_weapon_ugx("freezegun_sp_upgraded", "Winger's Howel Upgraded", 15000, false, undefined,   4500, "vox_flame", 4);
level.pulls_since_last_freeze_gun = 0;
include_zombie_weapon_ugx("thunderg", "Thundergun", 10500, true, ::default_thundergun_weighting_func, undefined, "vox_mg", 4, false);
include_zombie_weapon_ugx("thunderg_upgraded", "Thundergun Upgraded", 10500, false, undefined, 4500, "vox_mg", 4, true);
level.pulls_since_last_thunder_gun = 0;
include_zombie_weapon_ugx("ray_gun", "Ray Gun", 8000, true, ::default_ray_gun_weighting_func, undefined, "vox_raygun", 4, false);
include_zombie_weapon_ugx("ray_gun_upgraded", "Ray Gun Upgraded", 12000, false, undefined,   4500, "vox_raygun", 4, false);
        include_zombie_weapon_ugx("ray_gun2",                           "ray_gun2",                                      8000,true,                      ::default_ray_gun_weighting_func,             undefined,                         "vox_raygun",  4,                      false);
        // UGX_SCRIPT END
Last Edit: January 10, 2015, 05:32:49 pm by pcmodder
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Guys do i need to add anything here? PrecacheItem( weapon_name ); it comes up as an error when i do logfile 2?  Example i will put   PrecacheItem( zombie_thompson );   but i get an error saying   "uninitialized variable"  thanks

You forgot "", needs to be PrecacheItem ("zombie_thompson");
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
You forgot "", needs to be PrecacheItem ("zombie_thompson");
I did try that and when i did i lost all the ugx guns, the only guns that loaded were the colt , walther, karak and default weapon. Atm i am trying to edit an existing weapon in weapon editor to match the gun i am trying to add, but the model does not show instead it is invisible.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I did try that and when i did i lost all the ugx guns, the only guns that loaded were the colt , walther, karak and default weapon. Atm i am trying to edit an existing weapon in weapon editor to match the gun i am trying to add, but the model does not show instead it is invisible.

Did you add the xmodel in mod.csv? That should fix gun being invisible
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Ye i added this, and the weapon file to the ugxm_guns.iwd , do you know why all the guns are inactive when i add the weapon to precache>? Cus i think that may also be why it is not working , thanks/

Code Snippet
Plaintext
//Thompson
xmodel,viewmodel_zombie_thompson
xmodel,weapon_zombie_thompson
weapon,sp/zombie_thompson
xanim,viewmodel_thompson_idle
xanim,viewmodel_thompson_idle_empty
xanim,viewmodel_thompson_fire
xanim,viewmodel_thompson_lastshot
xanim,viewmodel_knife_slash
xanim,viewmodel_knife_stick
xanim,viewmodel_thompson_reload
xanim,viewmodel_thompson_reload_empty
xanim,viewmodel_thompson_pullout
xanim,viewmodel_thompson_putaway
xanim,viewmodel_thompson_switch
xanim,viewmodel_thompson_pullout_fast
xanim,viewmodel_thompson_putaway_fast
xanim,viewmodel_thompson_pullout_empty
xanim,viewmodel_thompson_putaway_empty
xanim,viewmodel_thompson_fire_ads
xanim,viewmodel_thompson_ADS_up
xanim,viewmodel_thompson_ADS_down
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 7 October 2013
Last active: 3 years ago
Posts
104
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Unannounced Map
40%
×
DarkWhiss's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
DarkWhiss's Contact & Social LinksDarkWhissBabaMay
This a topic that UGX needs to cover on. Perhaps in the wiki. I remember i had to figure out on my own, i believe there is no solid tutorial on doing this.

 
Loading ...