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

Help with weapons--

broken avatar :(
Created 12 years ago
by epicduck97
0 Members and 1 Guest are viewing this topic.
2,734 views
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
So, I want to make a new version of a weapon. For now all I want to edit is damage and ammo and that kind of stuff, stuff that can be edited in the ugx_guns.iwd. I can successfully edit the damage and var's of weapons that were vanilla to ugx, but how can I make a new version. It doesnt work in game when I just copy paste say the ak47 file and rename the copy to say "ak107" and change the damage and ammo and what not. What else do I have to do in other files to get this to work?
thanks in advanced - Max
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 7 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne'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.
Go into _zombiemode_weapons.gsc in ugx_mod.iwd and add a new weapon line with the name of "ak107" in the function init_weapons().

Ex.
Code Snippet
Plaintext
include_zombie_weapon_ugx("ak107", 						"AK-107", 							1500);
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
Go into _zombiemode_weapons.gsc in ugx_mod.iwd and add a new weapon line with the name of "ak107" in the function init_weapons().

Ex.
Code Snippet
Plaintext
include_zombie_weapon_ugx("ak107", 						"AK-107", 							1500);

It didn't seem to work? Let me go through it again so I can see if I did anything wrong. I went into the ugx_guns.iwd in my projects folder, I went to where the weapons are, I copy pasted the ak47 one and renamed it ak107. Changed the display name to AK-107 not in quotes... And then I cp'd your code into the zombiemode weapons.gsc, where all the other weapon includes are.. Am I doing anything wrong? Thanks - Max aka Teddi
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
It didn't seem to work? Let me go through it again so I can see if I did anything wrong. I went into the ugx_guns.iwd in my projects folder, I went to where the weapons are, I copy pasted the ak47 one and renamed it ak107. Changed the display name to AK-107 not in quotes... And then I cp'd your code into the zombiemode weapons.gsc, where all the other weapon includes are.. Am I doing anything wrong? Thanks - Max aka Teddi

Did you also add the

Code Snippet
Plaintext
weapon,sp\ak107

 to the mod.csv box?
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
http://pastebin.com/VaRtaz2s

thats my mod.csv

I added it in as you can see at the bottom, but when i compile i get "failed loading 'sp/ak107' of type 'weapon' found in source file '../zone_source/mod.csv"

http://prntscr.com/420ea5
: thats my sp,weaps folder in ugxm_guns.iwd

this is my ak107 file
http://prntscr.com/420foz
or the name part at least, the only thing that could possibly mess up anything.

and finally my _zombiemiode_weapons.gsc in ugx_mod.iwd

http://prntscr.com/420fya

please tell me I'm doing something wrong  :P

thanks - Teddi
Last Edit: July 12, 2014, 07:08:58 pm by epicduck97
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
http://pastebin.com/VaRtaz2s

thats my mod.csv

I added it in as you can see at the bottom, but when i compile i get "failed loading 'sp/ak107' of type 'weapon' found in source file '../zone_source/mod.csv"

http://prntscr.com/420ea5
: thats my sp,weaps folder in ugxm_guns.iwd

this is my ak107 file
http://prntscr.com/420foz
or the name part at least, the only thing that could possibly mess up anything.

and finally my _zombiemiode_weapons.gsc in ugx_mod.iwd

http://prntscr.com/420fya

please tell me I'm doing something wrong  :P

thanks - Teddi

Hmm the lines here.

Code Snippet
Plaintext
//cust weps
weapon,sp\ak107

Put a space after the comment so it looks like this:

Code Snippet
Plaintext
// cust weps
weapon,sp\ak107

There is a weird bug where sometimes if you don't do that it ignores the line right after it.
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
I did that, it still didnt work  :(..

I did realize that could not be the issue, because if i ignored the line I wouldn't get the warning...

And also which mod.csv am I supposed to change the ugxmod one or map maps mod.

I've been using the ugx one because I never compile my maps one?
thanks for the quick reply - Teddi

 
Loading ...