Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
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 107 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.
  • 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
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      replied to nefq89wpenvo 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
        • Resxtundefined Offline
          Resxtundefined Offline
          Resxt Plutonium Staff
          replied to nefq89wpenvo 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

          • Login

          • Don't have an account? Register

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