TeamKill Code?


(TWIXMIX) #1

Hello,
I’m fairly new to programming and I just started looking around the ET source a few days ago.

I’m wonder where in the source could I find the code that processes if the player was team killed?

Any help would be appretiated.


(TWIXMIX) #2

Does anyone have the answer I’m looking for?


(Ancalagon) #3

Player_Die() is called when a player is killed. ( game --> g_combat.c )
G_LogTeamKill() remembers it in your stats and tells PunkBuster about it ( game --> g_stats.c )
And if you want the actual message that says “Killed by Teammate” have a look in CG_Obituary() ( cgame --> cg_event.c )


(TWIXMIX) #4

Thanks alot!!

Ok now I just gotta figure out how to make my idea work :???:
I want to make it so that if you are disquised when you are a covert op and you get teamkilled you keep your disquise