Arma 3
185 ratings
Survival Pack 1.1 (Cooking+Harvesting)
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
Updated
15.121 MB
15 Apr, 2024 @ 10:04pm
6 May, 2024 @ 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://steamhost.cn/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
17 Jun, 2024 @ 7:23am
Bugs
☠︎🕊️ Shaanig ☠🕊
127 Comments
Brute 7 Jul @ 12:18pm 
For modded animals, where is that code posted into? The unit's init or into one of the modules?
☠︎🕊️ Shaanig ☠🕊  [author] 17 Jan @ 6:06am 
@mmalmesjo, if you want the hunger and thirst to stay and persistence after respawn though I don't recommend that, you want to store the player's hunger and thirst while the player is alive using a while loop with a delay and then when the player is respawned, you want to set the "hunger" and "thirst" to = the stored variables

if ur new to scripting(try look into):

addEventHandler ["Respawn",{}] - to set the variables when the player is respawned
setVariable, getVariable - to set and get variables
while - for loop to store the player's hunger and thirst while the player is alive
sleep - for a delay in the loop so you don't freeze
mmalmesjo 17 Jan @ 12:31am 
love this mod!
Is it possible to make the player inerite the hunger and thirst to after a respawn?
So people doesnt kill themself instead of fixing food and drinks
☠︎🕊️ Shaanig ☠🕊  [author] 28 Dec, 2024 @ 1:48am 
@command008 the module is probably broken with Zeus, I think I added it on Zeus because someone requested it, I'm not sure and I'm not playing Arma atm, you have to try placing the module in the 3DEN Editor
command008 27 Dec, 2024 @ 11:01am 
when i place the module using zeus it doesnt do anything the meter shows up for hunger and thirst but thats it the meter doesnt go down or anything stays at 100%
Sir Kuhmsizhn 7 Dec, 2024 @ 6:34am 
Apologies for the redundant question. Thanks again for the fantastic mod, again. We've had many a last supper of cereal, tactical bacon, and raw meet before apocalyptic circumstances unfold.
☠︎🕊️ Shaanig ☠🕊  [author] 6 Dec, 2024 @ 7:11pm 
@Sir Kuhmsizhn yea you can refill empty jerry cans at fuel pumps, its in the showcase video
Sir Kuhmsizhn 6 Dec, 2024 @ 3:48am 
This mod is fantastic. It's been added to our campaign for a while now for shits and giggles, taking pauses out of fights to eat whenever wanted rather than needed.

The jerry can in this mod is one of the most practical and awesome things apart of this mod. I kept mentioning how it was funny that the jerry can, a military invention, wasn't in the army simulator game. Now we can refuel Strategically Taken Equipment to Another Location vehicles to get back on the road when we choose desolate shitholes with a single fuel pump to conduct operations in.

Commenting to ask purely out of being too lazy to test, can you refill an empty jerry can at fuel pumps? Thanks again for this mod.
Predator14 25 Nov, 2024 @ 8:53pm 
Ok, thanks
☠︎🕊️ Shaanig ☠🕊  [author] 25 Nov, 2024 @ 8:07pm 
@Predator14 due to game engine limitation I wasn't able to make the object render in the player's hands in first person but you can enable animationfirst person through a setting module but it will look buggy