武装突袭3

武装突袭3

Survival Pack 1.1 (Cooking+Harvesting)
128 条留言
Brute 9 月 2 日 下午 4:16 
Or into a trigger? Or maybe as a .sqf?
Brute 7 月 7 日 下午 12:18 
For modded animals, where is that code posted into? The unit's init or into one of the modules?
☠︎🕊️ Shaanig ☠🕊  [作者] 1 月 17 日 上午 6:06 
@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 1 月 17 日 上午 12:31 
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 ☠🕊  [作者] 2024 年 12 月 28 日 上午 1:48 
@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 2024 年 12 月 27 日 上午 11:01 
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 2024 年 12 月 7 日 上午 6:34 
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 ☠🕊  [作者] 2024 年 12 月 6 日 下午 7:11 
@Sir Kuhmsizhn yea you can refill empty jerry cans at fuel pumps, its in the showcase video
Sir Kuhmsizhn 2024 年 12 月 6 日 上午 3:48 
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 2024 年 11 月 25 日 下午 8:53 
Ok, thanks
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 11 月 25 日 下午 8:07 
@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
Predator14 2024 年 11 月 13 日 上午 8:54 
great job, no animation for first person ?
Bostonian 2024 年 10 月 19 日 上午 9:22 
Awesome, really appreciate that!
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 10 月 18 日 上午 8:43 
@Bostonian the main function for that would be "survivalpack_fnc_playerInitItemFunctionality", however the function uses the "player" command to execute it for (only the player), try to modify the file, you could copy the .sqf from pbo and make ur own modified .sqf of that function and call it in ur mission/mod folder,

and you would change this part
-----------------------
[player] call _survivalInit;
player addEventHandler ["Respawn", _survivalInit];

---------------------


into:
--------------------

params ["_playerObject"];
[_playerObject] call _survivalInit;
_playerObjectaddEventHandler ["Respawn", _survivalInit];
--------------------

then you would call it in like this:
--------------------
[yourPlayableUnit] call your_functionName;
or
[yourPlayableUnit] execVM "yourfile.sqf";
--------------------
Bostonian 2024 年 10 月 18 日 上午 6:56 
Thanks for looking into it. I've got it working to reduce thirst and hunger for all desired units by calling survivalpack_fnc_hungerandthirst_playerInit for each playable unit. Can you tell me how—probably what function to call—to enable a unit to use items like water or food from their inventory? Right now, they lose hunger and thirst but cannot replenish.
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 10 月 17 日 下午 9:50 
@Bostonian, I just checked in multiplayer, switched teams from Civilian to BLUFOR, seems to be working, checked the variables, also I just realized are you talking about singleplayer unit switching?, if so I didn't add a feature to work with that >_<
Bostonian 2024 年 10 月 17 日 下午 7:09 
Hello. Thanks for sharing this. I'm pretty sure this used to work with team switching, but after trying with the latest update to Arma the hunger and thirst % display when I switch units but they only reduce for the original unit I started with and stay at 100% for the rest. Is there a way to have this work for on all units synchronized to the module?
Adri_karry 2024 年 9 月 27 日 上午 6:24 
Thanks for the tutorial and the files to make it very complete I have made 5 modules of spawn of weapons ammunition and clothing of the game bases and 2 DLCs and the mod cup and another for the food items of your rival pack, the module once activated generates random objects in all kinds of buildings I will also try to make a module to make the houses appear decorated as in the video
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 27 日 上午 12:33 
@Adri_karry up to you, alsoif ur trying to make a survival mission with optimized loot spawning, check out https://www.youtube.com/watch?v=oGS43lausKo
Adri_karry 2024 年 9 月 26 日 下午 11:01 
Thank you, you want me to add you as a collaborator of the Dayz squad mod to be enough well they have 27 modules, perfect the spawn of survival pack food and weapons to appear in houses get the items to appear directly without having to use addaction and a new faction for zombies
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 26 日 下午 5:51 
@Adri_karry its cool that your making a mod with my work, this is why I made my work open source, I want others to modify it and its cool when I see others using my work, but I prefer not adding a VIP version and keeping it open source but its not required and its up to you, again, good luck and see u in the next Arma sequel ^_^
Adri_karry 2024 年 9 月 26 日 上午 5:46 
hello I already have the mod practically ready to publish it tomorrow I just need to make the modules of global zombie spawn receive the parameters as a solution and I make 10 modules with different amounts of zombies and also adjust the animations of the 16 new food items that I will fix them over time otherwise it is ready, I also add you as a contributor to the mod when I published it and if you want I could also upload a VIP version only visible to friends for mod contributors who want to add something or fix the global spawn modules because the public version has binarized the config.cpp of my 2 zombies and modules
Adri_karry 2024 年 9 月 12 日 上午 3:54 
Thanks I already got the objects to appear when eating avia to change the display of the object to the id of the object of cfg vehicles
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 11 日 下午 11:29 
also to define a CfgWeapon item which is pickupable and added to your inventory here:

