Raised This Month: $12 Target: $400
 3% 

Rune colours


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
`666
AlliedModders Donor
Join Date: Jan 2006
Old 06-15-2009 , 10:40   Rune colours
Reply With Quote #1

I set render colour of every rune in source to 255,255,10 & recompiled it, but I still get some runes that different colour, do I need edit something else?

Examples of what i done:

Code:
RegisterPlugin("SteelBootsName","SteelBootsDesc",{255,255,10},API_BADRUNE+API_USELANGSYSTEM)
Code:
	RegisterPlugin("FeatherName","FeatherDisc",{255,255,10},API_SPEEDCHANGE+API_NEWROUND+API_ROUNDSTARTED+API_USELANGSYSTEM+API_EVENTCHANGEWEAPON)
`666 is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 06-15-2009 , 15:56   Re: Rune colours
Reply With Quote #2

Looks like it is only bad runes that get other colours, they dont accept set colour for some reason
`666 is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 06-16-2009 , 11:53   Re: Rune colours
Reply With Quote #3

Ok, after experimenting I found out how to make bad runes glow same colour as good runes.

in runemod_base find
Code:
		if(g_RuneFlags[RuneIndex] & API_BADRUNE)
		{
			Color[0] = random_float(25.0,250.0)
			Color[1] = random_float(25.0,250.0)
			Color[2] = random_float(25.0,250.0)
		}
and change it to this

Code:
		if(g_RuneFlags[RuneIndex] & API_BADRUNE)
		{
			Color[0] = float(g_RuneColor[RuneIndex][0])
			Color[1] = float(g_RuneColor[RuneIndex][1])
			Color[2] = float(g_RuneColor[RuneIndex][2])
		}
If you know more efficient way to edit it please let me know.
`666 is offline
Old 06-15-2011, 03:09
princeli
This message has been deleted by Exolent[jNr]. Reason: Spambot
Old 03-21-2012, 05:55
maarin
This message has been deleted by asherkin. Reason: Spam.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode