question is how do to rifle could shoot more times instead of two times?

1 reply [Last post]
Soap
User offline. Last seen 8 years 25 weeks ago. Offline
Joined: 2015-10-23
Posts: 4

sorry for my bad english

nemo
nemo's picture
User offline. Last seen 3 weeks 5 hours ago. Offline
Joined: 2009-01-28
Posts: 1861

so. there are a couple of issues here, one is easier than the other...
I'm guessing you want a machinegun. has come up a few times before. allowing multiple shots w/ rifle or deagle is easy. that's just a property in the weapon definitions in the game source.

allowing multiple rapid repeated shots is a little more complicated.

right now, if you shoot a hog, he only gets damaged once, then while he's rolling the bullet flies on to damage other hogs. that's 'cause the code in question only hits not-moving hogs. but a machine gun bullet should be able to hit moving hogs, and ideally from roughly the direction facing the gun.

there's a function for damaging anything, including hogs in motion, but you also need the bullet to only hit a hog once, then fly on to hit others.. for that, some sort of tagging or list system is needed.

that doesn't exist yet.

there've been people who have expressed interest in this in the past, but no one who has sat down and done it. and, as noted in the other thread you started, I'm a bit more biased towards unique utility/weapon options than straight line of sight damage dealing.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]