[help] Carepackage timelimit
-
I was wondering if anyone knew how to alter how long a carepackage lasts for before disappearing.
-
I was wondering if anyone knew how to alter how long a carepackage lasts for before disappearing.
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
-
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?
-
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?
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.gscI 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
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