//Made by alphaent

#library "Cvars"
#include "zcommon.acs"


script "custombob" (void) { SetResultValue(GetCVar("user_custombob")); }
script "customcrosshair" (void) { SetResultValue(GetCVar("user_customcrosshair")); }
script "fullscreenhudtype_value" (void) { SetResultValue(GetCVar("fullscreenhudtype_value")); }
script "instagibcheck" (void) { SetResultValue(GetCVar("instagib")); }
script "buckshotcheck" (void) { SetResultValue(GetCVar("buckshot")); }


Script "Fire_Holdkey" ENTER {

    while (true) {
        delay(1);


			   if((GetPlayerInput(-1, INPUT_BUTTONS) & BT_ATTACK && GetActorProperty(0, APROP_HEALTH) >= 1)){
					{
GiveInventory("Fire_Holdkey",1);
				   }

			   }

			   else if((GetPlayerInput(-1, INPUT_oldBUTTONS) & BT_ATTACK && GetActorProperty(0, APROP_HEALTH) >= 1)){
					{
TakeInventory("Fire_Holdkey",10);
				   }
	}
}
}