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

[HUD]Perks through Menu

broken avatar :(
Created 9 years ago
by DidUknowiPwn
0 Members and 1 Guest are viewing this topic.
9,424 views
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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.
Community 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
Simple item for you guys tonight I made a menu macro to put perks through menu and not spawn by GSC. (To save such little resources that's needed ;-;)


Matches (pretty much) identically to the script version, the Y coordinate may or may not be off :D

Notes:
To add more than 4 perks into the UI you'll need to modify two things; one is a for loop in the GSC provided and the other is the macro call in menu.

GSC -> Function setPerkDvars() -> for loop -> replace 4 with the amount of perks you want to use.
UI -> HUD_PERK macro -> macro call (336 for start) -> add HUD_PERK(NUMBER); as many times needed to the number of perks in your map.

That's it.

Last Edit: July 17, 2015, 03:21:46 am by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
Simple item for you guys tonight I made a menu macro to put perks through menu and not spawn by GSC. (To save such little resources that's needed ;-;)

Thanks! Freeing up some hud elements!
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
lol, your such a legend, i really needed this
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
I had issues with this, but intend to try it again

I was curious if we could have them "fade" in and out rather than just appear tho, I had my hud element version doing this,m looks quite nice ( It also starts off slightly larger and shrinks to normal size in mine, is this possible? )
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
In the dl there is this line, causing an error:

Code Snippet
Plaintext
		type			ITEM_TYPE_ \

I changed it to this:
Code Snippet
Plaintext
		type			ITEM_TYPE_GAME_MESSAGE_WINDOW \
Last Edit: October 21, 2015, 01:39:25 am by MakeCents
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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?
×
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.
Community 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
In the dl there is this line, causing an error:

Code Snippet
Plaintext
		type			ITEM_TYPE_ \

I changed it to this:
Code Snippet
Plaintext
		type			ITEM_TYPE_GAME_MESSAGE_WINDOW \
type isn't even needed tbh. Also wrong type XD that allows stuff from obituary in (if explicitly defined).
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
type isn't even needed tbh. Also wrong type XD that allows stuff from obituary in (if explicitly defined).

I tried without it first, and it stopped erroring, but didn't work. :'( What is the right type?
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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?
×
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.
Community 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
I tried without it first, and it stopped erroring, but didn't work. :'( What is the right type?
Seriously shouldn't require one.
Set
Code Snippet
Plaintext
style			WINDOW_STYLE_SHADER \
Last Edit: October 21, 2015, 04:15:23 pm by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 8 October 2014
Last active: 7 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Lossy's Groups
try
Code Snippet
Plaintext
type			ITEM_TYPE_OWNERDRAW \
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
try
Code Snippet
Plaintext
type			ITEM_TYPE_OWNERDRAW \

I tried several things, that was one of them that didn't work for me, did it work for you?

Seriously shouldn't require one.
Set
Code Snippet
Plaintext
style			WINDOW_STYLE_SHADER \

I replaced type with that and it also didn't work.


Only thing that worked for me was:
Code Snippet
Plaintext
		type			ITEM_TYPE_GAME_MESSAGE_WINDOW \
Last Edit: October 21, 2015, 11:31:54 pm by MakeCents
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 6 months 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?
×
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.
Community 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
¯\_(ツ)_/¯
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 8 October 2014
Last active: 7 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Lossy's Groups
Sorry for late reply, but the one i posted worked for me but it might because i'm using the perks in "competitivemodescores" menuDef instead of the weapons one, forgot to mention that.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2012
Last active: 8 months ago
Posts
577
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
My preferred name is "xSanchez78".
Check me out here: www.steamcommunity.com/id/xSanchez78
×
alaurenc9's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
alaurenc9's Contact & Social LinksxSanchez78xSanchez78xSanchez78xSanchez78xSanchez78xSanchez78
Sorry for late reply, but the one i posted worked for me but it might because i'm using the perks in "competitivemodescores" menuDef instead of the weapons one, forgot to mention that.

I decided to do this too, because when you take damage, your ammo hud hides, which results in your perks hiding. Also the only item type I could get to work is what MakeCents did, "ITEM_TYPE_GAME_MESSAGE_WINDOW".

I don't know why you say that it doesn't need one. Obviously it does when an error is thrown without one in mod builder :P
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 September 2015
Last active: 4 days ago
Posts
256
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Signature
×
AllMoDs's Groups
had to cred you on my map for this post :D
one thing i cant find how to do if potable

i want to run this in the hud.menu

 
Spoiler: click to open...
createKai()
{
   self waittill("do_it");
   {
      self.kaimax = 0;
      self.kaiBar = self createBar((0, 1, 1), 200, 13);
      self.kaiBar setPoint("BOTTOMRIGHT", "BOTTOMRIGHT", -1, -42);   //setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", -1, -7 );
   }
   for (;;)
   {
     self.kaiBar updateBar(self.kai / 100);
     wait 0.001;
   
   }
}

so i want to run the bare out the hud.menu and a way to update it in gsc think you can help


found a way to do it ty
Last Edit: May 14, 2017, 11:49:20 pm by AllMoDs
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 4 days ago
Posts
645
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTheRevenantSkullTeffrieTeffrieGympie5#5971
I used this in the past but I want to very thank you for this discovery!
It works really well and it's easy to use. Thank you! :)

 
Loading ...