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

Custom weapon upgrade?

HOT
broken avatar :(
Created 10 years ago
by NaviLlusShore
0 Members and 1 Guest are viewing this topic.
4,934 views
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
Signature
NaviLlicious
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
I have an upgraded version and a regular version of my custom weapon how would I make It so I can PaP the regular version and get the PaPed version?
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
The scripts determine which gun is an 'upgraded' version by the _upgraded extension. So all you need to do is add the gun like normal.
Last Edit: January 13, 2014, 11:06:18 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
The scripts determine which gun is an 'upgraded' version by the _upgraded extension. So all you need to do is add the gun like normal.
So weaponname and weaponname_upgraded and that's It?
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
as daedra said just make two weapon files named like : "my_gun" and "my_gun_upgraded" just change weapon model(if you want) in the _upgraded weapon file and damage etc.
Last Edit: January 13, 2014, 11:28:57 pm by jjbradman
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
So weaponname and weaponname_upgraded and that's It?

Yep.

as daedra said just make two weapon files named like : "my_gun" and "my_gun_upgraded" just change weapon model in the _upgraded weapon file and damage etc.

Yeah it would be a smart idea to make any changes to your weaponfile before adding it.
Last Edit: January 13, 2014, 11:29:35 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
I had ray_gun2 and ray_gun2_upgraded but It didn't let me PaP
Last Edit: January 13, 2014, 11:47:07 pm by NaviLlusShore
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
I had ray_gun2 and ray_gun2_upgraded but It didn't let me PaP

Must not have included the file then. I don't know what else could cause it.
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Where would I include the file?

Post Merge: January 14, 2014, 08:36:14 am
Nvm I found where to Include the weapon but when I PaP It now the upgraded version doesn't come out, also which .gsc would have the allowed weapons In the treasure box? Been looking through them but can't find It
Last Edit: January 14, 2014, 09:11:53 am by NaviLlusShore
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Where would I include the file?

Post Merge: January 14, 2014, 08:36:14 am
Nvm I found where to Include the weapon but when I PaP It now the upgraded version doesn't come out, also which .gsc would have the allowed weapons In the treasure box? Been looking through them but can't find It

You also need to add the weapon in _zombiemode_weapons.gsc and for the box, add the weapon to dlc3_code.gsc.
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Is this right?
Code Snippet
Plaintext
	add_zombie_weapon( "ray_gun2",                              &"ZOMBIE_BUY_RAYGUN2",                      10000,  "",    0);
add_zombie_weapon( "ray_gun2_upgraded                       &"ZOMBIE_BUY_RAYGUN2",                      10000,  "",    0);
Code Snippet
Plaintext
 	include_weapon( "ray_gun2", true );
include_weapon( "ray_gun2_upgraded", false );
It doesn't seem to come out of the box from what I could tell and the PaP doesn't upgrade It
Last Edit: January 14, 2014, 01:42:21 pm by NaviLlusShore
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community 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.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Is this right?
Code Snippet
Plaintext
	add_zombie_weapon( "ray_gun2",                              &"ZOMBIE_BUY_RAYGUN2",                      10000,  "",    0);
add_zombie_weapon( "ray_gun2_upgraded                       &"ZOMBIE_BUY_RAYGUN2",                      10000,  "",    0);
Code Snippet
Plaintext
 	include_weapon( "ray_gun2", true );
include_weapon( "ray_gun2_upgraded", false );
It doesn't seem to come out of the box from what I could tell and the PaP doesn't upgrade It
You missed a ", in the ray_gun2_upgraded line. And you dont need the ,true dont kmow if that matters though
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
Still no luck nothing comes out of the PaP when I upgrade the gun and It still Isn't In the box
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community 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.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Still no luck nothing comes out of the PaP when I upgrade the gun and It still Isn't In the box
did you add the weapon files and models to your zone-source? Also double check for typo's i missed a " when editing weapon yesterday. It didnt gave me an error but nothing worked. For the box, if you copied the ray gun line in zombiemode-weapons it has the same weighting func as the ray gun and will probably appear less often
Last Edit: January 14, 2014, 03:36:57 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: usThe North Pole
Date Registered: 12 September 2013
Last active: 10 years ago
Posts
123
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I have come from the future
×
NaviLlusShore's Groups
NaviLlusShore's Contact & Social LinksTheHubbyNaviLlusShore
did you add the weapon files and models to your zone-source? Also double check for typo's i missed a " when editing weapon yesterday. It didnt gave me an error but nothing worked. For the box, if you copied the ray gun line in zombiemode-weapons it has the same weighting func as the ray gun and will probably appear less often
Do I gotta copy the func to add It to the box or just what I did above?

Post Merge: January 14, 2014, 04:08:33 pm
Just added xmodel,ray_gun2_viewmodel, xmodel,ray_gun2_worldmodel, xmodel,ray_gun2_view_up and xmodel,ray_gun2_world_up still nothing
Last Edit: January 14, 2014, 04:08:33 pm by NaviLlusShore
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
You also need to add the weapon itself in your CSV:
Code Snippet
Plaintext
weapon,sp/weaponname
Do you have that for both, the normal and upgraded?

- Phil.

 
Loading ...