• Home
  • Portal
  • Forums
  • Search
  • Members
  • Log Out
  • Help
  • Extras
Forum stats
Show team
View New Posts
View Today's Posts

Comrades in Arms Discussion Board
Login to account Create an account
Login
Username:
Password: Lost Password?
 

  Comrades in Arms Discussion Board Comrades in Arms Life Addons & Mods
1 2 3 4 5 ... 10 Next »
CiA_Fatigue

Pages (3): 1 2 3 Next »
Thread Modes
CiA_Fatigue
Alwarren Offline
CiA Member
*
Joined: Apr 2012
Posts: 2,871
#1
12-09-2015, 12:13 AM (This post was last modified: 05-20-2016, 05:04 PM by Alwarren.)
'wassup Smile

Here's the first version of the Fatigue mod (I refuse to call it "Legacy Fatigue" because, fuck you Stamina). This is more or less a straight copy of the sample (minus a bug fix which I think will make the thing fail with Respawn, but since we don't use it I could have as well left it as is).

Right now, the values are like the good fatigue system. The bar is still there, but it works slightly different:

The bar will start white, then orange, then red. Like the vanilla stamina bar, the right end of the bar will show whether you are losing or gaining stamina:

[Image: CynPoqL.png]
The bar will be full only if you are naked. As soon as you carry equipment, your base stamina will be lowered accordingly. That means that the bar (like in the vanilla stamina) will not start at the left edge of the display but rather in the middle

You will gradually slow down while the bar is white. Once you can no longer sprint, the bar will turn yellow. Once the bar turns red, you are exhausted and can only walk. Exhausting yourself take a long time unless you are an ammo bearer. In all of our coop nights, I doubt we ever got past "tired" (the inventory load calculator says tired).

Regaining stamina/getting fresh again takes around 90 seconds.

What we can modify:

The following parameters can be tweaked:
  • Point were sprinting and running is disabled
  • Stamina drain from terrain gradient
  • Animation slowdown (when and how much)
  • Weapon sway caused by exhaustion
  • Total amount of Stamina
  • How long stamina takes to regenerate completely
  • Stamina drain for EACH INDIVIDUAL ACTION, like going prone, standing up, changing stance etc.
Note that I would prefer to stay away from the latter. The file that controls these aspects has around 17000 lines of code, and I really, REALLY don't want to mess with it Big Grin
Stamina is largely controlled by a script. I looked at it and I might be able to fix the AI not lowering their weapons, I am not entirely sure though if lowering the weapon can be scripted. If it can, I can make the AI do it when they are not in danger mode, which should help with them keeping up.
Anyway, give it a try and let me know your thoughts.

Update: New version attached


Attached Files
.7z   @CiA_Fatigue.7z (Size: 251.66 KB / Downloads: 274)
I don't need luck, I have ammo.
Website Find
Reply
doveman Offline
CiA Member
*
Joined: Oct 2012
Posts: 1,631
#2
12-09-2015, 07:56 AM
Alwarren rescues us once again. I think we shall have to knight you and have a whip round to buy you a white horse Wink
Find
Reply
Phantom Offline
CiA Member
*
Joined: May 2012
Posts: 2,093
#3
12-09-2015, 09:03 AM
I guess I can remove ST Stamina Bar now? I did like that one. Its not intrusive at all. Anyways, great work Big Grin
Find
Reply
Variable Offline
CiA Member
*
Joined: Apr 2006
Posts: 6,975
#4
12-09-2015, 09:11 AM (This post was last modified: 12-09-2015, 09:26 AM by Variable.)
Alwarren, you are my hero.
Is ST fatigue bar still functional? And the weight indicator in the inventory view? I would like to remove the stamina bar and work with them combined like I did before. Any limitations in doing that?


Edit: Also, have you added a server check?
The fewer men, the greater share of honor
[Image: 5552321289_7b6bf9a999.jpg]
Website Find
Reply
McGregor Offline
CiA Member
*
Joined: Apr 2014
Posts: 675
#5
12-09-2015, 09:12 AM
You are legend Alwarren!!!!
Is there any way to disable the "official" stamina bar? I'd much more prefer to use ST Stamina Bar
Find
Reply
Watchmen Offline
Guest Player
Joined: Aug 2014
Posts: 388
#6
12-09-2015, 11:02 AM
Can someone link me to the main BI feedback thread on the stamina system for the steady branch. I'd like to see what the community thinks and can't seem to find it. Thanks.
If i were to ask someone to move some furniture i would ask the guy at the bar eating bar food
Find
Reply
Alwarren Offline
CiA Member
*
Joined: Apr 2012
Posts: 2,871
#7
12-09-2015, 11:18 AM
(12-09-2015, 09:11 AM)Variable link Wrote: Alwarren, you are my hero.
Is ST fatigue bar still functional? And the weight indicator in the inventory view? I would like to remove the stamina bar and work with them combined like I did before. Any limitations in doing that?

The weight indicator seems to work, so I would guess that ST Fatigue also works still, but I haven't tested that yet.

Quote:Edit: Also, have you added a server check?

Not yet. I wanted to make sure that we use it before I modify the server side addon. I'll do this today.

@Watchmen here.
I don't need luck, I have ammo.
Website Find
Reply
Alwarren Offline
CiA Member
*
Joined: Apr 2012
Posts: 2,871
#8
12-09-2015, 11:23 AM
(12-09-2015, 09:12 AM)McGregor link Wrote: You are legend Alwarren!!!!
Is there any way to disable the "official" stamina bar? I'd much more prefer to use ST Stamina Bar

No idea TBH, it might be possible. You might also try to move it off the screen.
I don't need luck, I have ammo.
Website Find
Reply
Watchmen Offline
Guest Player
Joined: Aug 2014
Posts: 388
#9
12-09-2015, 11:51 AM (This post was last modified: 12-09-2015, 11:54 AM by Watchmen.)
Thats for the developer branch, im looking for the stable branch feedback thread

Edit: is it the same thing?
If i were to ask someone to move some furniture i would ask the guy at the bar eating bar food
Find
Reply
McGregor Offline
CiA Member
*
Joined: Apr 2014
Posts: 675
#10
12-09-2015, 11:55 AM
(12-09-2015, 11:23 AM)Alwarren link Wrote: No idea TBH, it might be possible. You might also try to move it off the screen.


Thanks for the tip. I tucked it away nice and snug in the bottom right corner. Out of sight, out of mind  ;D
Find
Reply
Alwarren Offline
CiA Member
*
Joined: Apr 2012
Posts: 2,871
#11
12-09-2015, 11:57 AM
(12-09-2015, 11:51 AM)Watchmen link Wrote: Thats for the developer branch, im looking for the stable branch feedback thread

Edit: is it the same thing?

Of course it is, it was first released to the dev branch and is now part of the main branch.
Also, please use a separate topic for that, it's off topic in this thread.
I don't need luck, I have ammo.
Website Find
Reply
Stagwine Offline
CiA Member
*
Joined: Apr 2015
Posts: 408
#12
12-09-2015, 03:28 PM
Awesome work mate. Can't wait to test this in action!
Find
Reply
Misha Offline
CiA Member
*
Joined: Jun 2009
Posts: 1,920
#13
12-09-2015, 03:50 PM
Good job!


Now let's get fatigued!
I never gave a damn 'bout the meter man, 'til I was the man who had to read the meters, man
http://www.ex-misha.org
nonliteral.org
Website Find
Reply
Outlawz7 Offline
CiA Member
*
Joined: Mar 2013
Posts: 948
#14
12-09-2015, 03:53 PM
Quote:(minus a bug fix which I think will make the thing fail with Respawn, but since we don't use it I could have as well left it as is).

I hope you mean Base respawn, we still have missions with Side and Group.
Find
Reply
Alwarren Offline
CiA Member
*
Joined: Apr 2012
Posts: 2,871
#15
12-09-2015, 05:30 PM
(12-09-2015, 03:53 PM)Outlawz7 link Wrote: I hope you mean Base respawn, we still have missions with Side and Group.

Yeah, base respawn. The type of respawn were you actually die and come back with default loadout.
I don't need luck, I have ammo.
Website Find
Reply
Pages (3): 1 2 3 Next »


  • View a Printable Version
  • Subscribe to this thread

  • Contact Us
  • Forum team
  • Forum stats
  • Return to Top
 
  • RSS Syndication
  • Lite mode
  • Home
  • Help
 
Forum software by © MyBB - Theme © iAndrew 2014



Linear Mode
Threaded Mode