Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modding view distance #130

Open
Aszhelt opened this issue Sep 19, 2022 · 2 comments
Open

modding view distance #130

Aszhelt opened this issue Sep 19, 2022 · 2 comments
Assignees
Labels
💡 enhancement 💡 New feature or request

Comments

@Aszhelt
Copy link

Aszhelt commented Sep 19, 2022

Hi
general issue:
Combat distance is too low for me.

Ranged weapons have max distance 8-15 tiles(meters?). I can change the max distance for the weapon. But without changing the view distance it makes a small impact.

How can I change the view distance without changing the actual perception stat?
Where do I find dependence (perception->view distance)? Just multiplying general view distance is ok

@SerialKicked SerialKicked added the 💡 enhancement 💡 New feature or request label Sep 19, 2022
@SerialKicked SerialKicked self-assigned this Sep 19, 2022
@SerialKicked
Copy link
Member

(topic)

The formula itself is hardcoded, but I can change that fact easily, well, once I get some breathing room and I'm not longer hot-patching the release (give me a couple weeks). I'll just add that view distance impacts performances a lot during large battles, I'd be wary of overwriting the base formula.

Current formula is: viewdist = 5 + Stats[AgentStats.Perception] / 7;

In the meantime, if you want to add a very long range weapon, I'd suggest to attach a trait boosting perception to it. This way, it'll only tweak perception of the person having this particular weapon equipped.

@Aszhelt
Copy link
Author

Aszhelt commented Sep 20, 2022

Thank you.
I will do it through traits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement 💡 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants