Arma 3
88 ratings
Grassphobia (beta)
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
File Size
Posted
90.046 KB
18 Apr, 2021 @ 11:23am
1 Change Note ( view )

Subscribe to download
Grassphobia (beta)

Description
It feels like this one needs a little explanation.

FOREWORD or Why is Grassphobia?
I quite like grass. It's nice, soft and doesn’t get everywhere.
My friend does not like grass. He puts Terrain on Low whenever he can. Why have immersion when you can see enemies, right? And to be perfectly honest that's okay. Everybody has their preferences and one person performing somewhat better than others doesn't change much. If only he didn't host the server...oh

Debug mode of a wonderful addon called LAMBS helps to understand what is the effect that grass has on the AI. Contrary to what you may believe, crawling in grass allows you to sneak, break contact and occasionally stealthly snipe clueless enemies. When the host decides to disable grass for himself, bots are able to see right through it.

The thing is that turning grass off, can make some sense. In ARMA, once you fire a couple of shots, the AI will know your exact position no matter how much grass there is in the way. They will also track your position for the next 3 or more seconds after breaking line of sight. That’s why fighting uphill at close range may often feel unfair. Now multiply that by what happens on ours group server and you get why this addon exists.


FEATURES or What is Grassphobia?
Grassphobia is a highly customizable addon that lets you reduce grass in a desired area.
Pressing a keybind (SHIFT + C by default) places vanilla ClutterCutter objects on a fake-hexagonal grid around the player. Using CBA Settings you may change the following parameters:

- Size
ClutterCutter object to be used by the script.
- Pattern
Cutter placement pattern based on filling parts of a hexagon. See screenshots for reference.
- Range
Distance from player to be filled with cutters.
- Radius
Spacing between cutters. Used to leave patches of grass or remove it completely.
- Line thickness
Width of Line pattern measured with cutters.
- Burst length
Number of cutters to be spawned at once. Used to avoid stutters when spawning a large amount of objects.
- Burst delay
Delay between bursts.
- Enable global execution
Cutters generate for all clients.

Placing a new set of cutters removes the previous one. (see known issues below)

TODO or What's next for Grassphobia?
1. Preset system
System for saving multiple ways of cutting grass with keybinds to cycle/switch between them.
2. Random cutter offset
Slider for subtle randomized offset in placement of cutter objects for a less grid-like appearance.
3. Debug/visualisation tool
3D circles/hexes visualising placement and ranges of cutter objects coupled with additional debug log.
4. Better/nicer/prettier code
5. Fancy showcase
Video showcasing all of the features and settings once the mod is done.
6. (to be researched if it’s even possible) option to flatten grass instead of removing it


KNOWN ISSUES
- Grassphobia can occasionally give an "index out of bounds/zero divisor" error. It does not break anything and will be fixed in future releases.
- Removed grass does not always comeback after placing a new set of cutters. I currently assume it is hardcoded and cannot be fixed.
- Certain combinations of Radius and Pattern settings result in a line of grass patches being placed directly in front of players vision. I hope to fix it with Random cutter offset in a future release.

FINAL NOTES or fnc_cutGrass.sqf not found
1. I've never wrote an addon before Grassphobia. Despite being quite happy with the current code, it’s structure and optimization, I’m fully expecting for something to be missing or broken. Please consider reporting your findings.
2. LAMBS Debug Draw mode is a great tool for understanding how the AI sees in ARMA. I highly recommend it.
3. Beketov’s forests are unplayable with grass enabled and plain ugly without it. I've heard that they are lovely this time of the year.
4. #blameUlti for this addon.

Like, share, subscribe and such if you find it useful.
22 Comments
Rachta Za 39,99PLN  [author] 7 Apr, 2022 @ 2:50am 
Client side mod. Should be signed. Uses vanilla objects for cutting grass.
Dr Marko 6 Apr, 2022 @ 4:54am 
is the Mod client-site or service-side or both?
[C&C] Moxxi 11 May, 2021 @ 7:00am 
tfw you can finally have grass on without getting 10 fps on low end laptops. :claptrap:
✠ DFSpecter 27 Apr, 2021 @ 4:23pm 
Also, this addon's really nice for potato computers like mine. Thank you kind sir!
✠ DFSpecter 27 Apr, 2021 @ 4:21pm 
Opening sentence = 10/10

Take my points. I don't care.
Speedy 24 Apr, 2021 @ 8:56am 
"I quite like grass. It's nice, soft and doesn’t get everywhere".

i understood that reference.
Rachta Za 39,99PLN  [author] 24 Apr, 2021 @ 3:45am 
@gman
I'm glad that you've skipped the entire first half of my sentence, else I would have a point.
Test for yourself if you care. I did so over many hours and the results were consistent. This addon wouldn't possibly exist without them.
gman 24 Apr, 2021 @ 3:00am 
>AI Will know your position no matter how much grass is in the way
This has been proven false time and time again. Git gud disgusting kothbabby
tutel 23 Apr, 2021 @ 10:16am 
pretty pog
Rachta Za 39,99PLN  [author] 23 Apr, 2021 @ 9:21am 
@ArteyFlow @MKNavaG - S-III [G331]
As I mentioned I quite like grass. It's both pretty and at times obnoxious. There are multiple situations where the AI has an unfair advantage because of the foliage. The mod was made to reduce grass on demand instead of outright disabling it for good. It lets you to pick how you want to do it. For example, you can remove some of it in a 10 meter radius or leave plain empty ground in a half-circle with 70 meter radius.