Post news RSS About Shotguns

News article explaining some of the shotgun game logic used in ZMBE 1.2

Posted by on


//Developer Update
About Shotguns

Normally in FPS games shotguns use a very simple accuracy pattern: There is a set "cone" of accuracy that is centered around the crosshair. For ZMBE we decided to go a bit deeper. Instead of the simple method explained, our code works a bit different:

Player presses fire ----> Initial cone center is displaced ----> Shell is being fired (on a set cone around this new displaced center) ----> Player view is shaken a bit + Player view center ends up displaced after the shot

This servers several purposes: Different shotgun characteristics are taken into account, like barrel length which then determines damage, base accuracy, spread and amount of kick the player experiences. This difference the defines the usage of each shotgun. For example a sawn-off baikal has a very high spread and low accuracy, which makes it a very useful close-combat weapon because you can hardly miss a zombie trying to claw you. On the other side the 28" barrel Remington 870 Wingmaster Express has excellent accuracy and an ultra tight spread, which makes it great for long range shooting, but you might actually miss a fast moving zombie coming close to you.


Comments
tehshadow
tehshadow

"This is my mod, expect pornographic amounts of shotguns!"--- cat

Reply Good karma Bad karma+8 votes
56er
56er

lol...
Looks promising, i might give it a try...

Reply Good karma Bad karma+1 vote
Jesternz08
Jesternz08

Interesting, That would have been my guess as to how the shotty's work. Nice modifications.

Reply Good karma Bad karma+1 vote
FuryGirl
FuryGirl

Fiinally! someone who knows how those guns work.

Reply Good karma Bad karma+1 vote
Potteh
Potteh

OH WOW AMAZING. Not, the cone is still the same, all you're doing is shaking the view, that does NOT affect the cone at all. To affect the spray/cone you have to do more mathematical calculations. Don't try to look smart, because this made me laugh.

V = w/h=1024/2; C = RandomInt(45,50)/2; v+=c*2; Hardly amazing.

Reply Good karma Bad karma+5 votes
black_cat Author
black_cat

No. the cone is different in size, direction and offset for each shotgun. We are shaking, and displacing the view + offsetting the cone center and spread. So you better not try to look smart.

Reply Good karma0 votes
Potteh
Potteh

Exactly, you're not affecting the cone what soever, setting an offset to the view does not affect the cone. So you better not try to look smart, hence why I even +3 votes because people know I'm right.

Do more mathematical junctions then make a proper post.

Reply Good karma Bad karma+5 votes
Potteh
Potteh

I also said, don't try to look smart, not better not. What are you gonna do to me? Blow me up for having brown hair green eyes and having correct views on things?

Reply Good karma Bad karma+4 votes
black_cat Author
black_cat

I think you did not get my last post. Our code displaces the aim center (which the cone uses) before the shell fires. And once you play the mod you can easily verify it. For example the Remington shotgun has a very tight spread and if you do some target shooting you will see that each shot group, while being very tight, is not centered around the absolute view center. This means even though it has a really tight spread it is not ultra accurate because spread center is not the same as aiming center.

Also look at the screenshot on the newspost. Each shot group was fired while aiming at the same spot on the target.

Reply Good karma0 votes
Potteh
Potteh

You're still not affecting the cone, how can I get it into that big lump of a brain of yours?

Reply Good karma Bad karma+4 votes
black_cat Author
black_cat

Yes it is affecting the cone. Also do not start discussions with people if you can not keep personal insults to yourself

Reply Good karma0 votes
Elementalist
Elementalist

I'd... Kinda agree with PottehUK. Not in the same way, but this doesn't really seem amazing to me either. It hardly sounds different either. It seems to me you just took shotguns from one game or another, generalized it, shoddily explained it, then explained yours in a bit more detail trying to make it sound better.

If you could actually cite references and other games in which the 'simple method' was used, I might be impressed. As it is, you've just arrogantly accused other games of using a method you seem to be assuming, not to mention in your comment above you're saying that games apply the same template for every kind of shotgun in their game?

Reply Good karma Bad karma+6 votes
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.