Little Help on kill messages . . .


(uvhannes) #1
<uv-hannes-`&gt; if (message) {
&lt;uv-hannes-`>    message = CG_TranslateString( message );
<uv-hannes-`&gt;    if ( message2 ) {
&lt;uv-hannes-`>     message2 = CG_TranslateString( message2 );
<uv-hannes-`&gt;     CG_AddPMItem( PM_DEATH, va( "%s %s %s%s", targetName, message, attackerName, message2 ), deathShader );

<uv-hannes-`> now i only want to show the active clients messages

  • sp^darkangel watches Mars` exit the channel quickly

<uv-hannes-`&gt; if (message && attacker == cg.snap-&gt;ps.clientNum) {
&lt;uv-hannes-`>    message = CG_TranslateString( message );    .....

<uv-hannes-&gt; this works for online play &lt;uv-hannes-> but not for demos
<uv-hannes-`> any ideas?

thx for reading :slight_smile:


(uvhannes) #2

closed, got it :slight_smile:


(kamikazee) #3

If it wasn’t something stupid, it might help others in the future if you posted what was the problem and how you solved it…


(uvhannes) #4

i just wanted that only my very own frags will popup.
Just added a clientNumber with cg.snap->ps.clientNum.

then an if clause for the displaycheck and voila its done.