Re: [Modification] Red Laser/Green Laser
please tell me how does it work
You are not logged in. Please login or register.
Teeworlds Forum → Graphics → [Modification] Red Laser/Green Laser
please tell me how does it work
It easy to change the color: (If you have already C++ and the source)
1. Open the file src\game\client\componets\items.cpp
2. Search in this file for "laser"
3. Under this word you find "inner_color" and "outer_color" (not the ones with // infront)
4. Inner_color is the color of the laser, outer_color is the color of the laser at the end
5. After this two values you see something like "vec4 inner_color(0.5f,0.5f,1.0f,1.0f);"
6. The first 0.5f is the red color, the second 0.5 is the green color and the first 1.0 is the blue color the last 1.0 you don't need to change (1.0 = max; 0.0 = min)
7. Change the numbers and compile it.
FINISH
yeah, i like it, really nice i think that could be in 5.2 or 6.0, to select the colour
@KillaBilla: Do i have to change the numbers like in a graphic programm, that's rgb?
Yes: But its not the html rgb in html the highest number is ff for the laser the highest is 1.0.
Its rgb but you need an f behind the value, I don't know why but it is needed.
For Example: (1.0f,0.0f,0.0f,1.0f) is a red laser
(0.0f,1.0f,0.0f,1.0f) is a green laser
Now you have to know how to mix up color (red + blue = purple ect.)
Is there a page like this: http://tomheller.de/theholycymbal/html-farben.html
for these colours?
No, there is no exiting page like this, you have to do it yourselfe, like:
HTML TW
ff 1.0
00 0.0
75 0.5 (ca.)
mmh lets see if i understood it
when not i will look in google ^^
hope it will be allowed to change the colour in the next teeworlds version :]
Hello everbody,
I made a small tool for those people who wants to make there own laser color! You just have to enter the html hex color like "ff00ff" and to press enter, then you get the tw color, but you have to put it in the source without me and the tool . I am sorry because it is only for Windows, it is written in Batch a small Windows programming language. To get the HTML color look on a page like this: http://tomheller.de/theholycymbal/html-farben.html. And don't enter the # from the html hex.
Download: Windows (3 KB) Don't change anything in this file!
Teeworlds Forum → Graphics → [Modification] Red Laser/Green Laser
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.