From 10af5ff48328227009bf5d4c6e897d72d2c62b50 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 19 Sep 2022 06:41:08 +0300 Subject: [PATCH] skip carryable pickups --- DPL/Classes/DPL.uc | 8 +++++++- PublicationContent/description.txt | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DPL/Classes/DPL.uc b/DPL/Classes/DPL.uc index cd3e0c5..c2eae09 100644 --- a/DPL/Classes/DPL.uc +++ b/DPL/Classes/DPL.uc @@ -9,7 +9,8 @@ enum E_PickupType { PT_NotPickup, PT_Weapon, - PT_Dosh + PT_Dosh, + PT_Carryable }; var private config int Version; @@ -119,6 +120,7 @@ public function ModifyLifespan(Actor A) } break; + case PT_Carryable: case PT_NotPickup: default: break; @@ -133,6 +135,10 @@ private function E_PickupType PickupType(Actor A) { return PT_Dosh; } + else if (KFDroppedPickup_Carryable(A) != None) + { + return PT_Carryable; + } else if (KFDroppedPickup(A) != None) { return PT_Weapon; diff --git a/PublicationContent/description.txt b/PublicationContent/description.txt index 88141ed..4acd3e9 100644 --- a/PublicationContent/description.txt +++ b/PublicationContent/description.txt @@ -1,7 +1,7 @@ [img]https://img.shields.io/static/v1?logo=GitHub&labelColor=gray&color=blue&logoColor=white&label=&message=Open Source[/img] [img]https://img.shields.io/github/license/GenZmeY/KF2-DroppedPickupLifespan[/img] [img]https://img.shields.io/steam/downloads/2864944858[/img] [img]https://img.shields.io/steam/favorites/2864944858[/img] [img]https://img.shields.io/steam/update-date/2864944858[/img] [url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2864944858][img]https://img.shields.io/github/v/tag/GenZmeY/KF2-DroppedPickupLifespan[/img][/url] [h1]Description[/h1] -Small server-side mutator that changes the lifespan of thrown weapons and dosh. +Small server-side mutator that changes the lifespan of dropped weapons and dosh. [h1]Whitelisted?[/h1] No. This mod is not whitelisted and will de-rank your server. Any XP gained will not be saved.