AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   RuneMod (https://forums.alliedmods.net/forumdisplay.php?f=113)
-   -   Rune colours (https://forums.alliedmods.net/showthread.php?t=94779)

`666 06-15-2009 10:40

Rune colours
 
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 06-15-2009 15:56

Re: Rune colours
 
Looks like it is only bad runes that get other colours, they dont accept set colour for some reason

`666 06-16-2009 11:53

Re: Rune colours
 
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.


All times are GMT -4. The time now is 04:09.

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