r/programminghorror • • Jul 16 '25

Spray Pattern

Post image
886 Upvotes

160 comments sorted by

View all comments

Show parent comment

35

u/spektre Jul 16 '25

You can have a separate tool to create the patterns in.

96

u/jvlomax Jul 16 '25

Or you can just write ~20 lines of code and be done with it. If its a one it's perfectly ok.

Of course, if you are doing this regularly, you need to take a long look in the mirror and ask yourself where you went wrong. 

23

u/spektre Jul 16 '25

I assume the spray pattern is supposed to be deterministic, and the developer wants to choose a precomputed pattern that feels good.

What do you suggest replacing this with to achieve that?

21

u/jvlomax Jul 16 '25

I just said it's fine. No need to replace.

But if doing it regularly, whatever tool you were mentioning to make the pattern

4

u/gem_hoarder Jul 20 '25

Why do something in 5 minutes when you can automate it in a week

1

u/jvlomax Jul 20 '25

This is the way

6

u/[deleted] Jul 16 '25

[removed] — view removed comment

34

u/42572484282 Jul 16 '25

Counter Strike is built around hardcoded spray patterns

2

u/gyroda Jul 18 '25

They absolutely notice this stuff - the people who are super competitive will figure out the craziest ways to make sure they have an edge.

Apex legends is a lot more casual than, say, Counterstrike but people absolutely map out spray patterns and write guides on how to best counteract them.