This addon gives speed bonuses and penalties to various outfits.
This addon gives speed bonuses and penalties to various outfits.
There are three parts to this addon.
1. Outfit Speed
Light armors like jackets, Sunrise suits and LC suits receive anywhere from a 5-10% increase in movement speed. Exoskeletons, exosuits and some heavy armors get anywhere from a 5-13% decrease in movement speed. Other armors like SEVA, SSP, SKAT are untouched (they are balanced compared to exos by carryweight, but I can tweak this if desired). This is completely configurable using outfit_speeds.ltx. The speed modifier is displayed in outfit stats.
2. Active item affects speed (Toggleable)
Having a knife, axe, or handgun out confers an 8% sprint speed bonus.Having a submachinegun out confers a 4% bonus.Other weapons or items will either confer no bonus or slow the player down depending on weight, up to -8%.
3. Encumbrance affects speed (Toggleable)
The actor's total encumbrance (carried weight / max possible weight) affects their movespeed, like in Dark Souls.Under 25% total weight, the actor moves 8% faster.Above 70% weight, the actor moves 8% slower.Above 100% weight, the actor moves 16% slower.These bonuses and penalties are halved with exoskeletons.
GitHub download: Github.com
V1.2.1
- Adjusted the formula for encumbrance.V1.2- Mainlined encumbrance as MCM option. Reworked formula for weapon speed (now gives penalty based on weapon weight).
V1.1.8
- Nerfed exosuit speed to -10%. Added optional 'encumbrance' addon that was posted in Anomaly discord. Encumbrance makes you run faster below 30% of total weight carried, and slower above 75% and 100%.
V1.1.7
- Some internal cleanup. Buffed base speed of Nosorog to match that of exoskeletons. Nerfed exo sprint speed by 10%, 20 for Nosorogs.
V1.1.6.1
- Bugfix for a rare crash with nil items
V1.1.6
- Fixed another bug in speed.script that made run modifier apply to sprint speed. If you updated with encumbrance addon in Discord, don't need to download.
V1.1.5
- Monkey patched out dependency on utils_ui. Fixed bugs in speed.script, clamped minimum movement speed to be walking speed.
V1.1.4
- Fix for crash on weapon holster
V1.1.3
- Refactor to be more modular. Update for 1.5.1.
V1.1.2
- Fix crash when removing outfits. Added speed reduction to exosuits.
V1.1.1
- Refactor to remove dependency on modifying outfit.ltx files. Compatibility with speed modification in my Powered Exos addon.
V1.1
- Pistol and knife make you sprint 10% faster. Patch for exos updated to reflect 1.3.1 changes.
RUS translation thanks to whereismy
Light armors like jackets, Sunrise suits and LC suits receive anywhere from a 5-10% increase in movement speed. Exoskeletons and some heavy armors get anywhere from a 5-13% decrease in movement speed. Other armors like SEVA, SSP, SKAT are untouched (they are balanced compared to exos by carryweight imo, but I can tweak this if desired). This is completely configurable using the parameter 'speed_modifier' in outfit.ltx by tweaking the values in outfit_speeds.ltx. The speed modifier is displayed in outfit stats.
New feature in 1.1 is pistols and knives out will increase your sprint speed by 10%, to make pistols a little more viable.
Includes compatibility patch for my powered exos addon as well - install both in either order and then apply the patch.
No patch needed for powered exos anymore, but if you are using it PLEASE USE 1.3.2 OR HIGHER. There is a function call needed to ensure they work together.
As always, please leave feedback, bugs, and suggestions.
Average
9.956 votes submitted.
Lets Check. Sounds interesting
Sounds amazing.
Sounds good :D
does this works with Actor Rework addons ?
This should be compatible, since I dont touch base speed. Are there conflicts?
No there isn't, you're good to go :)
update 5? so not compatible with update 4 hotfix 8 right?
Unfortunately no - U5 has the calls I need to set the movespeed multipliers.
Really cool, I like having a reason to chose something like Nomad over Exos.
A master Stalker might consider mobility more important than additional protection, fits right into my RP sensibilities.
Found visuals bugs immediately. Wearing a black trenchcoat shows you wearing a green one in 3rd person, wearing a green one shows you wearing a brown one, etc, etc.
It's realy good that the sprint increases with the side arm and knife. Great work.
Hey bro, you had a problem with this addon.
It was associated with an attempt to remove armor while equipped with a backpack or a power source for an exoskeleton.
I solved it by changing the lines in the file "outfit_speed"
These are the lines
db.actor:set_actor_run_coef(base_value [0] * coef)
db.actor:set_actor_runback_coef(base_value [1] * coef)
I changed them to
- db.actor:set_actor_run_coef(base_value [0] * coef)
- db.actor:set_actor_runback_coef(base_value [1] * coef)
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: c:/anomaly 1.5.0 rc21\gamedata\scripts\outfit_speed.script:27: attempt to perform arithmetic on local 'coef' (a nil value)
Just as HIPVILSTRIX said, changing those 2 lines solved this issue
db.actor:set_actor_run_coef(base_value [0] * coef)
db.actor:set_actor_runback_coef(base_value [1] * coef)
to
- db.actor:set_actor_run_coef(base_value [0] * coef)
- db.actor:set_actor_runback_coef(base_value [1] * coef)
Is this the crash that happens when removing outfit? This should not happen anymore, get the latest. Removing those two lines will cause the addon to have no effect.
Alternately, change L25 to this:
local coef = outfit and get_outfit_speed(outfit) or 1
May I ask? And what has been changed in the update
Nothing is changed. I was worried maybe I packed an old version of the script last time, so I reuploaded just to be sure.
Could you make it compatible with T.H.A.P. ?
Is it not compatible?
Now I will wait for WPO update :D
Parts toolkit in still in WPO's files
Yea, this is because I didn't want to brick anyone's save that had an older version of WPO. It should not spawn in the world at all.
Does it increase movespeed when you wear nothing at all? What happens with your movespeed when you holster/lower a weapon (a pistol or a knife)?
Played with this for a good few hours with no issues, then got this about 10 mins after starting a new playthru. not sure what caused it, i was just walking around and it crashed lol didnt seem to have a very clear trigger unfortunately
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...mes/anomaly-1.5.1.2\gamedata\scripts\outfit_speed.script:33: bad argument #1 to 'find' (string expected, got nil)
should I change those two lines mentioned in the other comments as well? thanks!
Let me look into this, I might know what the problem is. Does this happen when you holster your weapon?
Try changing L32 to:
local kind = weapon_sec == "no weapon" and weapon_sec or ini_sys:r_string_ex(weapon_sec,"kind")
I will push a fix soon.
So this makes pistols and knives give you a speed boost, but what about empty handed?
I don't get the little lung icon next to Movement Speed Multiplier :(
In monke_patch_ui.script you seem to have forgotten the "utils_ui." in front of "stats_table" which is causing the game to CTD on load.
You should probably fix that. Reject crash, return to monke.
The same script on your Outfit Parts and Repair Overhaul patch for this mod has it, by the way, so no need to fix that one, I don't think.
Damn I suspected I forgot something. Let me fix that
Edit: fixed, I'll double check the other patches later
Lastly, I use expanded armors and exoseva mod. Do I need to add something to some of your files ? (I will if pointed in right direction, no problem)
In outfit_speed.ltx add entries for the new items.
For example, if the new exoseva is named something like "exoseva_outfit" and you want to give it a speed modifier of 0.9 to keep it on par with exoskeleton, add
exoseva_outfit= 0.9
As artifax said, add the Exosevas or any other suits to the outfit_speed.ltx with the value of other exos.
You can get their config names from the readme in Exoseva mod archive, they are all listed there. Or just wait a bit, I'll probably upload a compatibility patch in the near future.
Hi, I´ve sent file to you both. Copied stuff there, easy to adjust.
EAP armors - I did not know exact values, so I guessed the right ones.
Also I sent some comp. patch to you KronQ for EAP.
Cheers :)
not sure why but latest version removes weapon stat details
I might know the reason why, let me troubleshoot this
Edit: This should be fixed now, can you check?
I ran into the same issue as above. The newest version has fixed it. Thank you!
By the time i got back from my chores, thing is fixed, stalker community OP
this looks good asf for dead air can you make a port for it? it would really help with you being so slow all the time and balance the game so you dont adjust your actor to make you too fast
Im in love with this, great idea bratan! I was wondering if SKAT or some heavier scientific suits would also decrease move speed.
I might add it for SKAT and increase the penalty for exosuits (because they are extremely cumbersome without exoskeleton), scientific suits are already fairly weak so I don't want to punish them too much more
It took my ages, but kudos for that redline tribute :) Hard to spot, but rewarding :)
"- Fixed another bug in speed.script that made run modifier apply to sprint speed."
Wait, isn´t that a good thing? Sprint faster in light suits, slower in exos? Or maybe I´m misunderstanding it.
In EFT run penalties applies only for moving without shift key. Maybe author wanna be closer to it.
There's another modifier that is supposed to apply to sprint speed, without it it meant the run speed boost was applied twice
This only affect the player right? Would be cool if it could be applied to NPCs as well (but perhaps with different percentage modifier), might work really well in tandem with Grok's Ballistic Balance overhaul (makes heavy armor NPC be tankier and require AP ammo, but they move around bit more slowly, and vice versa).
I'm getting the following error when using the latest update 1.1.7
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...mes/anomaly-1.5.1.2\gamedata\scripts\outfit_speed.script:78: attempt to index a nil value
Only other speed related mod I'm using is Grok's Gotta Go Fast / Powered Exoskeleton, which do not appear to interact with your outfit_speed.script, speed.script are the same across the other 2 mods. Seems to randomly happen when I'm sprinting for awhile then start walking.
I am getting it too. It is not related to sprinting or walking. I am getting it immidiately after I look at certain helmets or armors...
I think it will be solved swifty. No worries.
This always happens. Whenever I think it won't happen, it happens.
Expect a fix soon.
EDIT: Fixed
I.imgflip.com
i rated 10/10 because of the meme
Thanks bro. All of your mods are 10/10 in my book
Crashes the game for me in get_outfit_speed(), because outfits[sec] (where sec is "helm_respirator") returns nil
EDIT: Ah, I see you fixed that already.