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 354 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
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 mikzy

          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 Offline
          mikzyundefined Offline
          mikzy
          Banned
          wrote 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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