Adding Emblems To On-Display Text
In this guide i explain:
- Showing emblems on ingame screen
- Adding simple text under the emblem
- Adding colors to the text
- Line of code you can change to change the sound played when emblem comes up
ok so i will add a code here and explain how it works under:
ok so the actual thing in the code above that displays the icon of the 10th prestige emblem is:notifyData = spawnstruct();
notifyData.iconName = "rank_prestige10"; //Icon, 10th prestige
notifyData.titleText = "Text"; //Line 1
notifyData.notifyText = "Text"; //Line 2
notifyData.notifyText2 = "Text"; //Line 3
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100
notifyData.sound = "mp_level_up"; //Sound, level up sound here
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
notifyData.iconName = "rank_prestige10"; //Icon, 10th prestige
then under u can easely add me text like this:
and then simply add color to it:notifyData.titleText = "Text"; //Line 1
notifyData.notifyText = "Text"; //Line 2
notifyData.notifyText2 = "Text"; //Line 3
The line:notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100
notifyData = spawnstruct();
means that when you spawn it comes up.
This is for the sound that plays when the emblem appears on the screen:
notifyData.sound = "mp_level_up"; //Sound, level up sound here
Credits:
Abstract - for teaching me to do this whith his guide (link to his guide i learn this from)