1 (edited by erd 2009-10-26 19:10:22)

Topic: [CLIENT] Laser color [version 0.3]

Hey,
I found the topic http://www.teeworlds.com/forum/viewtopic.php?id=4246 . And well, I don't like the solutions that are provided there to change the color of the laser (take a win-only HEX Editor, edit the files and compile yourself, or download one client for one color, wtf?!).
So I've made a client myself, where you can use every color you want to.

Some Screenshots:
Version 0.1
http://ubuntu-pics.de/bild/26449/bildsc … fhQe8F.png
http://ubuntu-pics.de/bild/26450/bildsc … 8Ht6Z1.png
http://ubuntu-pics.de/bild/26451/bildsc … 1mHZ0Q.png
http://ubuntu-pics.de/bild/26452/bildsc … Fp3tTD.png
Version 0.2 / 0.3
http://ubuntu-pics.de/bild/26703/screenshot0008_0Cm9wv.png
Linux binary: version 0.1 0.2 0.3
Windows binary: version 0.1 0.2 0.3
Mac binary: sorry, dont know how to make one...
Source: version 0.1 0.2 / 0.3

Ideas, what I could implement for the next version (but don't know if I'm able to wink ):
- Buttons for colorpresets (default, red, green, blue, cyan, orange, pink, black, white...)
- Lasercolor = Teecolor
- red team: red laser; blue team: blue laser
- ...post your own ideas

Hope someone like it :-)

CHANGELOG
version 0.2
- fixed: red and green forget their values if less then 500
- options moved to own tab "Advanced"
- alpha channel added
- fading added with individual speed
- color presets added
- value of colorchannel added
- preview added (thanks to Bobynator)
version 0.3
- teeworlds 0.5.2 instead of 0.5.1, only new binarys

2

Re: [CLIENT] Laser color [version 0.3]

I like it. I play instagib a good deal, so this will be fun to have.

Mine's pink. ;D

Ex-King of Teeworlds

3

Re: [CLIENT] Laser color [version 0.3]

i think the idea:

red team - red laser

blue team - blue laser

is very good !

maybe you can try that you can make a laser for each team (so 2 colours)

nice ideas ^^

4

Re: [CLIENT] Laser color [version 0.3]

its the first good one to change the laser colour. i think it should be implemented in the next version, also:
       red team  -  red laser
       blue team - blue laser

nice! [+1]

5

Re: [CLIENT] Laser color [version 0.3]

nice but i made two months ago this modification.
look:
http://www.teeworlds.com/forum/viewtopic.php?id=4702

6 (edited by erd 2009-10-04 17:27:19)

Re: [CLIENT] Laser color [version 0.3]

Hey Bobynator,
I couldn't compile your mod (in the original source there were some lines commented out, you removed the //), then I couldn't join any server, version is different. Why the hell you edited gamecore.cpp...? With the original gamecore.cpp it is working, nice ;-) But I don't like "Hue", "Sat." and "Lht.", I prefer RGB tongue Well, I think I have to implement more features in the next version then you... xD

And thanks to the other replys, too ;-)

7 (edited by Landil 2009-10-05 07:22:48)

Re: [CLIENT] Laser color [version 0.3]

is it possible to colorise the laser skin with the color of the laser beam?

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

8 (edited by Bobynator 2009-10-05 12:43:54)

Re: [CLIENT] Laser color [version 0.3]

@erd_bear
yes i changed something in the gamecore, but the things which i changed is for my srv mod. I made a client mod and a srv mod in one source. XD

@landil
yes its possible but it looks not very nice.


edit:
I got it!! different colors for the teams. But there is one problem. there is need a small modification for the server. without this modification the client dont work. maby matricks can add code for 5.2.
replace this in laser.cpp

void LASER::snap(int snapping_client)
{
    if(networkclipped(snapping_client))
        return;

    NETOBJ_LASER *obj = (NETOBJ_LASER *)snap_new_item(NETOBJTYPE_LASER, id, sizeof(NETOBJ_LASER));
    obj->x = (int)pos.x;
    obj->y = (int)pos.y;
    obj->from_x = (int)from.x;
    obj->from_y = (int)from.y;
    obj->start_tick = eval_tick;
}

to this

void LASER::snap(int snapping_client)
{
    if(networkclipped(snapping_client))
        return;

    NETOBJ_LASER *obj = (NETOBJ_LASER *)snap_new_item(NETOBJTYPE_LASER, id, sizeof(NETOBJ_LASER));
    obj->x = (int)pos.x;
    obj->y = (int)pos.y;
    obj->from_x = (int)from.x;
    obj->from_y = (int)from.y;
    obj->start_tick = eval_tick;
    obj->team = game.players[owner]->team;
}

I hope matricks can add this in 5.2!!!

9

Re: [CLIENT] Laser color [version 0.3]

Bobynator wrote:

@erd_bear
yes i changed something in the gamecore, but the things which i changed is for my srv mod. I made a client mod and a srv mod in one source. XD

@landil
yes its possible but it looks not very nice.


edit:
I got it!! different colors for the teams. But there is one problem. there is need a small modification for the server. without this modification the client dont work. maby matricks can add code for 5.2.
replace this in laser.cpp

void LASER::snap(int snapping_client)
{
    if(networkclipped(snapping_client))
        return;

    NETOBJ_LASER *obj = (NETOBJ_LASER *)snap_new_item(NETOBJTYPE_LASER, id, sizeof(NETOBJ_LASER));
    obj->x = (int)pos.x;
    obj->y = (int)pos.y;
    obj->from_x = (int)from.x;
    obj->from_y = (int)from.y;
    obj->start_tick = eval_tick;
}

to this

