1

Topic: [HELP] Kill Player

Hello. I'm making a mod. Can someone give me an example how to kill player from gamecore.cpp? I found a function in src/game/server/entities/character.cpp - int die(). I guess that function kills the player. I would like to make a death message too(player1 killed player2 with weapon of my choice).

2

Re: [HELP] Kill Player

die(killer, weapon)
I think that will kill a player.

3

Re: [HELP] Kill Player

If it was so easy, would i post here? I need to get that function in gamecore.cpp. Including it or copying it doesn't work.

Paths:

scr/game/gamecore.cpp
scr/game/server/entities/character.cpp

4

Re: [HELP] Kill Player

The racemod contains such a function...maybe you find your solution there.

Qi - high level gaming
qi.m0g.net

5

Re: [HELP] Kill Player

shine771 wrote:

If it was so easy, would i post here? I need to get that function in gamecore.cpp. Including it or copying it doesn't work.

Paths:

scr/game/gamecore.cpp
scr/game/server/entities/character.cpp

I don't know how much you can, so yes.