Ive been trying to edit the Nuke killstreak to only kill the opposite team but I really cant get it to work at all.
originally the NukeDeath() function has just this
Code:
foreach( player in level.players )
{
player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper( level.nukeInfo.player, level.nukeInfo.player, 999999, 0, "MOD_EXPLOSIVE", "nuke_mp", player.origin, player.origin, "none", 0, 0 );
}
Every time I try to define the other team it just does not seem to work. Even when I put in something simple like just printing out a line for reference like "self iPrintlnBold("xx");" inside that function, it doesnt work.
Ive tried
Code:
if (player.pers["team"] != self.pers["team"])
Code:
otherteam = getOtherTeam(self.team);
foreach ( player in level.otherteam)
dont work...
Again when I try something simple like
Code:
foreach( player in level.players )
{
if( player.pers["team"] == "axis" )
player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper( level.nukeInfo.player, level.nukeInfo.player, 999999, 0, "MOD_EXPLOSIVE", "nuke_mp", player.origin, player.origin, "none", 0, 0 );
}
Its suposed to only kill the team axis... but it kills both teams. Its like the code is correct but its being completely ignored.
Can anyone help me out?