Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. [help] Carepackage timelimit

[help] Carepackage timelimit

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
4 Posts 2 Posters 419 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.
  • nefq89wpenvoundefined Offline
    nefq89wpenvoundefined Offline
    nefq89wpenvo
    wrote on last edited by
    #1

    I was wondering if anyone knew how to alter how long a carepackage lasts for before disappearing.

    Resxtundefined 1 Reply Last reply
    0
    • nefq89wpenvoundefined nefq89wpenvo

      I was wondering if anyone knew how to alter how long a carepackage lasts for before disappearing.

      Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      nefq89wpenvo I don't have time to look for it right now but I think you can find something in the airdrop.gsc file.

      I found this function that could be what you're looking for https://github.com/chxseh/MW3-GSC-Dump/blob/e191fe256924bdd1cf9597e48be4ea335f01e724/_wii-gsc-dump/maps/mp/killstreaks/_airdrop.gsc#L882

      1 Reply Last reply
      0
      • nefq89wpenvoundefined Offline
        nefq89wpenvoundefined Offline
        nefq89wpenvo
        wrote on last edited by
        #3

        I think a carepackage default time limit is 90 seconds. When searching 90 I found this:

        //deletes if crate wasnt used after 90 seconds
        dropTimeOut( dropCrate, owner, crateType )
        {
        level endon ( "game_ended" );
        dropCrate endon( "death" );

        if ( dropCrate.dropType == "nuke_drop" )
        	return;	
        
        maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause( 90.0 );
        
        while ( dropCrate.curProgress != 0 )
        	wait 1;
        
        dropCrate deleteCrate();
        

        }

        I feel bad asking when I know basically nothing about gsc but would this be all I need to edit?

        Resxtundefined 1 Reply Last reply
        0
        • nefq89wpenvoundefined nefq89wpenvo

          I think a carepackage default time limit is 90 seconds. When searching 90 I found this:

          //deletes if crate wasnt used after 90 seconds
          dropTimeOut( dropCrate, owner, crateType )
          {
          level endon ( "game_ended" );
          dropCrate endon( "death" );

          if ( dropCrate.dropType == "nuke_drop" )
          	return;	
          
          maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause( 90.0 );
          
          while ( dropCrate.curProgress != 0 )
          	wait 1;
          
          dropCrate deleteCrate();
          

          }

          I feel bad asking when I know basically nothing about gsc but would this be all I need to edit?

          Resxtundefined Offline
          Resxtundefined Offline
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          nefq89wpenvo I don't know much about GSC myself but you probably need to replace that function (instead of writing inside the file directly)
          I have an example here https://github.com/Resxt/Plutonium-IW5-Scripts/blob/main/disable_nuke_effects/disable_nuke_effects_vision.gsc

          I copy/pasted the original function and replaced it with my own which is a copy with some things changed/removed

          This way it keeps the original behavior with your setting/behavior on top of it instead of modifying game files

          You could try replacing the func and replacing 90 then yes

          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
          • Unread 0
          • Recent
          • Tags
          • Popular
          • Users
          • Groups