Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Mercs need food and water to survive
Re: New feature: Mercs need food and water to survive[message #309442]
|
Thu, 23 August 2012 11:42
|
|
madwolf |
|
Messages:11
Registered:May 2006 |
|
|
I tried it, it works great!
not too much micromanagement, but before moving the troops to a mission, having to plan how much food to carry is really funny.
my mercs are always at about 95% max weight when starting for a mission, lol.
Still there is a bug with canned vegetables, it makes some soldier eat all canned food in inventory in automatic. I usually find myself with some soldier at 100% food and no more canned vegetables in inventory.
Now we need another feature like "camping", that allow the mercs to sleep confortably outside of cities and bases.
What about making a facility in each sector called "camp" usable only if the mecs has the camping kit that increase resting in the sector if "staffed"?, and if not staffed, the mercs sleep very bad?
It would simulate the building of tents etc...
It will have to be decided if making the "campmaster" a single merc that enhances the resting quality in sector, or having every merc carrying his own small tent and use the "camp" facility to sleep confortably.
Thanks for making this game so enjoyable, and as always,
thanks for your time.
EDIT:
I like the new refill menu, but seems odd that when I click "Refill canteen" all canteens in sector get refilled, and when I click clean weapon, only the selected merc weapon gets cleaned.
it should be:
1)refill all canteens 2)clean weapon (as now, but correct the sentence)
or
1)refill canteen 2)clean weapon (leave the sentence as is, but make only the selected merc canteen get refilled)
or
1)refill all canteens 2) clean all weapons (change the sentences and make all weapons in sector get cleaned) <- I love this
[Updated on: Thu, 23 August 2012 12:30] by Moderator Report message to a moderator
|
Private
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309465]
|
Thu, 23 August 2012 21:48
|
|
Max_for_Hire |
|
Messages:28
Registered:March 2009 |
|
|
Awesome stuff.
True, i adds a bit more micro-management, but JA is about mm too!
Will definitely try!
Report message to a moderator
|
Private 1st Class
|
|
|
|
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309511]
|
Sat, 25 August 2012 19:14
|
|
Flugente |
|
Messages:3509
Registered:April 2009 Location: Germany |
|
|
Ehem....
They already consume food automatically when they are hungry.
There are already facilities that can be staffed where emrcs can eat (see Alma barracks for the cantina). However, they do not get food on their own.
It is the basic way with this feature to buy food and put it into mercs inventories, yes.
Some food increases morale, other food lowers it, see the -tag in Food.xml.
If low on food (or way too high), you get penalties to sleep, energy reduction, assignment effectivity, maximum possible morale and, in severe cases, a chance to lose health and strength.
The Food level is lowered depending on your actions, travelling uses much more food.
In the desert, your water consumption is even higher.
So I can happily report that your suggestions are already implemented
Report message to a moderator
|
|
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #309537]
|
Sun, 26 August 2012 15:00
|
|
Burzmali |
|
Messages:248
Registered:March 2007 Location: Estonia |
|
|
did not meant to offend anybody - it sure is fun to try and make a great game even better. still i do not think this eating thing (and some other modifications) fits the spirit of JA as i see it. why?
IF it was a regular army then catering is not a platoon commander's problem. even not company commander's. ok, in JA there is an individual group without official rear service. so, if some of my men complains the second time (as the first time could be some misunderstanding) about missing food, i'd have a serious talk with Miguel and probably shoot his kneecap to avoid this happening again - just like with Pablo when things disappear in airport.
BUT those guys are not conscripts, they are mercenaries. who by default do not need being hand feed. they should be able to take care of themselves and for that they get good money in hard currency. (ok, not so good money for Dynamo and Shank if you decide to keep them, but they are locals and have their own means.) sure, there are desert and swamp sectors with no food around - but there are marching orders: we will leave at 8 pm, we'll be in a desert for 3 days, be prepared. and i seriously think it should be sufficient.
[Updated on: Sun, 26 August 2012 15:01] by Moderator Report message to a moderator
|
Sergeant 1st Class
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #310566]
|
Mon, 24 September 2012 13:04
|
|
usrbid |
|
Messages:1506
Registered:December 2008 |
|
|
Flugente... The auto-feed starts at -25%. I will not externalise that value, because I WANT it to be negative. This results in auto-feeding being suboptimal. This results in the player paying attention to his mercs and giving them lunch breaks being more effective. Micromanagement should have benefits after all.
While I agree that micromanagement should have benefits, we cannot forsee how modders may use the food feature in the future. (I am just making stuff up now as an example) For example someone may mod an addiction to a substance like Spice from Dune as a food and may need to change the -25% value.
FlugenteI will not externalise all te penalties, because externalising this
typedef struct
{
INT32 bThreshold;
INT8 bMoraleModifier; // absolute modifier to max morale
INT8 bSleepModifier; // absolute modifier
INT8 bBreathRegenModifier; // percentage modifier
INT8 bAssignmentEfficiencyModifier; // percentage modifier
UINT8 ubStatDamageChance; // percentual chance to receive damage to life and strength
} FoodMoraleMod;
FoodMoraleMod FoodMoraleMods[NUM_FOOD_MORALE_TYPES] =
{
{ 100000, -10, -3, -75, -75, 2}, // FOOD_STUFFED
{ 5000, -5, -2, -5, -5, 0}, // FOOD_EXTREMELY_FULL
{ 2500, 2, -1, -1, 0, 0}, // FOOD_FULL
{ 1000, 5, 0, 0, 0, 0}, // FOOD_SLIGHTLY_FULL
{ 0, 0, 0, 0, 0, 0}, // FOOD_NORMAL
{ -1000, 0, 0, 0, 0, 0}, // FOOD_LOW
{ -2500, -2, 0, 0, 0, 0}, // FOOD_EVEN_LOWER
{ -5000, -10, -1, -10, -10, 5}, // FOOD_VERY_LOW
{ -7500, -20, -2, -25, -25, 25}, // FOOD_DANGER
{ -8750, -30, -2, -50, -50, 75}, // FOOD_DESPERATE
{ -10000, -50, -3, -80, -75, 100}, // FOOD_STARVING
};
would result in a lot of variables...
While I agree that this is a lot of variables and fairly complicated, we externalized comparable things in the past, like movement cost between sectors or garrison patrols, you can use these examples to externalize the food values.
I am not trying to disrespect you for your food code, I like it and I think it is a good feature. I am trying to help you support your feature by making it more accessible to modders, meaning other people can use what you did in other ways in the future.
For example the new attachment system was really not envisioned as a molle extension for LBE gear, however Smeagol saw the opportunity and implemented (or he wanted to) a new system for allowing the player to highly customize LBE gear.
The original intention can be re-used by others in the future for things we didn't predict at the time the original feature was implemented - the code transcends mere existence / survival by allowing customization.
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: New feature: Mercs need food and water to survive[message #313863]
|
Fri, 04 January 2013 03:54
|
|
Vince7403 |
|
Messages:145
Registered:February 2012 |
|
|
I believe Patton said, "we will not need food when we are winning, we will eat the enemy!" I'm not sure if he meant it literally.
Survival food doesn't have to be too disgusting, actually. Lots of wild plants are edible and some of them don't taste that bad, though some are toxic if you don't cook them right. The larvae of the Central American ox beetle is actually the most nutritious animal protein known, and tastes vaguely like shrimp. It is kind of freaky though - imagine a maggot the size of a grown man's thumb, with huge menacing pincer jaws, that tastes vaguely like shrimp. Of course, it's a lot harder in the desert.
Also, you can make ice on a clear night even in the tropics using only an insulated, tall-walled vessel with some water in it. It works much better if you also have thin plastic sheets, like kitchen wrap or garbage bags. The wonders of science!
Report message to a moderator
|
Sergeant
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 13:05:33 GMT+2 2024
Total time taken to generate the page: 0.02772 seconds
|