Originally Posted by
G-Stuff002
But after death landmines was disappear and i can't not planting again in TDM
I can not find dvar settings. Ah, this is in _landmines.gsc but i dont know whay after death i can't not planting
This is something for Team code needed change
Yep, there was a bug. I forgot to reset the total team landmines allowed each time a player dies. This fixes it:
Please edit _landmines.gsc:
Code:
deleteLandmines()
{
for( i=0; i < self.landmine_array.size; i++ )
{
if( isDefined( self.landmine_array[i] ) )
{
self.landmine_array[i] delete();
if( level.teamBased )
{
if( game["landmine_team"][self.pers["team"]] )
game["landmine_team"][self.pers["team"]]--;
}
else
{
if( game["landmine_team"] )
game["landmine_team"]--;
}
}
}
self.landmine_array = [];
}
Just editing that function will fix it.