1 (edited by LordSk 2008-11-09 18:46:29)

Topic: [MOD] Life 4 Kill

L4K is a mod where there is a hunter and zombies.
The zombie who kill the hunter become the hunter and win 2 points.
The zombies have only hammer and the hunter have shotgun and gun.

The winner is the player who have the best score.

Download release 0.5

ENJOY !!! big_smile

You can try it on ZPote Life4Kill server

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

2

Re: [MOD] Life 4 Kill

lordskelethom wrote:

PS : I have a problem, i want draw a message like killing spree messages on the top but i don't know how sad

I know that in the game you can do the command broadcast to do that in rcon ("F2"), but I don't know if it's a default function or if it's a mod function. Try to search it in the source code or something.

3

Re: [MOD] Life 4 Kill

GaBOr wrote:
lordskelethom wrote:

PS : I have a problem, i want draw a message like killing spree messages on the top but i don't know how sad

I know that in the game you can do the command broadcast to do that in rcon ("F2"), but I don't know if it's a default function or if it's a mod function. Try to search it in the source code or something.

Thank you GaBor, but i already know broadcast command, i would like the c++ function.
(I have search during almost one hour in the code sad )

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

4 (edited by datag 2008-11-09 18:05:40)

Re: [MOD] Life 4 Kill

lordskelethom wrote:

PS : I have a problem, i want draw a message like killing spree messages on the top but i don't know how sad

There are several ways to do this. You might take a look at my FlagBall- or Survival-MOD patch. A hint: You may need to forward-declare and use this function:

extern void send_broadcast(const char *text, int cid);

Edit: Take into account that most parts of your MOD will be deprecated with 0.5 and won't work.

"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." - Terry Pratchett -

5 (edited by Somerunce 2008-11-09 18:05:39)

Re: [MOD] Life 4 Kill

Search for the function send_broadcast in gs_server.cpp and the files in the src/game/server folder.

Edit: Oh, datag was faster. smile

6

Re: [MOD] Life 4 Kill

thanks big_smile

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

7

Re: [MOD] Life 4 Kill

Ermmm.. nice idea but why do you make the effort to create a mod that will probably only work for a couple of days yikes ?

*** JUSTICE ALWAYS WINS ***

8

Re: [MOD] Life 4 Kill

Captain AMN wrote:

Ermmm.. nice idea but why do you make the effort to create a mod that will probably only work for a couple of days yikes ?

A couple of days ?? i didi'nt know sad

Dont worry i will udapted it when release 0.5 of teeworlds comes

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