Survival Pack 1.1 (Cooking+Harvesting)

If you liked this item, please rate it up on Steam Workshop page.

Author: ☠︎🕊️ Shaanig ☠🕊

Last revision: 6 May, 2024 at 19:09 UTC (3)

File size: 15.12 MB

On Steam Workshop

Description:

Survival Pack 1.1

—————————————————————-

– mod allows you to create scenarios with hunger & thirst through modules, and adds functionality to food items and add new food items such as MRE or raw meats, which can be obtained by harvesting from dead animals using a hunting knife, and allows cooking raw meats from a campfire or an oven from CUP mod

– cooking & animal harvesting added with 1.1

credits: @Slay No More – for giving me the concept and idea of the cooking process, check out his content ^_^
https://steamcommunity.com/id/Slay_No_More/myworkshopfiles/?appid=107410

– note (for zeus users): hunger & thirst module is placable from zeus, but note: after placing and deleting it won’t remove hunger & thirst for all players, and there is no UI for the module yet

links:

https://forums.bohemia.net/forums/topic/285594-released-survival-pack-food-water-items/?tab=comments#comment-3527195
https://github.com/Shaanig03/Arma-3-Survival-Pack-Mod – note: will update github tommorow

Features:

– makes basic in game existing items such as foods and a fuel canister usable with animations and sounds, though all items are mostly in game existing there is a new MRE (military ration) throwed in after an update

– after an update, item functionality is there without the needing of any modules, you can refill water bottles or refuel canisters, you can have items working without activating Hunger & Thirst

– mod items has compatibility or support with other mods or scripts that has a different hunger and water system, but this works if the custom mod/mission uses getVariable to store player’s hunger and water, which I’m pretty sure it will be 90% mostly getVariable

Modules (Survival):

– "Hunger & Thirst" module activates player hunger & thirst (very obvious, why am I typing this? xD)

– "Item Properties" module sets item properties food nutrition value, water value and consuming duration

– "Settings" module defines the variable names for ‘hunger’ and ‘thirst’ to store in player, and sets max hunger & thirst value

– "Strings" module for changing texts, action texts, messages and icons of this mod

Functions:

– adding a new custom modded animal class as a harvestable animal

["Your_Animal_ClassName", [ // harvest items ["RawMeat_Class_Name_Or_Item_Class_Name_To_Add",5] ], 5 // harvest duration ] call survivalpack_fnc_addHarvestAnimal;

– eg: retrieves a player’s hunger & thirst value:

_firstPlayer = allPlayers select 0; [_firstPlayer] call survivalpack_fnc_getHungerWater; waitUntil {!isNil "sp_recievedpacketvar_player"}; waitUntil {_firstPlayer == sp_recievedpacketvar_player}; systemChat format ["player ‘%1’ actual food and water values are %2%4 %3%4", name sp_recievedpacketvar_player, sp_recievedpacketvar_food, sp_recievedpacketvar_water, "%"]; systemChat format ["player ‘%1’ displayed food and water values are %2%4 %3%4", name sp_recievedpacketvar_player, round(sp_recievedpacketvar_food * 100), round(sp_recievedpacketvar_water * 100), "%"]

– eg: set hunger & water for player, sets the first player’s hunger to 50% and thirst to %20, -1 to ignore

[allPlayers select 0, 0.5, 0.2] call survivalpack_fnc_setHungerWater

ClassList:

– adding items to player inventory:

player addItem "SPItem_CanisterFuel"; player addItem "SPItem_CanisterFuelEmpty"; player addItem "SPItem_TacticalBacon"; player addItem "SPItem_CanSpirit"; player addItem "SPItem_CanFranta"; player addItem "SPItem_CanRedGull"; player addItem "SPItem_Waterbottle"; player addItem "SPItem_WaterbottleEmpty"; player addItem "SPItem_Canteen"; player addItem "SPItem_CanteenEmpty"; player addItem "SPItem_Cerealbox"; player addItem "SPItem_PowderedMilk"; player addItem "SPItem_RiceBox"; player addItem "SPItem_Pumpkin"; player addItem "SPItem_Orange"; player addItem "SPItem_BakedBeans"; player addItem "SPItem_MRE"; player addItem "SPItem_RabbitMeat"; player addItem "SPItem_SheepMeat"; player addItem "SPItem_Meat"; player addItem "SPItem_RabbitMeat_Cooked"; player addItem "SPItem_SheepMeat_Cooked"; player addItem "SPItem_Meat_Cooked"; player addItem "SPItem_HuntingKnife";

– adding items to container:

// to a crate/vehicle/container this addItemCargoGlobal ["SPItem_CanisterFuel", 10]; this addItemCargoGlobal ["SPItem_CanisterFuelEmpty", 10]; this addItemCargoGlobal ["SPItem_TacticalBacon", 10]; this addItemCargoGlobal ["SPItem_CanSpirit", 10]; this addItemCargoGlobal ["SPItem_CanFranta", 10]; this addItemCargoGlobal ["SPItem_CanRedGull", 10]; this addItemCargoGlobal ["SPItem_Waterbottle", 10]; this addItemCargoGlobal ["SPItem_WaterbottleEmpty", 10]; this addItemCargoGlobal ["SPItem_Canteen", 10]; this addItemCargoGlobal ["SPItem_CanteenEmpty", 10]; this addItemCargoGlobal ["SPItem_Cerealbox", 10]; this addItemCargoGlobal ["SPItem_PowderedMilk", 10]; this addItemCargoGlobal ["SPItem_RiceBox", 10]; this addItemCargoGlobal ["SPItem_Pumpkin", 10]; this addItemCargoGlobal ["SPItem_Orange", 10]; this addItemCargoGlobal ["SPItem_BakedBeans", 10]; this addItemCargoGlobal ["SPItem_MRE", 10]; this addItemCargoGlobal ["SPItem_RabbitMeat", 10]; this addItemCargoGlobal ["SPItem_SheepMeat", 10]; this addItemCargoGlobal ["SPItem_Meat", 10]; this addItemCargoGlobal ["SPItem_RabbitMeat_Cooked", 10]; this addItemCargoGlobal ["SPItem_SheepMeat_Cooked", 10]; this addItemCargoGlobal ["SPItem_Meat_Cooked", 10]; this addItemCargoGlobal ["SPItem_HuntingKnife", 10];

– animation classes:

sp_anim_start_eating sp_anim_eating sp_anim_end_eating sp_anim_start_drinking_waterbottle sp_anim_drinking_waterbottle sp_anim_end_drinking_waterbottle sp_anim_start_canister_fuel sp_anim_canister_fuel sp_anim_end_canister_fuel
Download
Revisions:

Old revisions of this mod are available below. Click the link to download.