Arma 3
162 ratings
Survival Pack 1.1 (Cooking+Harvesting)
3
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
Updated
15.121 MB
Apr 15 @ 10:04pm
May 6 @ 12:09pm
8 Change Notes ( view )

Subscribe to download
Survival Pack 1.1 (Cooking+Harvesting)

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

Additional (Notes):

- for a optimized loot system that spawn loot with foods from this mod, check out:
https://forums.bohemia.net/forums/topic/287118-released-house-prefabs/?tab=comments#comment-3528817

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
Popular Discussions View All (1)
2
Jun 17 @ 7:23am
Bugs
☠︎🕊️ Shaanig ☠🕊
87 Comments
Bonnnetwork | TTV Jul 20 @ 6:21pm 
@☠︎🕊️ Shaanig ☠🕊 Thank you for your reply! I will try to make it work with my server. This is amazing
☠︎🕊️ Shaanig ☠🕊  [author] Jul 20 @ 6:08am 
@小肥龙, not possible, due to game engine limitation I wasn't able to make the items render in the player's hands in first person like in Dayz, because of the hard coded stuff, but I think we will have more options in Arma 4, I hope so
小肥龙 Jul 20 @ 5:44am 
I want real Dayz in Arma3, maybe you can achieve this.
☠︎🕊️ Shaanig ☠🕊  [author] Jul 20 @ 2:40am 
@Bax, I'm not familiar with ACE medicine, also I'm not sure what you meant by debuffs, do you mean like the food and water stats?, if so try placing survival settings module and changing the hunger and thirst variable name into something else so the ACE won't override those variables
Bax Jul 20 @ 2:15am 
Greetings, I want to use your mod on my server, but I use ACE medicine. After the player has 0% food and (or) water and if the damage parameter is small, the ACE mod overrides all debuffs, and if I increase the damage parameter, the player immediately dies. Is there any way to fix it?
☠︎🕊️ Shaanig ☠🕊  [author] Jul 17 @ 7:53am 
@Bonnnetwork | TTV it should, but you need to figure out which variable names exile is using to store player's hunger and water, usually its something like "hunger", "thirst", "food" or "water", then you place down the survival settings module and type the variable name for hunger and water and it should work
Bonnnetwork | TTV Jul 17 @ 4:06am 
Could this work in Exile?
☠︎🕊️ Shaanig ☠🕊  [author] Jul 4 @ 11:10am 
@Irishdomo you can change the action time through item properties module, hover over the label so you can see the tool tip, the action time is within the numbers array
Irishdomo Jul 4 @ 7:05am 
can you change the time it takes to do actions in settings?
Slay No More Jun 16 @ 4:31pm 
I'm using it on my dayz project, @Bulion334 :steamhappy: