Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

ACEX Field Rations #114

Merged
merged 52 commits into from
Nov 19, 2018
Merged

ACEX Field Rations #114

merged 52 commits into from
Nov 19, 2018

Conversation

mharis001
Copy link
Member

When merged this pull request will:

  • Add a more polished version of the field rations system first introduced in PR Add field rations from CSE #2
  • Add consumable items such as MREs that restore hunger/thirst values

Noteworthy differences:

  • Update function is more complete (cleaned up and ace_medical & ace_weather implementation)
  • Data files have been cleaned up (proper file structure, removed duplicate rvmat files)
  • Config based refill sources / More config entries to allow for more control over custom consumable items
  • Changed HUD (colouring and thirst status icon)
  • Settings use CBA_settings_fnc_init instead of ACE_Settings
  • Completed translations

@PabstMirror @thojkooi

@jonpas jonpas added this to the 3.4.0 milestone Mar 2, 2018
@SyMP2005
Copy link

SyMP2005 commented Mar 2, 2018

I don't know who you are, but I love you.

@TheMagnetar
Copy link
Member

TheMagnetar commented Mar 28, 2018

It would be cool to integrate it with advanced fatigue module as well. Low recovery if hungry for example. Totally missed it.

Copy link
Member

@jonpas jonpas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks real good to me overall! 👍

@@ -0,0 +1 @@
z\acex\addons\field_rations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty newline missing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought $PBOPREFIX$ files did not have newline at end, or at least according to this: https://community.bistudio.com/wiki/PBOPREFIX

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's false. And we don't even use BI's Addon Builder anyways.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BI Addon builder doesn't even use PBOPREFIX file.

@@ -0,0 +1,32 @@
ambient[]={1,1,1,1};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be cleaned up to conform to same config standards.

  • Braces on same line
  • Spaces around =

@jonpas
Copy link
Member

jonpas commented Apr 14, 2018

Can we get some screenshots of the status UI icons @mharis001 ?

@mharis001
Copy link
Member Author

mharis001 commented Apr 14, 2018

Currently:
field_rations_1
field_rations_2
field_rations_3
Not too happy with the drinking icon, meant to be a canteen. Could also change HUD to be vertical/horizontal bars.

@jonpas
Copy link
Member

jonpas commented Apr 14, 2018

Looks good IMO! Are those icons always up? If so, could they be made so they are hidden until you are actually lower on those supply (maybe a setting)? I am one for minimal UI on those status indicators.

Could also change HUD to be vertical/horizontal bars.

Could also be a setting! 😆

On that note, can you drag it around like other elements? That'd be pretty neat too.

@mharis001
Copy link
Member Author

The HUD shows when below 30% on either status or hovering interaction and I like the idea about moving elements around.

@jonpas
Copy link
Member

jonpas commented Apr 14, 2018

Awesome!

CfgUIGrids, MicroDAGR should be good reference.

@TheMagnetar
Copy link
Member

I have tested it and it works really well. Awesome!

@PabstMirror
Copy link
Contributor

5c769a1
This is all the changes I could think of:

  • allows adding water source actions to map objects
  • fix getting more thirsty when drinking water 😆
  • refill amount on half bottles should be half (I think?)
  • moved refill items to base water node, should be easier to use, but this is subjective

@PabstMirror
Copy link
Contributor

Added a delay on consume because progress bar will sometimes be closed by interaction menu closing
(//wait a frame to handle "Do When releasing action menu key" option)

Animations look fantastic, I'm not real familiar with CfgMoves configs but I think they are ok and the system should work well. Did we want the drink anims on the soda cans as well?

@mharis001
Copy link
Member Author

I am working on adding slightly different animations and sounds for the soda cans (changing bottle cap opening to opening a can).

I see you left the action offset commented out due to needing a typeOf. I think for some objects it is somewhat needed, what about adding a second array for corresponding offsets for the p3ds?
Also, do we want to add Item_Base_F objects for the consumable items (like other ACE items)?

@PabstMirror
Copy link
Contributor

I wasn't sure if the position offset was necessary, I think [0,0,0] works well enough for all the water sources, but it really does look nice having the point being exactly at the nozzle.

I guess having placeable items might be nice

@mharis001
Copy link
Member Author

Changed thirstRestored and hungerRestored to thirstQuenched and hungerSatiatedon the reccomendation of someone. Apperently, old entries sounded like they were restoring/bringing thirst or hunger back.

Other than that, I think this is finally good to go 👍

@PabstMirror
Copy link
Contributor

Merging now for the RC, can still add tweaks if we find anything

@PabstMirror PabstMirror merged commit 4152b39 into acemod:master Nov 19, 2018
@mharis001 mharis001 deleted the fieldRations branch November 19, 2018 08:48
Copy link
Contributor

@dedmen dedmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice in-code documentation 👍

diffuse[] = {0.5,0.5,0.5,1};
forcedDiffuse[] = {0.5,0.5,0.5,0};
emmisive[] = {0,0,0,1};
specular[] = {0.30000001,0.30000001,0.30000001,0};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these excessive 0's from? I saw them in a ACE rvmat too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, this is how the file was from the original PR. Just conformed it to config guidelines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants