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

Add guns

broken avatar :(
Created 10 years ago
by LicMacher
0 Members and 1 Guest are viewing this topic.
1,994 views
broken avatar :(
×
broken avatar :(
Location: ar
Date Registered: 29 January 2016
Last active: 10 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
LicMacher's Groups
LicMacher's Contact & Social Links
I've ported some guns from CoD BO2, I've placed a trigger and made a script to buy, but it doesn't work, i've tried with zombie_colt, and zombie_ppsh and I know the script works, but the custom gun don't.
Where do I need to add the gun to work? I know I need to add to _zombiemode_weapons, but anything else? thanks, sorry for bad english
Marked as best answer by LicMacher 10 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 2 April 2014
Last active: 3 months ago
Posts
480
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
If it's not perfect, you'll never see it.
Signature
Learn by doing, not copy and pasting.

Enjoy my 2015 contest map, a simple map with bo1-bo2 features
http://ugx-mods.com/forum/index.php?topic=14968.msg149200#
×
Centric's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Centric's Contact & Social Linkscentric_centriccInvictable
I've ported some guns from CoD BO2, I've placed a trigger and made a script to buy, but it doesn't work, i've tried with zombie_colt, and zombie_ppsh and I know the script works, but the custom gun don't.
Where do I need to add the gun to work? I know I need to add to _zombiemode_weapons, but anything else? thanks, sorry for bad english

The ingame trigger needs to have the gun set on it, im asuming you did that though. You should also copy DLC3_code.gsc found in raw/maps to your mods maps folder and add the gun there too.
Last Edit: February 06, 2016, 03:35:33 pm by Centric
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 6 years ago
Posts
417
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut188mrpeanut1881337p34nut
Before you try Centric's idea, read this:

Don't edit anything in raw/maps

Copy them to mods/YOURMAPNAME/maps then edit the copy not the original file.
Include that file in your .IWD when you compile the mod.


Anyways, when you are in-game, use the command 'give weaponname' with weaponname being the name of the weapon. If nothing happens/error message, read the rest of this post. If you DO happen to get the weapon, the actual buyable script isn't working.

Now, just like Centric said, you have to include the weapon file in dlc3_code and in _zombiemode_weapons.

Additionally, here's what those lines do:
The lines in dlc3_code tell whether it is pack-a-punchable or not.
The lines in _zombiemode_weapons add it to the box and set up the voice lines.

If you have no idea what you're doing, then just reply and I can walk you through it step-by-step.
Last Edit: February 06, 2016, 07:57:02 am by mrpeanut188
broken avatar :(
×
broken avatar :(
Location: ar
Date Registered: 29 January 2016
Last active: 10 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
LicMacher's Groups
LicMacher's Contact & Social Links
Before you try Centric's idea, read this:

Don't edit anything in raw/maps

Copy them to mods/YOURMAPNAME/maps then edit the copy not the original file.
Include that file in your .IWD when you compile the mod.


Anyways, when you are in-game, use the command 'give weaponname' with weaponname being the name of the weapon. If nothing happens/error message, read the rest of this post. If you DO happen to get the weapon, the actual buyable script isn't working.

Now, just like Centric said, you have to include the weapon file in dlc3_code and in _zombiemode_weapons.

Additionally, here's what those lines do:
The lines in dlc3_code tell whether it is pack-a-punchable or not.
The lines in _zombiemode_weapons add it to the box and set up the voice lines.

If you have no idea what you're doing, then just reply and I can walk you through it step-by-step.

"give weaponName" works, but I wasn't able to get the weapon with the script, I tried with "zombie_ppsh", and "zombie_colt" instead of "bo1_galil" weapon name and didn't worked, now It's working, thanks for the explantions, didn't knew about that

 
Loading ...