UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: tobin_g1213 on September 25, 2018, 04:18:14 pm

Title: MW1 guns for all 2.5(now with upgraded versions)
Post by: tobin_g1213 on September 25, 2018, 04:18:14 pm
                                   Here is my Upgraded weapons pack for all, do the same as you would adding the regular guns then add the upgraded ones after
                                                                                                                                      Know issues

* if all guns are put in on map at once with out getting rid of some of the other old weapons/sounds files in your map you will hit the 1600 sound assets limit(which makes game crash)

                                                                                                                                  To fix issues know
* fixing 1600 sound assets AND 400fx limit(https://confluence.ugx-mods.com/display/UGXMODS/UGX+Mod+Standalone+v1.0.3+Manual+Installation (https://confluence.ugx-mods.com/display/UGXMODS/UGX+Mod+Standalone+v1.0.3+Manual+Installation)
                          SCROLL DOWN UNTILL YOU SEE
Quote
Exceeded limit of 1600 sounds!
                                                                                You can uses EVERY GUN AT ONCE IN MAP but not all sounds with out modification

=green                                                                                                Now to get weapons on the wall or box
Go to your root/raw/maps to find (d0lc3_code) and (_zombiemode_weapons) copy them and put place in your mod/nazi_zombie_yourmapname/maps.
Next open dlc3_code and find this
Code Snippet
Plaintext
include_weapons()
{
    include_weapon( "zombie_colt" );
    include_weapon( "zombie_colt_upgraded", false );
    include_weapon( "zombie_sw_357" );
    include_weapon( "zombie_sw_357_upgraded", false );
Then add guns you want like this
Code Snippet
Plaintext
include_weapons()
{
    //Tobin's weapons
    include_weapon( "ak47", true );
    include_weapon( "ak47_upgraded", false );
    include_weapon( "deserteagle", true );
    include_weapon( "deserteagle_upgraded", false );
    include_weapon( "g3", true );
    include_weapon( "g3_upgraded", false );
    include_weapon( "g36", true );
    include_weapon( "g36_upgraded", false );
    include_weapon( "m4", true );
    include_weapon( "m4_upgraded", false );
    include_weapon( "m14", true );
    include_weapon( "m14_upgraded", false );
    include_weapon( "mp5", true );
    include_weapon( "mp5_upgraded", false );
    include_weapon( "p90", true);
    include_weapon( "p90_upgraded", false);
    include_weapon( "rpd", true );
    include_weapon( "rpd_upgraded", false );
    include_weapon( "skorpion", true );
    include_weapon( "skorpion_upgraded", false );
    include_weapon( "usp", true );
    include_weapon( "usp_upgraded", false );
   
    include_weapon( "zombie_colt" );
    include_weapon( "zombie_colt_upgraded", false );
    include_weapon( "zombie_sw_357" );
    include_weapon( "zombie_sw_357_upgraded", false );
Then got to _zombiemode_weapons and find this
Code Snippet
Plaintext
init_weapons()
{
    // Zombify
    PrecacheItem( "zombie_melee" );</p><p>
    // Pistols
    add_zombie_weapon( "colt",                                     &amp;"ZOMBIE_WEAPON_COLT_50",                     50,        "vox_crappy",    8 );
    add_zombie_weapon( "colt_dirty_harry",                         &amp;"ZOMBIE_WEAPON_COLT_DH_100",                 100,    "vox_357",        5 );
    add_zombie_weapon( "nambu",                                 &amp;"ZOMBIE_WEAPON_NAMBU_50",                     50,     "vox_crappy",    8 );
    add_zombie_weapon( "sw_357",                                 &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "zombie_sw_357",                         &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "zombie_sw_357_upgraded",                 &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "tokarev",                                 &amp;"ZOMBIE_WEAPON_TOKAREV_50",                 50,     "vox_crappy",    8 );
    add_zombie_weapon( "walther",                                 &amp;"ZOMBIE_WEAPON_WALTHER_50",                 50,     "vox_crappy",    8 );
    add_zombie_weapon( "zombie_colt",                             &amp;"ZOMBIE_WEAPON_ZOMBIECOLT_25",             25,     "vox_crappy",    8 );
    add_zombie_weapon( "zombie_colt_upgraded",                     &amp;"ZOMBIE_WEAPON_ZOMBIECOLT_25",             25,     "vox_crappy",    8 );
Then add the guns you want like this
Code Snippet
Plaintext
init_weapons()
{
    // Zombify
    PrecacheItem( "zombie_melee" );</p><p>
        add_zombie_weapon( "p90",                                   "Press &amp; Hold &amp;&amp;1 To Buy P90 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "p90_upgraded",                          "Press &amp; Hold &amp;&amp;1 To Buy P90 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
        add_zombie_weapon( "ak47",                           "Press &amp; Hold &amp;&amp;1 To Buy ak47 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "ak47_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy ak47 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "m4",                           "Press &amp; Hold &amp;&amp;1 To Buy m4 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "m4_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy m4 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "m14",                           "Press &amp; Hold &amp;&amp;1 To Buy m14 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "m14_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy m14 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "g3",                           "Press &amp; Hold &amp;&amp;1 To Buy g3 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "g3_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy g3 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "g36",                           "Press &amp; Hold &amp;&amp;1 To Buy g36 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "g36_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy g36 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "usp",                           "Press &amp; Hold &amp;&amp;1 To Buy usp [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "usp_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy usp [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "deserteagle",                           "Press &amp; Hold &amp;&amp;1 To Buy deserteagle [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "deserteagle_upgraded",                  "Press &amp; Hold &amp;&amp;1 To Buy deserteagle [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "skorpion",                           "Press &amp; Hold &amp;&amp;1 To Buy skorpion [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "skorpion_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy skorpion [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "rpd",                           "Press &amp; Hold &amp;&amp;1 To Buy rpd [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "rpd_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy rpd [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "mp5",                           "Press &amp; Hold &amp;&amp;1 To Buy mp5 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
    add_zombie_weapon( "mp5_upgraded",                           "Press &amp; Hold &amp;&amp;1 To Buy mp5 [Cost: 1500]",   1500,   "vox_ppsh",      5 );
   
    // Pistols
    add_zombie_weapon( "colt",                                     &amp;"ZOMBIE_WEAPON_COLT_50",                     50,        "vox_crappy",    8 );
    add_zombie_weapon( "colt_dirty_harry",                         &amp;"ZOMBIE_WEAPON_COLT_DH_100",                 100,    "vox_357",        5 );
    add_zombie_weapon( "nambu",                                 &amp;"ZOMBIE_WEAPON_NAMBU_50",                     50,      "vox_crappy",    8 );
    add_zombie_weapon( "sw_357",                                 &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "zombie_sw_357",                         &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "zombie_sw_357_upgraded",                 &amp;"ZOMBIE_WEAPON_SW357_100",                 100,     "vox_357",        5 );
    add_zombie_weapon( "tokarev",                                 &amp;"ZOMBIE_WEAPON_TOKAREV_50",                 50,      "vox_crappy",    8 );
    add_zombie_weapon( "walther",                                 &amp;"ZOMBIE_WEAPON_WALTHER_50",                 50,      "vox_crappy",    8 );
    add_zombie_weapon( "zombie_colt",                             &amp;"ZOMBIE_WEAPON_ZOMBIECOLT_25",             25,      "vox_crappy",    8 );
    add_zombie_weapon( "zombie_colt_upgraded",                     &amp;"ZOMBIE_WEAPON_ZOMBIECOLT_25",             25,      "vox_crappy",    8 );
After that you need to call for weapons,sounds, and the materials for view hands kit in your (fastfiles mod.csv) Lancher
 fastfiles mod.csv this
https://ibb.co/eJq7qU (https://ibb.co/eJq7qU)
Code Snippet
Plaintext
// Zombie Mode Stuff
include,zombiemode
include,zombiemode_dogs
// Zombie Mode Strings
localize,zombie
// Mod Strings
localize,mod
// Edited Loadout For Zombie Heroes
rawfile,maps\_loadout.gsc
// Edited LastStand For Deep Water Like Sumpf
rawfile,maps\_laststand.gsc
// Edited For Developer_Script
rawfile,maps\_debug.gsc
stringtable,maps/mapsTable.csv
localize,mod,,
Then add your guns and sound and hands
Code Snippet
Plaintext
// Zombie Mode Stuff
include,zombiemode
include,zombiemode_dogs
// Zombie Mode Strings
localize,zombie
// Mod Strings
localize,mod
// Edited Loadout For Zombie Heroes
rawfile,maps\_loadout.gsc
// Edited LastStand For Deep Water Like Sumpf
rawfile,maps\_laststand.gsc
// Edited For Developer_Script
rawfile,maps\_debug.gsc
stringtable,maps/mapsTable.csv
localize,mod,,
weapon,sp\m14
weapon,sp\m14_upgraded
weapon,sp\mp5
weapon,sp\mp5_upgraded
weapon,sp\ak47
weapon,sp\ak47_upgraded
weapon,sp\usp
weapon,sp\usp_upgraded
weapon,sp\p90
weapon,sp\p90_upgraded
weapon,sp\g3
weapon,sp\g3_upgraded
weapon,sp\g36
weapon,sp\g36_upgraded
weapon,sp\m4
weapon,sp\m4_upgraded
weapon,sp\rpd
weapon,sp\rpd_upgraded
weapon,sp\skorpion
weapon,sp\skorpion_upgraded
weapon,sp\deserteagle
weapon,sp\deserteagle_upgraded
sound,mw1_guns,,all_mp
material,mtl_black_kit_hands
material,mtl_black_kit_sleeves
xmodel,viewhands_black_kit
So thats all i can think of on this tut, you can also watch my older video that mite help aswell
https://www.youtube.com/watch?v=aLRGQt5m4TY&t=499s&index=16&list=PLyRuEybh1d2HmtfTVZmWX7BnBd1lXPrLd (https://www.youtube.com/watch?v=aLRGQt5m4TY&t=499s&index=16&list=PLyRuEybh1d2HmtfTVZmWX7BnBd1lXPrLd)
DOWNLOAD :
https://mega.nz/#F!mk5knKxb!PpdZNTyZTYko9lU0S5Q1eQ (https://mega.nz/#F!mk5knKxb!PpdZNTyZTYko9lU0S5Q1eQ)
Title: Re: MW1 guns for all 2.5(now with upgraded versions)
Post by: Tim Smith on September 26, 2018, 10:18:00 am
2018 and people still porting COD4 into WaW and they sill don't know that we can get them with a single click lol
Title: Re: MW1 guns for all 2.5(now with upgraded versions)
Post by: tobin_g1213 on September 26, 2018, 01:21:31 pm
i didnt know and if your so smart you mine helping get c4 in my game 
Title: Re: MW1 guns for all 2.5(now with upgraded versions)
Post by: xCreations on February 11, 2020, 12:24:34 am
Upgraded models are invisible help
Title: Re: MW1 guns for all 2.5(now with upgraded versions)
Post by: DeletedUser on December 31, 2020, 06:16:02 pm
2018 and people still porting COD4 into WaW and they sill don't know that we can get them with a single click lol
how do we get them with a single click then?
Title: Re: MW1 guns for all 2.5(now with upgraded versions)
Post by: mumu11131 on February 09, 2021, 11:52:51 pm
2018 and people still porting COD4 into WaW and they sill don't know that we can get them with a single click lol
Isn't it better to learn a bit about how to port weapons into the game yourself? This way more people might get into porting new weapons!