UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: Alphayt on March 31, 2018, 12:04:54 am

Title: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Alphayt on March 31, 2018, 12:04:54 am
Hello, i try to add weapons on my map but it never work...

This is how i proceed to add the AK47 of the pack called "MW1 GUNZ for all":


- Put images, sound and weapons folders in my map folder

- Put images, material_properties, materials, sound, xanim, xmodel, xmodelparts, xmodelsurfs folders in Raw folder

- Adding weapon,sp\ak47 and sound,mw1_guns,,all_mp to mod.csv (for exemple)

- Adding    add_zombie_weapon( "ak47",                &"Pres & Hold F to buy AK47",             1000,   "",            0 );       to the _zombiemode_weapons.gsc file



And it just doesn't work, i can't give myself the weapon and i don't see it in the mystery box...

Oh and btw, if someone know a simple tutorial to add BO1 Perks i would really appreciate, thanks.
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: fanmagic on March 31, 2018, 03:47:20 pm
Add the weaponfiles and sounds into your mod.csv.

Code Snippet
Plaintext
weapons,sp/weaponname
sound,soundalias,,all_sp

Btw you don't need to add the sounds into your mods folder. They will be automaticly added from your mod.csv.

And you can use Bam's Perks, if you would like an easy version of the BO perks. If you need help with them just ask :)
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Alphayt on March 31, 2018, 05:06:11 pm
Add the weaponfiles and sounds into your mod.csv.

Code Snippet
Plaintext
weapons,sp/weaponname
sound,soundalias,,all_sp

Btw you don't need to add the sounds into your mods folder. They will be automaticly added from your mod.csv.

And you can use Bam's Perks, if you would like an easy version of the BO perks. If you need help with them just ask :)


Thanks for your help, sadly, its still not working, i don't see the AK47 in the mystery box and when i use "give all" command i don't have it :(

And thanks for the perks  ;)

Double Post Merge: March 31, 2018, 08:20:20 pm
Okay! So, i tried to use this custom weapon: http://cfgfactory.com/downloads/show/5a5fc0033c84b (http://cfgfactory.com/downloads/show/5a5fc0033c84b)

And.. it worked! but i have another problem now..

I can only give myself the upgraded weapon, not the non-upgraded.
And ofc the weapon is not in the mystery box

Here is some screens of my files:
https://imgur.com/a/1Qxsm (https://imgur.com/a/1Qxsm)

So if someone know how to fix this sh*t  :gusta:
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: fanmagic on March 31, 2018, 08:25:15 pm
Do you get any errors while building your mod?
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Alphayt on March 31, 2018, 08:54:07 pm
0 errors, and i get this: https://imgur.com/2AQHRWC
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Alphayt on March 31, 2018, 09:29:53 pm
YES! It worked! This time i used XR2 weapon and it PERFECTLY work ! :D

Maybe the weapon was broken? idk, i'm so happy now i perfectly know how to add weapons ! :D

Thanks for helping me :)
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Harry Bo21 on March 31, 2018, 10:44:55 pm
in mod.csv, when you comment stuff out, remember to add a space, or the line after is ignored too

Code Snippet
Plaintext
// text

not

//text
Title: Re: Need help for adding weapons (and a tutorial for BO1 perks please)
Post by: Alphayt on April 01, 2018, 01:31:10 am
in mod.csv, when you comment stuff out, remember to add a space, or the line after is ignored too

Code Snippet
Plaintext
// text

not

//text

So that explain everything :D Thanks  :)