1

Topic: [RACE] Need to use Hammer

Hi everyone !
First, sorry for my bad english, this is because I am French.
I tried to make my server, and it works perfectly, except that I have one bug that is boring me : the hammer doesn't work, when I hit someone with it, nothing happen ..
I took this MOD : http://www.teeworlds.com/forum/viewtopic.php?id=3167
And I took the .cfg file from this post too ! (http://osgc.os.funpic.de/teeworlds/race/race.cfg) but I have deleted the two last settings (player_hooking & player_collision).
Can you help me ?
Thank you very much !

2

Re: [RACE] Need to use Hammer

Maybe Put Player Hooking Back -_-...

_|---------------------------------------|_
  |Skins StudioPaw Steam Icon Graphics |
_|---------------------------------------|_

3

Re: [RACE] Need to use Hammer

No no if I put player hooking back we can touch the others with the hook !
I juste want that we can touch the tees with the hammer too.
Thanks smile

4

Re: [RACE] Need to use Hammer

hammer dont work becouse in Race Mod set DM style
You have two way:
1 Modificate code of RACE mod
2Play with CTF gametype (standart server)

BigShit! RACE server is always for you. Sry for my bad eng.

5

Re: [RACE] Need to use Hammer

I need the RACE mode to be able to tune the server, I like it big_smile
With teleport, gravity, ... it's funny ! tongue
So I have one choice : modificate code of RACE Mod, how can I do that ? =s
Thanks !

6 (edited by vVv 2009-02-25 01:47:01)

Re: [RACE] Need to use Hammer

I am not so good at programming
If you ask this question it will be difficult sad
And also we dont have source code of RACE mod
P.S. You can tune gravity in standart server too

BigShit! RACE server is always for you. Sry for my bad eng.

7

Re: [RACE] Need to use Hammer

ive got a racemod where you can play on teams and im having the same problem. i want to host h race maps but the tees cant hammer eachother...:(

Bye.

8

Re: [RACE] Need to use Hammer

Yes, this is why I want that, because I love the H Races but we can play on =/

9

Re: [RACE] Need to use Hammer

@vVv... the patch for the racemod is posted so you have the source code xD
If someone will change it for h race pls do it... just make a patch for the racemod and we will update it wink

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 ^^

10 (edited by Retime 2009-02-25 20:26:41)

Re: [RACE] Need to use Hammer

This was an easy fix - I can't recall everything i've changed in teesource, but I believe this was the line that needed the alter:

In character.cpp::

IN FUNCTION:

void CHARACTER::fire_weapon()

FIND

if(!game.controller->is_race())
                num = game.world.find_entities(pos+direction*phys_size*0.75f, phys_size*0.5f, (ENTITY**)ents, 64, NETOBJTYPE_CHARACTER);

REPLACE WITH

if(!game.controller->is_race() || (game.controller->is_race() && config.sv_teamdamage))
                num = game.world.find_entities(pos+direction*phys_size*0.75f, phys_size*0.5f, (ENTITY**)ents, 64, NETOBJTYPE_CHARACTER);

and recompile the source.


You should be good to go from there. I may have forgotten something - but that should allow hammers to register in race gametype as long as sv_teamdamage is on (the reason for this is so you can turn it off - you don't want hammer damage in all maps =p)

11

Re: [RACE] Need to use Hammer

Jo8192 see here

BigShit! RACE server is always for you. Sry for my bad eng.