voidRequest Adaptive Difficulty Data for Item(TSubclassOf<UItem_Master_C>Requesting Item, int32Quantity max clamp, const bool& Should Spawn, const int32& Quantity)Script63 statements · 2,311 bytes of bytecode
0x0000Should Show up = false;0x000BBool weight (Closer to 1, the more the player needs the Item) = 0;0x0026Init inventory();0x0034CallFunc_Map_Find_ReturnValue = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Base Balancing Amount, Requesting Item, CallFunc_Map_Find_Value);0x0079if (!(CallFunc_Map_Find_ReturnValue)) goto Label_086A;0x0087CallFunc_Map_Find_ReturnValue_1 = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Required Item Links, Requesting Item, CallFunc_Map_Find_Value_1);0x00CCif (!(CallFunc_Map_Find_ReturnValue_1)) goto Label_0163;0x00DACallFunc_Map_Find_ReturnValue_1 = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Required Item Links, Requesting Item, CallFunc_Map_Find_Value_1);0x011FPlayer Inventory Ref.Have Item?(CallFunc_Map_Find_Value_1, CallFunc_Have_Item___);0x0155if (!(CallFunc_Have_Item___)) goto Label_0904;0x0163Label_0163:0x0163Temp_real_Variable = 0.5f;0x017ATemp_real_Variable_1 = 1f;0x0191Temp_real_Variable_2 = 2f;0x01A8Get Absolute Quantity of Item(Requesting Item, CallFunc_Get_Absolute_Quantity_of_Item_Quantity);0x01C8CallFunc_Conv_IntToDouble_ReturnValue = Conv_IntToDouble(CallFunc_Get_Absolute_Quantity_of_Item_Quantity);0x01EDTemp_real_Variable_3 = 0.25f;0x0204Temp_byte_Variable = CT Game Instance.Game Difficulty;0x0235CallFunc_Map_Find_ReturnValue_2 = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Base Balancing Amount, Requesting Item, CallFunc_Map_Find_Value_2);0x027ACallFunc_Conv_IntToDouble_ReturnValue_1 = Conv_IntToDouble(CallFunc_Map_Find_Value_2);0x029FCallFunc_Multiply_DoubleDouble_B_ImplicitCast = Cast<4>(Switch(Temp_byte_Variable, 0 => Temp_real_Variable_2, 1 => Temp_real_Variable_1, 2 => Temp_real_Variable, 3 => Temp_real_Variable_3, default => K2Node_Select_Default));0x0308CallFunc_Multiply_DoubleDouble_ReturnValue = Multiply_DoubleDouble(CallFunc_Conv_IntToDouble_ReturnValue_1, CallFunc_Multiply_DoubleDouble_B_ImplicitCast);0x0336CallFunc_Divide_DoubleDouble_ReturnValue = Divide_DoubleDouble(CallFunc_Conv_IntToDouble_ReturnValue, CallFunc_Multiply_DoubleDouble_ReturnValue);0x0364CallFunc_MapRangeClamped_ReturnValue_1 = MapRangeClamped(CallFunc_Divide_DoubleDouble_ReturnValue, 0, 1, 1, 0);0x03ADCallFunc_Add_DoubleDouble_ReturnValue = Add_DoubleDouble(CallFunc_MapRangeClamped_ReturnValue_1, CT Game Instance.Current Player Score);0x03F1CallFunc_FClamp_ReturnValue = FClamp(CallFunc_Add_DoubleDouble_ReturnValue, 0, 1);0x0428Bool weight (Closer to 1, the more the player needs the Item) = CallFunc_FClamp_ReturnValue;0x0443Temp_real_Variable = 0.5f;0x045ATemp_real_Variable_1 = 1f;0x0471Temp_real_Variable_2 = 2f;0x0488Get Absolute Quantity of Item(Requesting Item, CallFunc_Get_Absolute_Quantity_of_Item_Quantity);0x04A8CallFunc_Conv_IntToDouble_ReturnValue = Conv_IntToDouble(CallFunc_Get_Absolute_Quantity_of_Item_Quantity);0x04CDTemp_real_Variable_3 = 0.25f;0x04E4Temp_byte_Variable = CT Game Instance.Game Difficulty;0x0515CallFunc_Map_Find_ReturnValue_2 = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Base Balancing Amount, Requesting Item, CallFunc_Map_Find_Value_2);0x055ACallFunc_Conv_IntToDouble_ReturnValue_1 = Conv_IntToDouble(CallFunc_Map_Find_Value_2);0x057FCallFunc_Multiply_DoubleDouble_B_ImplicitCast = Cast<4>(Switch(Temp_byte_Variable, 0 => Temp_real_Variable_2, 1 => Temp_real_Variable_1, 2 => Temp_real_Variable, 3 => Temp_real_Variable_3, default => K2Node_Select_Default));0x05E8CallFunc_Multiply_DoubleDouble_ReturnValue = Multiply_DoubleDouble(CallFunc_Conv_IntToDouble_ReturnValue_1, CallFunc_Multiply_DoubleDouble_B_ImplicitCast);0x0616CallFunc_Divide_DoubleDouble_ReturnValue = Divide_DoubleDouble(CallFunc_Conv_IntToDouble_ReturnValue, CallFunc_Multiply_DoubleDouble_ReturnValue);0x0644CallFunc_MapRangeClamped_ReturnValue_1 = MapRangeClamped(CallFunc_Divide_DoubleDouble_ReturnValue, 0, 1, 1, 0);0x068DCallFunc_Add_DoubleDouble_ReturnValue = Add_DoubleDouble(CallFunc_MapRangeClamped_ReturnValue_1, CT Game Instance.Current Player Score);0x06D1CallFunc_FClamp_ReturnValue = FClamp(CallFunc_Add_DoubleDouble_ReturnValue, 0, 1);0x0708CallFunc_RandomBoolWithWeight_Weight_ImplicitCast = Cast<3>(CallFunc_FClamp_ReturnValue);0x0725CallFunc_RandomBoolWithWeight_ReturnValue = RandomBoolWithWeight(CallFunc_RandomBoolWithWeight_Weight_ImplicitCast);0x0742Should Show up = CallFunc_RandomBoolWithWeight_ReturnValue;0x0755if (!(Should Show up)) goto Label_08E2;0x0763CallFunc_MapRangeClamped_ReturnValue = MapRangeClamped(Bool weight (Closer to 1, the more the player needs the Item), 0.4, 1, 1, 25);0x07ACCallFunc_Round_ReturnValue = Round(CallFunc_MapRangeClamped_ReturnValue);0x07D1CallFunc_Clamp_ReturnValue = Clamp(CallFunc_Round_ReturnValue, 1, Quantity max clamp);0x0804Defined Item Quantity = CallFunc_Clamp_ReturnValue;0x081FRegister Item Spawn(Requesting Item, Defined Item Quantity);0x083FShould Spawn = true;0x084AQuantity = Defined Item Quantity;0x0865goto Label_0904;0x086ALabel_086A:0x086APrintString(this, "ERROR! NO BASE BALANCING AMOUNT SET ON GAME MODE", true, true, LinearColor{1f, 0f, 0.018539f, 1f}, 50f, FName(None));0x08DDgoto Label_0904;0x08E2Label_08E2:0x08E2Should Spawn = false;0x08EDQuantity = 0;0x0904Label_0904:0x0904return;0x0906// end of script
Public
0x14
voidinit game instance()Script18 statements · 237 bytes of bytecode
0x0000CallFunc_IsValid_ReturnValue = IsValid(CT Game Instance);0x001Dif (!(CallFunc_IsValid_ReturnValue)) goto Label_0030;0x002Bgoto Label_00EA;0x0030Label_0030:0x0030CallFunc_GetGameInstance_ReturnValue = GetGameInstance(this);0x0045K2Node_DynamicCast_AsBPI_Comatose_Retriever = Cast<BPI_ComatoseRetriever_C>(CallFunc_GetGameInstance_ReturnValue);0x0069K2Node_DynamicCast_bSuccess = Cast<2>(K2Node_DynamicCast_AsBPI_Comatose_Retriever);0x0086if (!(K2Node_DynamicCast_bSuccess)) goto Label_00DA;0x0094K2Node_DynamicCast_AsBPI_Comatose_Retriever.Retrieve Comatose Game Instance(CallFunc_Retrieve_Comatose_Game_Instance_CT_Game_Instance);0x00C2Label_00C2:0x00C2CT Game Instance = CallFunc_Retrieve_Comatose_Game_Instance_CT_Game_Instance;0x00D5goto Label_00EA;0x00DALabel_00DA:0x00DACallFunc_Retrieve_Comatose_Game_Instance_CT_Game_Instance = nullptr;0x00E5goto Label_00C2;0x00EALabel_00EA:0x00EAreturn;0x00EC// end of script
Public
0x00
voidGet Absolute Quantity of Item(TSubclassOf<UItem_Master_C>Item, const int32& Quantity)Script11 statements · 419 bytes of bytecode
0x0000init game instance();0x000EInit inventory();0x001C/Game/Comatose/MainClasses/BPF_CTFunctions.Default__BPF_CTFunctions_C.Ammo - Weapon Component(Item, this, CallFunc_Ammo___Weapon_Component_Weapon_Component);0x0053CallFunc_Map_Find_ReturnValue = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(CT Game Instance.Player Clip Ammo, CallFunc_Ammo___Weapon_Component_Weapon_Component, CallFunc_Map_Find_Value);0x00AEPlayer Inventory Ref.Get Quantity Of Item(Item, CallFunc_Get_Quantity_Of_Item_Quantity);0x00E4CallFunc_Map_Find_ReturnValue_1 = /Script/Engine.Default__BlueprintMapLibrary.Map_Find(Adaptive Difficulty - Spawned Items, Item, CallFunc_Map_Find_Value_1);0x0129CallFunc_Add_IntInt_ReturnValue = Add_IntInt(CallFunc_Map_Find_Value_1, CallFunc_Get_Quantity_Of_Item_Quantity);0x0157CallFunc_Add_IntInt_ReturnValue_1 = Add_IntInt(CallFunc_Add_IntInt_ReturnValue, CallFunc_Map_Find_Value);0x0185Quantity = CallFunc_Add_IntInt_ReturnValue_1;0x01A0return;0x01A2// end of script
Public
0x0C
voidReceiveBeginPlay()Script3 statements · 18 bytes of bytecode
0x0000ExecuteUbergraph_CT_GamemodeGameplay(467);0x000Freturn;0x0011// end of script
EventProtected
0x00
voidExecuteUbergraph_CT_GamemodeGameplay(int32EntryPoint)Script23 statements · 499 bytes of bytecode
0x0000goto [EntryPoint];0x000ALabel_000A:0x000AInit inventory();0x0018CallFunc_GetActorOfClass_ReturnValue = GetActorOfClass(this, /Game/Comatose/Map/PlayerMapManager.PlayerMapManager_C);0x0036CallFunc_IsValid_ReturnValue = IsValid(CallFunc_GetActorOfClass_ReturnValue);0x0053if (!(CallFunc_IsValid_ReturnValue)) goto Label_01F0;0x0061CallFunc_GetCurrentLevelName_ReturnValue = GetCurrentLevelName(this, true);0x007FCallFunc_FindSubstring_ReturnValue = FindSubstring(CallFunc_GetCurrentLevelName_ReturnValue, "House", false, false, -1);0x00B2CallFunc_NotEqual_IntInt_ReturnValue = NotEqual_IntInt(CallFunc_FindSubstring_ReturnValue, -1);0x00D4if (!(CallFunc_NotEqual_IntInt_ReturnValue)) goto Label_01F0;0x00E2CallFunc_GetActorOfClass_ReturnValue_1 = GetActorOfClass(this, /Game/Comatose/Map/MarkerRange/MapMarkerRange.MapMarkerRange_C);0x0100CallFunc_IsValid_ReturnValue_1 = IsValid(CallFunc_GetActorOfClass_ReturnValue_1);0x011Dif (!(CallFunc_IsValid_ReturnValue_1)) goto Label_0130;0x012Bgoto Label_01F0;0x0130Label_0130:0x0130PrintString(this, "ERROR: MAP RANGE CLAMPS NOT FOUND, BUT THIS LEVEL HAS \"House\" ON ITS NAME. ADD IT IN PLEASE", true, true, LinearColor{1f, 0f, 0f, 1f}, 5555f, FName(None));0x01CEgoto Label_01F0;0x01D3ReceiveBeginPlay();0x01DDinit game instance();0x01EBgoto Label_000A;0x01F0Label_01F0:0x01F0return;0x01F2// end of script