Hey guys today i have something small but good for you. This is my custom hintstring setup. The purpose of this is to be able to have a hint string that won't stop updating after 48 different hinstrings have been set. This is kind of like treminaor's hintstring fix, but it has a little bit more, to make it more like the real hintstrings.
JUST SO YOU KNOW
yes this originally is from trem's hintstrings, but has a re-written menufile and script to include more, which is why i claim it to be a different topic. Don't care what you say about that tho.
xSanchez78's Hintstrings
Let's Get Started!
First open your hud.menu in root/mods/modname/ui. If you dont have it in that folder, copy it from root/raw/ui into there. Then open it. Find and replace this
with this
Save it and close. Make sure in mod.csv you call this:
Now open up _zombiemode_utility.gsc. At the top put this in.
Now make a new file called _xS78_hintstrings.gsc. Place this into it:
Now to apply the hintstring setup, first make sure that each script you use this in has this at the top
Most zombiemode scripts have that at the top already. Now all you have to do is go into each script and find these for functions:
and replace them with this:
Very simple. You don't have to change the arguments in them or anything, just simply add an underscore in front of the function.
NOTES:
- UseTriggerRequireLookAt() will not make the hintstrings dissapear when you look away. They will always show as long as you are touching the trigger.
- This is scripted checking systems, not run by the engine. That means that sometimes your trigger may just in a wierd place or wierd shape and the hintstring may not show up because even though you can use the trigger and the default string would show, doesn't mean that the function "istouching()" will return true. I have made a way for you to add a radius for your trigger though. Instead of using just "_SetHintString( string );", for the triggers that don't seem to work, just add this: "_SetHintString( string, radius );". The radius can be set to anything and then it will check if you are close enough based on the radius to see the trigger. Experiment and see which radiuses work best for your trigger!
- Localized strings do NOT work! If you put in a localized string it most likely wont show up ( idk what happens its been a while since i tried ) but it most likely wont work so dont even try. Things like &"ZOMBIE_FLAMES_UNAVAILABLE" have to be replaced with a normal string like: "The power must be activated first"
That's all guys, hope you enjoy. By the way for those wondering: some people might not trust this since my last tutorial was released un-tested. Well trust me, this HAS been tested. I made this during christmas break ( 5 months ago ) and it was worked every since, so dont worry. Thanks, remember to credit me, and peace out.
Last Edit: June 20, 2015, 11:41:59 pm by alaurenc9
And by having a quick look through the code, whats stopping the hint string showing if the map is restarted while a hint string is shown.
dvars are stored through-out the session (which includes on a restart) and the hintstring will continue too show when the player goes back too spawn.
you think i should have an onPlayerConnect function to set all the dvars blank at the start of the game? I can do that. Yes i know i am a noob and used trem's hintstrings for the base code, but modified the menufile setup to be a bit better and also added the setvisibletoplayer crap to it as well. If people want to say i stole stuff again now is the time to do it.
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