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 gun hint strings

broken avatar :(
Created 10 years ago
by Harry Bo21
0 Members and 1 Guest are viewing this topic.
3,646 views
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
Hey guys,

someone mind explaining to me how to set up the hintstrings for new custom weapons?

They say ZOMBIE_WEAPON_DESERT_EAGLE or similar when you go up to them, after youve bought it the correct text appears (but doesnt reference the name, just buy ammo, buy upgraded ammo, I think thats normal)

The stg, which i replaced with the Origins one and those guns still work right but i guess thats expected ;)

Also, my prefab works, in that the gun appears when you buy it, but shouldnt it disappear when you drop it? Mine stays there the rest of the game?

Thanks all, im determined to make these guns perfect :)
Marked as best answer by Harry Bo21 10 years ago
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998'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.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
The hintstring for wallbuys are handled in _zombiemode_weapons.gsc
Open this .Gsc, and search for the function:
Code Snippet
Plaintext
init_weapons()

In this func, you'll find all the guns, which are included in your map. When you import a custom gun, you always have to add it to this function, following one of the next templates:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							&"HINTSTRING DEFINED IN LOCALIZEDSTRINGS", 					COST,		"VOX",	VARIATION NUMBER (VOX),          AMMO_COST (Not needed);
Or:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							"HINTSTRING DEFINED HERE", 					COST,		"VOX",	VARIATION NUMBER (VOX),              AMMO_COST (Not needed );

As you can see, when you remove the "&" symbol, it doesn't look in a String file (Normally Zombie.str), but it displays the text between "". You have the choise to edit your hintstring here in script, or add it to a .str file.

So, just remove the "&" from your weaponline, and put something between the "".

For example:

Code Snippet
Plaintext
 add_zombie_weapon( "deagle", 							"Press & hold &&1 to buy the Desert Eagle [Cost: 1000]", 					1000,		"vox_crappy",	8,            450 (Not needed);

The "&&1" part will show up as the use button in your game, so it will say: Press & hold F to buy the Desert Eagle.

Hope this helped, and if you have more questions, feel free to reply.

Lukkie1998
Last Edit: October 22, 2014, 10:58:54 pm by lukkie1998
broken avatar :(
×
broken avatar :(
Location: gbsomerset
Date Registered: 2 March 2014
Last active: 11 months ago
Posts
169
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Now you see me, Now you don`t
×
FATKIDSLOV3CAK3's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
FATKIDSLOV3CAK3's Contact & Social LinksHypercaineHypercaineZombies_dieFATKIDSLOV3CAK3
The hintstring for wallbuys are handled in _zombiemode_weapons.gsc
Open this .Gsc, and search for the function:
Code Snippet
Plaintext
init_weapons()

In this func, you'll find all the guns, which are included in your map. When you import a custom gun, you always have to add it to this function, following one of the next templates:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							&"HINTSTRING DEFINED IN LOCALIZEDSTRINGS", 					COST,		"VOX",	CHANCE YOU'LL GET IT IN THE BOX );
Or:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							"HINTSTRING DEFINED HERE", 					COST,		"VOX",	CHANCE YOU'LL GET IT IN THE BOX );

As you can see, when you remove the "&" symbol, it doesn't look in a String file (Normally Zombie.str), but it displays the text between "". You have the choise to edit your hintstring here in script, or add it to a .str file.

So, just remove the "&" from your weaponline, and put something between the "".

For example:

Code Snippet
Plaintext
 add_zombie_weapon( "deagle", 							"Press & hold &&1 to buy the Desert Eagle [Cost: 1000]", 					1000,		"vox_crappy",	8 );

The "&&1" part will show up as the use button in your game, so it will say: Press & hold F to buy the Desert Eagle.

Hope this helped, and if you have more questions, feel free to reply.

Lukkie1998

nice tut lukkie you should do more of them :)
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
The hintstring for wallbuys are handled in _zombiemode_weapons.gsc
Open this .Gsc, and search for the function:
Code Snippet
Plaintext
init_weapons()

In this func, you'll find all the guns, which are included in your map. When you import a custom gun, you always have to add it to this function, following one of the next templates:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							&"HINTSTRING DEFINED IN LOCALIZEDSTRINGS", 					COST,		"VOX",	CHANCE YOU'LL GET IT IN THE BOX );
Or:
Code Snippet
Plaintext
add_zombie_weapon( "WEAPONNAME", 							"HINTSTRING DEFINED HERE", 					COST,		"VOX",	CHANCE YOU'LL GET IT IN THE BOX );

As you can see, when you remove the "&" symbol, it doesn't look in a String file (Normally Zombie.str), but it displays the text between "". You have the choise to edit your hintstring here in script, or add it to a .str file.

So, just remove the "&" from your weaponline, and put something between the "".

For example:

Code Snippet
Plaintext
 add_zombie_weapon( "deagle", 							"Press & hold &&1 to buy the Desert Eagle [Cost: 1000]", 					1000,		"vox_crappy",	8 );

The "&&1" part will show up as the use button in your game, so it will say: Press & hold F to buy the Desert Eagle.

Hope this helped, and if you have more questions, feel free to reply.

Lukkie1998

This is all correct, (although I find it much tidier to edit the hintstrings in the .str file) except the number at the end of the line is NOT how common it is in the box...
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998'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.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
This is all correct, (although I find it much tidier to edit the hintstrings in the .str file) except the number at the end of the line is NOT how common it is in the box...

What's it then? How rare it is? lel

Lukkie1998
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
What's it then? How rare it is? lel

Lukkie1998

It is what the character says, they have multiple dialog for the same thing. ie vox_crappy, is usually when you get a kar98 or something from the box, the number indicates what vox file the game uses. Hope I explained it right lol
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998'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.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
It is what the character says, they have multiple dialog for the same thing. ie vox_crappy, is usually when you get a kar98 or something from the box, the number indicates what vox file the game uses. Hope I explained it right lol
Wow, that's quite a difference :D I'll change it in the tutorial. Thanks for letting me know!

Lukkie1998
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
Thanks guys

I marked you as best answer Lukkie, I havent actually tested it yet, but your explanation was pretty clear. Looks spot on to me, will go set it up right when I get in

Thanks again, +1 respect ;)

I was unaware of the str file, I knew it'd be something like that. Thanks again :)
Last Edit: October 23, 2014, 12:33:10 am by Harry Bo21
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998'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.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Glad it helped you out ;)

Lukkie1998
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 did have one question though

I remember reading here a lot that there is a limit on hint strings?

Wouldnt this contribute to that? If you can "specify" strings anywhere, why do people have a problem?

Is this something that is gonna come bite me later in other words lol ;)
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998'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.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I did have one question though

I remember reading here a lot that there is a limit on hint strings?

Wouldnt this contribute to that? If you can "specify" strings anywhere, why do people have a problem?

Is this something that is gonna come bite me later in other words lol ;)

Well, I did all my custom guns like that, never hit the limit. Once you hit the limit, new hintstrings won't show up in-game. If you may hit the limit, there is always another way, to make your hintstrings show. This is using a HUD element. A complete tutorial on what it means, and how it does it, can be found here!

Lukkie1998
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
Cool, thanks bro ;)

 
Loading ...