Results 1 to 10 of 57

Thread: TELLERMINE Mod

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #24
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by G-Stuff002 View Post
    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.

  2. The Following User Says Thank You to Tally For This Useful Post:

    G-Stuff002 (20th March 2018)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •