1

Topic: 0.6.1 Disable the smoke in the explosion event

Hello!
I'm new to the forums, and I'm currently coding a teeworlds server mod.
My question is: If you shoot with the grenade launcher, you get the explosion event which includes fire and smoke effects.
How can I disable the smoke effect. Is it possible doing this only server-sided? version = 0.6.1
Thank you.

2

Re: 0.6.1 Disable the smoke in the explosion event

Impossible remove smoke effect server-side..

3

Re: 0.6.1 Disable the smoke in the explosion event

As CarmineZ said, you cannot disable the smoke effect separately server-side, but you can remove the whole explosion event, means it will remove the orange fire plus the smoke.

Not Luck, Just Magic.

4 (edited by artificialguy 2011-09-23 17:39:25)

Re: 0.6.1 Disable the smoke in the explosion event

Thank you for the quick reply, can anyone tell me how to change the player body color on the server side (character.cpp)?

5

Re: 0.6.1 Disable the smoke in the explosion event

It's not hard, look in server/player.h, unless you are an I-want-my-own-rainbow-city-but-cant-code.

Not Luck, Just Magic.

6

Re: 0.6.1 Disable the smoke in the explosion event

Thanks I found it, but it's an int, and no RGB? so what do I need to enter if I want a gray color?
m_pPlayer->m_TeeInfos.m_ColorBody = ???;

7

Re: 0.6.1 Disable the smoke in the explosion event

artificialguy wrote:

Thanks I found it, but it's an int, and no RGB? so what do I need to enter if I want a gray color?
m_pPlayer->m_TeeInfos.m_ColorBody = ???;

Trying is the best way to learn. Tip:

g_Config.m_LaserColorOuter = (lro<<16) + (lgo<<8) + lbo;
Not Luck, Just Magic.