void LASER::snap(int snapping_client)
{
    if(networkclipped(snapping_client))
        return;

    NETOBJ_LASER *obj = (NETOBJ_LASER *)snap_new_item(NETOBJTYPE_LASER, id, sizeof(NETOBJ_LASER));
    obj->x = (int)pos.x;
    obj->y = (int)pos.y;
    obj->from_x = (int)from.x;
    obj->from_y = (int)from.y;
    obj->start_tick = eval_tick;
    obj->team = game.players[owner]->team;
}

I hope matricks can add this in 5.2!!!

Already asked a loooong time ago boby, and the answer is no.

lordskelethom - want to reach me quickly? https://discord.gg/teeworlds

10

Re: [CLIENT] Laser color [version 0.3]

hmm why? there is no problem to add one line code into the sricpt.

11

Re: [CLIENT] Laser color [version 0.3]

Bobynator wrote:

hmm why? there is no problem to add one line code into the sricpt.

Teeworlds dev's point of view is different. Every modification (server or client) to improve player reaction like change laser color and so on are not good seen. They are like "little cheats". And won't never be integrated in the official project.
(I remember this because of one my old post about something similar)

Support Staff - ESL.eu Teeworlds Admin

12

Re: [CLIENT] Laser color [version 0.3]

if you say that changing the laser color is cheating, then is changing the tee-color cheating too ?! nonsense...xD

13

Re: [CLIENT] Laser color [version 0.3]

Zeratul wrote:

if you say that changing the laser color is cheating, then is changing the tee-color cheating too ?! nonsense...xD

in official version you can change your color tee, not others... only in client modification like TeeComp you can change enemy color, and like said by many pros, it's considered an unfair advantage.

the problems of changing enemy color is that you can find quickly the aim. your eyes reflex are better with other colours. Laser is the same.

Support Staff - ESL.eu Teeworlds Admin

14 (edited by Sushi Tee 2009-10-05 21:43:10)

Re: [CLIENT] Laser color [version 0.3]

same thing with high detail and its build in in the official release so its nonesense... like zeratul allready said wink

anyway... thats not the topic here wink
so... b2t!

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

15

Re: [CLIENT] Laser color [version 0.3]

Matricks answer me that (i found the mail) :

"Will not apply. Applying this patch raises a few design issues. There
is a color attached to each weapon and the color for the laser is
blue. If we were to change the color depending on the shooter, this
color scheme will break and everything will feel a bit funky. If we
should do it, it should be done across all weapons to be consistent.

I can understand that this patch is great for Instagib but we are not
the developer of that."

lordskelethom - want to reach me quickly? https://discord.gg/teeworlds

16

Re: [CLIENT] Laser color [version 0.3]

the problems of changing enemy color is that you can find quickly the aim. your eyes reflex are better with other colours. Laser is the same.

i dont think that it is the same. with changing the enemy color you get a personal advantage. but if the laser is changeable it isnt cheating. because you can change ALL weapons with changing the game.png etc. is this cheating too? think not.
which advantage do you get when your laser is red and the enemylaser is blue? you will know who is in your team... xD is it an advantage? think not.
which advantage do you get when ALL laser are pink? can you aim better? think not.
will you see the enemy more easily when his LASER has an other color? think not.

17 (edited by Lanta 2009-10-06 13:39:38)

Re: [CLIENT] Laser color [version 0.3]

Zeratul wrote:

i dont think that it is the same. with changing the enemy color you get a personal advantage. but if the laser is changeable it isnt cheating. because you can change ALL weapons with changing the game.png etc. is this cheating too? think not.

I think not too, but if it will be possible to change enemy's weapon colors will be a YES.

Zeratul wrote:

which advantage do you get when your laser is red and the enemylaser is blue? you will know who is in your team... xD is it an advantage? think not.

If the color is really light like yellow or something else i could react better and move myself before get killed... red or blue is not a problem for me. They are not light colors.

Zeratul wrote:

which advantage do you get when ALL laser are pink? can you aim better? think not.

no, i can react better when the other shoot me.

Zeratul wrote:

will you see the enemy more easily when his LASER has an other color? think not.

no, but I can see their laser better tongue So i can react faster and don't get killed.

Support Staff - ESL.eu Teeworlds Admin

18

Re: [CLIENT] Laser color [version 0.3]

i dont think that you can react on a laser shoot, after its going to hit you. too fast.

19

Re: [CLIENT] Laser color [version 0.3]

Zeratul wrote:

i dont think that you can react on a laser shoot, after its going to hit you. too fast.

You can, if the laser color is really light and if you can easily see if the laser is an enemy one or one of your team.

Support Staff - ESL.eu Teeworlds Admin

20

Re: [CLIENT] Laser color [version 0.3]

mrlantastic wrote:

You can, if the laser color is really light and if you can easily see if the laser is an enemy one or one of your team.

would like to see that, how you react on an laser shoot. the laser will hit you before you recognize it

21 (edited by erd 2009-10-07 15:25:52)

Re: [CLIENT] Laser color [version 0.3]

UPDATE
- fixed: red and green forget their values if less then 500
- options moved to own tab "Advanced"
- alpha channel added
- fading added with individual speed
- color presets added
- preview added (thanks to Bobynator, I looked into your source... wink)

See first post for downloadlink.
Have fun!

22

Re: [CLIENT] Laser color [version 0.3]

No 0.2 Windows binary?

23

Re: [CLIENT] Laser color [version 0.3]

Crises wrote:

No 0.2 Windows binary?

ye right it doesnt work

24

Re: [CLIENT] Laser color [version 0.3]

why does it not work? sad

25

Re: [CLIENT] Laser color [version 0.3]

no i mean the 2.0 windos is the same like 1.0 windows.... so there is a problem hmm xD