semi auto

Programming Reality Factory and Genesis3D.
Post Reply
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA
Contact:

semi auto

Post by darksmaster923 » Tue Feb 06, 2007 2:43 am

a way to make semi auto or burst guns
Herp derp.

User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott » Tue Feb 06, 2007 3:01 am

i dont know how to do that myself but i think that its got to do with scripting and not programming.
*GD*

incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 » Tue Feb 13, 2007 4:29 pm

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
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.

User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis » Tue Feb 13, 2007 4:39 pm

I'm not sure about this, but I think that 'ammopershot' only defines how much ammunition the weapon uses with one shot.
Pain is only psychological.

incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 » Wed Feb 14, 2007 2:46 pm

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.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.

User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis » Wed Feb 14, 2007 3:16 pm

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.
Pain is only psychological.

User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA
Contact:

Post by darksmaster923 » Thu Feb 15, 2007 12:40 am

but no semi auto :(
Herp derp.

User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco » Thu Feb 15, 2007 1:22 am

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...

User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA
Contact:

Post by darksmaster923 » Thu Feb 15, 2007 2:14 am

uhh..... what? im trying to make a semi auto gun
Herp derp.

User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis » Thu Feb 15, 2007 1:04 pm

Semi-automatic weapons can't be done without scripting.
Pain is only psychological.

Post Reply