How does CS:GO handle spray / spray-patterns? (coding)
[QUOTE=Rocket;47940991]That's a pretty broad question. What do you mean exactly?[/QUOTE]
Well, in CS:GO weapons have a spray pattern.
Each of them is different compared to other guns. (Ak47 for example)
I just want to know how CS:GO does deal spray patterns.
I'm sorry, i have no idea how i could explain what i mean :/
In CoD or Battlefield you just spray without being able to compensate the spray like in csgo because the weapons have no spray pattern. <- How would I code it like in csgo, that every weapon can have an unique spray pattern.
Do you mean, the paint?
[media]http://www.youtube.com/watch?v=Pa5QfRNlSp0[/media]
This is what he means, the recoil of the weapons increases the offset from the original crosshair location.
I think he's referring to weapon recoil...
[QUOTE=KingCentKing;47940593]How does CS:GO handle spray / spray-patterns? (coding)[/QUOTE]
It's pattern or sequence + a bit of randomization.
Every specific weapon has sequence.
That sequence is 2D Vector sequence. (for X and Y axis)
afaik, they have a set pattern of offsets that they go through and punch the player's aim with
pistols have it too, but it's randomly selected so there's never any clear pattern
there is no further randomization added to the recoil patterns, test it using weapon_spread_debug 1 or whatever command it was. they use cone for randomization.
i think
[editline]13th June 2015[/editline]
fuck, somebody call altimor here or some shit
Sorry, you need to Log In to post a reply to this thread.