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

Proper use of SetCursorHint

broken avatar :(
Created 11 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
2,791 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere'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
Few questions about SetCursorHint-function in WaW. 1st. I tried to add my own material to it by
Code Snippet
Plaintext
trigger SetCursorHint("hint_material");
But for some reason it isnt working, showing normal hand-icon. I have material in mod.csv and preCached on top of zombiemode main in mapname.gsc.
2nd. Is it possible to be moved under hinstring rather than having it next to hintstring?
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
You can add an itemdef in menu. Make your own function to set a dvar for it. I use this for the client hintstring option of my perks. The icon appears below the hintstring
Last Edit: November 10, 2015, 02:51:51 am by MakeCents
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
http://i.imgur.com/TzFR5EG.png

only ones you can use are those and they're controlled by engine
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
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.
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 LinksHarryBo000[email protected]HarryBo21
If you seT no icon, you can just fake one via script, tbh there isnt really a need to go that far tho

why dont you do something cool using a waypoing instead? Like the scavengers projectile, so you can only see it up close
Last Edit: November 10, 2015, 05:23:35 am by Harry Bo21
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
Think he means something like this but prob for guns or something, but works the same, using menu

! No longer available
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere'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
http://i.imgur.com/TzFR5EG.png

only ones you can use are those and they're controlled by engine

Dang, then I cant use those

Think he means something like this but prob for guns or something, but works the same, using menu

! No longer available

Yeah, this is the thing I meant. Only want it to show with one trigger, so yeah. In what menufile should I be adding the itemDef then? And what kind of itemDef would it be?
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
Yeah, this is the thing I meant. Only want it to show with one trigger, so yeah. In what menufile should I be adding the itemDef then? And what kind of itemDef would it be?

Triggers are only relevant to your method. I made a different hintstring method for the perks using a dvar to set the hintstrings in menu. Then to add the icon, it was just a matter of adding another itemdef to that looking for another dvar. This can be set in gsc.

For example, here is trems hintstring fix, that is done this way, without the added image of course:
http://ugx-mods.com/wiki/index.php?title=Hintstrings_not_updating

The itemdef to add could be like this:
Code Snippet
Plaintext
itemDef
{
name "hintstringicon"
rect 15 15 30 30
forecolor 1 1 1 1
ownerdraw CG_PLAYER_WEAPON_BACKGROUND
exp material (dvarstring("myhintstringicon"));
visible when ( dvarstring("myhintstringicon") != "");
decoration
}


Then you would edit the gsc so it set that dvar to "" or the shader you want to see at the time. How you do that is up to you, I use a multidimensional array and pass a var to get everything I need. But for his, you could prob just add another var to the sethintstring function, then check ifdefined set the dvar to that var, which would be the name of the material, but if it isn't defined, to set it to "". And where he sets all the dvars to " " or 0 in sethinstring_show, you would set your new dvar to "". That should work. You may have to adjust your rect though.

There may be an easier way, I haven't tried, cause I already had a system for hintstrings in menu, so I just updated that.
Last Edit: November 10, 2015, 01:44:33 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere'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
Triggers are only relevant to your method. I made a different hintstring method for the perks using a dvar to set the hintstrings in menu. Then to add the icon, it was just a matter of adding another itemdef to that looking for another dvar. This can be set in gsc.

For example, here is trems hintstring fix, that is done this way, without the added image of course:
http://ugx-mods.com/wiki/index.php?title=Hintstrings_not_updating

The itemdef to add could be like this:
Code Snippet
Plaintext
itemDef
{
name "hintstringicon"
rect 15 15 30 30
forecolor 1 1 1 1
ownerdraw CG_PLAYER_WEAPON_BACKGROUND
exp material (dvarstring("myhintstringicon"));
visible when ( dvarstring("myhintstringicon") != "");
decoration
}


Then you would edit the gsc so it set that dvar to "" or the shader you want to see at the time. How you do that is up to you, I use a multidimensional array and pass a var to get everything I need. But for his, you could prob just add another var to the sethintstring function, then check ifdefined set the dvar to that var, which would be the name of the material, but if it isn't defined, to set it to "". And where he sets all the dvars to " " or 0 in sethinstring_show, you would set your new dvar to "". That should work. You may have to adjust your rect though.

There may be an easier way, I haven't tried, cause I already had a system for hintstrings in menu, so I just updated that.

I have Trems hintstring fix added, so thats one thing done already :P I will take a look at this tomorrow, thanks

 
Loading ...