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

Weird Upgrading Scipt Request

broken avatar :(
Created 11 years ago
by MJPWGaming
0 Members and 1 Guest are viewing this topic.
3,784 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Hi so this is gonna sound really complicated and weird:

I need a script where after a specific round the player can go up to a certain trigger (or object) and upgrade their gun.

This sounds really strange but it'll look good.
Last Edit: June 08, 2015, 01:53:15 pm by MJPWGaming
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
The Last of Us
Location: scotland
Date Registered: 28 September 2013
Last active: 12 hours ago
Posts
1,470
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
Signature
×
smasher248'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.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
smasher248's Contact & Social Linkssmasher248smasher248
Hi so this is gonna sound really complicated and weird:

I need a script where after a specific round the player can go up to a certain trigger (or object) and upgrade their gun.

This sounds really strange but it'll look good.

so round activated pap
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
so round activated pap

Kinda but its basicly a second PaP but its not the actual PaP machine model.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Kinda but its basicly a second PaP but its not the actual PaP machine model.
In the trigger think loop add if(level.round_number < X) continue;
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
In the trigger think loop add if(level.round_number < X) continue;

Its gotta be separate from the original PaP. The original is still in, BUT there is a alternative in spawn that activates at round 15.
Marked as best answer by MJPWGaming 11 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Its gotta be separate from the original PaP. The original is still in, BUT there is a alternative in spawn that activates at round 15.

You could try something like this:

Code Snippet
Plaintext
RoundPap(){
cost = 5000;
papRound = 10;//change for the round you can pap with this trigger
papTrig = getent("paptrig","targetname");//change paptrig to your targetname kvp
papTrig setCursorHint("HINT_NOICON");
if(isdefined(papTrig.zombie_cost)) cost = papTrig.zombie_cost;

while(1){
level waittill ( "between_round_over" );
if(level.round_number>papRound){
papTrig sethintstring("Press &&1 to upgrade [Cost: " + cost + "]");
papTrig thread AllowPapTrig();
break;
}
}
}
AllowPapTrig(){
        iprintlnbold("This trig is now available for pap");//comment out after testing complete if desired
while(1){
self waittill("trigger",player);
current_weapon = player getCurrentWeapon();
if( !IsDefined( level.zombie_include_weapons[current_weapon] ) || !IsDefined( level.zombie_include_weapons[current_weapon + "_upgraded"] ) )
{
player iprintlnbold("The " + current_weapon + " is not upgradeable");//comment out after testing if desired
continue;
}
player TakeWeapon(current_weapon);
wait(.2);
player GiveWeapon(current_weapon+ "_upgraded");
player SwitchToWeapon(current_weapon+ "_upgraded");
wait(.5);
}
}

Not tested for syntax or anything, just typed up on lunch away from gaming pc. Nothing fancy.
You would add this to your mapname.gsc and add thread RoundPap(); up in the function thread section
Last Edit: June 08, 2015, 06:27:41 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
You could try something like this:

Code Snippet
Plaintext
RoundPap(){
cost = 5000;
papRound = 10;//change for the round you can pap with this trigger
papTrig = getent("paptrig","targetname");//change paptrig to your targetname kvp
papTrig setCursorHint("HINT_NOICON");
if(isdefined(papTrig.zombie_cost)) cost = papTrig.zombie_cost;

while(1){
level waittill ( "between_round_over" );
if(level.round_number>papRound){
pap sethintstring("Press &&1 to upgrade [Cost: " + cost + "]");
papTrig thread AllowPapTrig();
break;
}
}
}
AllowPapTrig(){
while(1){
self waittill("trigger",player);
current_weapon = player getCurrentWeapon();
if( !IsDefined( level.zombie_include_weapons[current_weapon] ) || !IsDefined( level.zombie_include_weapons[current_weapon + "_upgraded"] ) )
{
player iprintlnbold("The " + current_weapon + " is not upgradeable");//comment out after testing if desired
continue;
}
player TakeWeapon(current_weapon);
wait(.2);
player GiveWeapon(current_weapon+ "_upgraded");
player SwitchToWeapon(current_weapon+ "_upgraded");
wait(.5);
}
}

Not tested for syntax or anything, just typed up on lunch away from gaming pc. Nothing fancy.
You would add this to your mapname.gsc and add thread RoundPap(); up in the function thread section

Thanks! But I got an error for uninitialized variable "pap"
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
my bad, should be papTrig sethintstring.... Updated in my op, and added iprintlnbold to say it is ready for pap for testing
Last Edit: June 08, 2015, 06:28:07 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 5 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
my bad, should be papTrig sethintstring.... Updated in my op, and added iprintlnbold to say it is ready for pap for testing

It works! Nice job!

 
Loading ...