Page 1 of 1

semi auto

Posted: Tue Feb 06, 2007 2:43 am
by darksmaster923
a way to make semi auto or burst guns

Posted: Tue Feb 06, 2007 3:01 am
by scott
i dont know how to do that myself but i think that its got to do with scripting and not programming.

Posted: Tue Feb 13, 2007 4:29 pm
by incenseman2003
If you look in the weapon.ini file you will find that each weapon entry has a line that looks like this "ammopershot = 1". If you change the number to 2 then the weapon will fire two rounds. If you change the number to 3 then the weapon will fire three rounds and so on. You may want to make a new sound file for the weapon that sounds like it is firing the number of rounds you set it for. Also you can use a image editor to create a new mussle flash that looks like your firing the number of rounds that you have the weapon set to fire.

Let me know if this was helpful.

Later

Posted: Tue Feb 13, 2007 4:39 pm
by Juutis
I'm not sure about this, but I think that 'ammopershot' only defines how much ammunition the weapon uses with one shot.

Posted: Wed Feb 14, 2007 2:46 pm
by incenseman2003
That is true but if the animations and the muzzle flash are fixed to make it look like three round bursts and there are three rounds coming out in the one shot then it could be exactly the same effect as an actual three round bust.

Posted: Wed Feb 14, 2007 3:16 pm
by Juutis
No, what I meant is that the weapon shoots only one projectile but spends more ammo ( = decreases the player's attribute, that is defined with 'ammunition = ...' in weapon.ini, by more than one unit )

But now that I think of it... it doesn't really matter how many projectiles the weapon shoots. With no inaccuracy all the bullets will go to the exact same spot and they will be launched during the same frame so it's basically just one projectile.


And yeah, you're absolutely right about the animation/muzzle flash thing that you could 'fake' the burst fire.

Posted: Thu Feb 15, 2007 12:40 am
by darksmaster923
but no semi auto :(

Posted: Thu Feb 15, 2007 1:22 am
by psYco
NO thats easy, just make seperate guns,(that all look the same) one thats "semi auto" takes one ammo and does damage another that is "burst" takes 3 bullets and does 3x and then the "auto" version whitch is just set to auto matic...

Posted: Thu Feb 15, 2007 2:14 am
by darksmaster923
uhh..... what? im trying to make a semi auto gun

Posted: Thu Feb 15, 2007 1:04 pm
by Juutis
Semi-automatic weapons can't be done without scripting.