(in config.cpp):
----------------------------------
class CfgWeapons
{
class ItemCore;
class InventoryItem_Base_F;



class YourItem_ClassSName: ItemCore
{
displayName="Canister (Fuel)";
scope = 2;
scopeArsenal = 2;
scopeCurator = 2;
class ItemInfo: InventoryItem_Base_F
{
mass=15;
allowedslots[] = {901}; // only backpack
};
simulation= "ItemMineDetector"
author="RandomGuy";
picture="\SurvivalPack\Data\Icons\icon_canisterfuel.paa";
model = "\A3\Structures_F\Items\Vessels\CanisterFuel_F.p3d";
descriptionShort="Canister (Fuel)";
customItemType = "Fuel";

};
}
----------------------------------
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 11 日 下午 11:29 
@Adri you added an add action to CfgVehicle object to pick it up?, you need to define an item if I remember correctly using CfgWeapons, and then call the "survivalpack_fnc_defineItem" to define an item, use pbo manager and check out the mod's files, go to directory "SurvivalPack\Fncs\FoodWaterItems\fn_config.sqf", to see how the food items are defined, there is a attach offset, which is the offset position where your food item is attached to the hand
Adri_karry 2024 年 9 月 11 日 下午 8:05 
I already managed to add the new items and find a way to use them apart from taking them from the inventory of an object, with my spawn mod I adapted it for objects and added an addaction to the spawned objects to save in the inventory deleting the static object and adding the items and added more than 10 new items the only problem there is that the objects are not seen in the animations the rest perfect
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 11 日 上午 6:44 
@Adri_karry not sure which inventory items your talking about, but if ur trying to add a custom food item of your own, make sure you make a CfgVehicle object class and a CfgWeapon item class as well, the object class is to display the item on hand and the CfgWeapon makes the item store in ur inventory
Adri_karry 2024 年 9 月 10 日 下午 7:32 
I've already managed to get the inventory items that are placed in the editor to work not yet
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 9 月 10 日 下午 5:42 
save as in persistence saving inventory?, to make the new items work I actually haven't published the latest version of the open source code for my project, it should be kinda easy to make it work with your custom modded items
Adri_karry 2024 年 9 月 10 日 下午 12:41 
Hi I'm expanding this mod to create a dayz mod I've already added items but can't you save or use the new items as ago to make them work?
shartweiser 2024 年 8 月 19 日 下午 10:00 
i tried loading the mod with antistasi ultimate on a lan server to test, i can spawn the food items in zeus but dont have any interaction with them. i see hazard pay says it works well, ill ask him about it
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 8 月 19 日 下午 9:49 
@wagons I'm not sure, try it out and lemme know, I think a user before mentioned having some issues with the Antistasi mod version, not sure
shartweiser 2024 年 8 月 19 日 下午 8:44 
could this be used in antistasi ultimate? want to add another challenge to it
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 28 日 上午 12:22 
@HazardPay I forgot to tell ya, there is the vanilla campfire and CBA campfire, I added the functionality to one of them, and I'm currently not playing Arma 3 atm so I don't think I can try go through the code to add another cooker but you can try dig into the source and explore yourself (if your a coder) to add another cooker,

P.S: the mod is open source
HazardPay 2024 年 7 月 27 日 上午 10:21 
I got it working my dumbass was just trying it with the wrong campfire model. Do you know if theres a way to add another cooking vessel the same way you would add another animal? But yeah works great with Antistasi so far
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 27 日 上午 9:28 
@HazardPay wdym by uninstalling everything?, your using the mod launcher right?, you can untick all other mods except the survival pack mod and test it out, but if it's not working then it might be broken after an update which I have to look, but if that happened there would be players commenting and mentioning it here, also one of my friend currently uses my mod and he hasn't reported any issue yet, anyway lemme know
HazardPay 2024 年 7 月 27 日 上午 8:37 
I was not able to get it working even uninstalling everything and everything but CUP. I am going to try to mess around in the pbo files cause this is a great mod id like to get working. Any recommendations where I might want to look or do to solve this issue?
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 27 日 上午 7:00 
@HazardPay you should see a action called "Cook", if there isn't any then it's most likely a mod conflict, try with this mod loaded only and test out
HazardPay 2024 年 7 月 27 日 上午 6:37 
Yeah I tried it in vr and put down a CUP campfire, the three modules and some raw meat but it was the same, if I approach the fire my only option is to put out the fire and if I click on the meat i will eat it raw, and if I drop it on the ground it goes to my feet not on the fire.
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 27 日 上午 5:58 
@HazardPay by Antistasi, do you mean the mod Antistasi?, this might be due to a mod/script conflict, try testing in singleplayer in your own mission to see if it's working
HazardPay 2024 年 7 月 27 日 上午 5:51 
Im using this in Antistasi but I dont get any option to place the meat on a campfire or stove?
Bonnnetwork TTV 2024 年 7 月 20 日 下午 6:21 
@☠︎🕊️ Shaanig ☠🕊 Thank you for your reply! I will try to make it work with my server. This is amazing
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 20 日 上午 6:08 
@小肥龙, 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
Asuka 2024 年 7 月 20 日 上午 5:44 
I want real Dayz in Arma3, maybe you can achieve this.
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 20 日 上午 2:40 
@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 2024 年 7 月 20 日 上午 2:15 
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 ☠🕊  [作者] 2024 年 7 月 17 日 上午 7:53 
@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 2024 年 7 月 17 日 上午 4:06 
Could this work in Exile?
☠︎🕊️ Shaanig ☠🕊  [作者] 2024 年 7 月 4 日 上午 11:10 
@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 2024 年 7 月 4 日 上午 7:05 
can you change the time it takes to do actions in settings?