1

Topic: [HELP]Weapon settings

I cant find file in teeworlds source in which is settings of weapons. (Rate of fire, etc.)

Sorry for my bad english, help me please!

2 (edited by Slayer *gV* 2011-08-23 16:40:00)

Re: [HELP]Weapon settings

You can see them here.
However, if you want to manipulate them, you should do it in src/game/server/entities.

Edit: Tunings can be found in src/game/tuning.h

3

Re: [HELP]Weapon settings

Question: Are you trying to make different values too... i don't know... make one hack? Oo

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

4

Re: [HELP]Weapon settings

I am see "content.py"
I have a question - why "Hammer" have parameter "damage", but "Gun" are not have it. Why?

I am see "tuning.h" and i'm have a question:

MACRO_TUNING_PARAM(GunSpeed, gun_speed, 2200.0f) --- Its a rate of fire? Or rate of fire only in "content.py"?
MACRO_TUNING_PARAM(GunLifetime, gun_lifetime, 2.0f) --- ehm.. What is it?

5 (edited by Gavnasosiks 2011-08-23 16:56:49)

Re: [HELP]Weapon settings

Question: Are you trying to make different values too... i don't know... make one hack? Oo

I am want create a my crazy-dm/ctf/tdm mod

Sorry for double posting

6

Re: [HELP]Weapon settings

Gavnasosiks wrote:

I am see "tuning.h" and i'm have a question:

MACRO_TUNING_PARAM(GunSpeed, gun_speed, 2200.0f) --- Its a rate of fire? Or rate of fire only in "content.py"?
MACRO_TUNING_PARAM(GunLifetime, gun_lifetime, 2.0f) --- ehm.. What is it?

gun_speed is the speed of the bullet and lifetime is the time the bullet flies around until it disappears e.g if the lifetime is set to 0 the bullet will disappear immediately afte you have fired.

7

Re: [HELP]Weapon settings

Thanks you all! I am all understand!!

8

Re: [HELP]Weapon settings

Ok wink
And you don't need to make doubeposting. Use the edit funcion

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

9

Re: [HELP]Weapon settings

oh. I have a question: How i can make double bullets for "pistol(gun)"?

10

Re: [HELP]Weapon settings

Gavnasosiks wrote:

oh. I have a question: How i can make double bullets for "pistol(gun)"?

Don't.

Not Luck, Just Magic.