marked as target code--need help!

Posts 1–3 of 3 · Page 1 of 1
marked as target code--need help!
heloo.Can someone extract(and post) the code that mark you as tarket (with that KILL icon over your head) when you take the bomb on Sabotage ??It's the icon you see when the enemy have the bomb! I've search for that code but no results!
nobody know ??maybe someone can make a script that attach to players heads some icons !
Nemesis got the death icon, but it can probably be changed if you look for it:

Code:
addIcon(team)
{
        self endon( "death" );
        if ( !level.teambased )
                return;
        self endon("disconnect");
        wait .05;
        assert(team == "allies" || team == "axis");
        newdeathicon = newTeamHudElem( team );
        newdeathicon thread rozwalPoSmierci(self);
        newdeathicon.isShown = true;
        newdeathicon.alpha = .61;
        newdeathicon setShader("headicon_dead", level.objPointSize, level.objPointSize);
        newdeathicon setwaypoint( false, false );
        for(;;) {
                if ( self isUsingRemote() ) self waittill ( "stopped_using_remote" );
                newdeathicon.x = self.origin[0];
                newdeathicon.y = self.origin[1];
                newdeathicon.z = self.origin[2] + 84;
                wait .3;
        }
}
Code:
rozwalPoSmierci(player, endonthis, notForThisTeam)
{
        if(!isDefined(endonthis))
                endonthis = "rozwalone";
        self endon(endonthis);
        if(isDefined(notForThisTeam) && player.team == notForThisTeam) {
                self destroy();
                self notify(endonthis);
        }       
        player waittill ( "death" );
        self destroy();
}
EDIT:
Try replacing
Code:
newdeathicon setShader("headicon_dead", level.objPointSize, level.objPointSize);
with
Code:
newdeathicon setShader("waypoint_kill", level.objPointSize, level.objPointSize);
Untested, but who knows what can happen
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us