Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Care Package Disappear Time

Care Package Disappear Time

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
4 Posts 3 Posters 118 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mikzyundefined Offline
    mikzyundefined Offline
    mikzy Banned
    wrote on last edited by
    #1

    is this time stored in a dvar or can it be modified using gsc? checked the _supplydrop.gsc file and there was nothing i could find.

    mikzyundefined 1 Reply Last reply
    0
    • Xerxesundefined Offline
      Xerxesundefined Offline
      Xerxes Plutonium Staff
      wrote on last edited by
      #2

      Its in _supplydrop.gsc, just follow the crate spawn until you see it calling cratetimeoutthreader() there it calls cratetimeout() and there it actually despawns it.

      1 Reply Last reply
      1
      • Sorexundefined Offline
        Sorexundefined Offline
        Sorex Contributor
        wrote on last edited by Sorex
        #3

        There is a 2 function for that, self is the care package entity. You can try to overwrite 1 of this functions. Or you can to edit the file and recompile it. "scr_crate_notimeout" will not work i think. If this can be used will be better.

        cratetimeout( time )
        {
        	self endon( "death" );
        	wait time;
        	self cratedelete();
        }
        
        cratetimeoutthreader()
        {
        /#
        	if ( getdvarintdefault( "scr_crate_notimeout", 0 ) )
        	{
        		return;
        #/
        	}
        	self thread cratetimeout( 90 );
        }
        
        1 Reply Last reply
        1
        • mikzyundefined Offline
          mikzyundefined Offline
          mikzy Banned
          replied to mikzy on last edited by
          #4

          mikey Solved. The only reason why this topic was open because I couldn't exactly recompile, so I was looking for a alternative. If you go to JezuzLizard's GitHub, the fixed and recompiled version of _supplydrop.gsc is there.

          Staff can lock this.

          1 Reply Last reply
          0

          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Donate