Add FireArms to HandWeapons?
Posted: Wed Jul 27, 2011 7:29 am
How I got the idea:
I've seen the bayonetted rifles [from Road to Rome], and how they have an added FireArms as its Alt fire. I looked at the coding, and the bayonet is simply an addTemplated FireArm set to AltFire.
The issue:
Is there a way I can add a FireArms (such as the bayonet), but have it use the primary fire along with the normal gun instead of alternate fire? [Thus having two FireArms for the primary fire instead of the main gun on left-click and the added FireArms as right-click.] I have already tried to "rem" out the "ObjectTemplate.setInputFire c_PIAltFire" line of code for the second FireArm, and all my gun did was fire the first (main) FireArm.
What I'm trying to do:
- Add two more FireArms to one of my guns.
- Add a .4 second fire delay to the first new FireArm, and .8 second fire delay to the second new FireArm (to create a 3-shot burst effect).
- All three FireArms will have the same mag size, number of mags, reload time, etc. in order to make the burst effect work correctly.
- Cause one shot of the gun to count as 3 shots (ObjectTemplate.setBlastAmmoCount 3) in order for the "burst" to count as three shots instead of one, while still using a standard 30-round mag. Without setBlastAmmoCount being set to 3 (instead being 1), the gun would have to have a 10-round mag in order to shoot 30 bullets total. Leave this up to me to work out, just focus on getting an added FireArms to work with the main gun.
Is this possible? [Do I need to reword what I'm asking?]
I've seen the bayonetted rifles [from Road to Rome], and how they have an added FireArms as its Alt fire. I looked at the coding, and the bayonet is simply an addTemplated FireArm set to AltFire.
The issue:
Is there a way I can add a FireArms (such as the bayonet), but have it use the primary fire along with the normal gun instead of alternate fire? [Thus having two FireArms for the primary fire instead of the main gun on left-click and the added FireArms as right-click.] I have already tried to "rem" out the "ObjectTemplate.setInputFire c_PIAltFire" line of code for the second FireArm, and all my gun did was fire the first (main) FireArm.
What I'm trying to do:
- Add two more FireArms to one of my guns.
- Add a .4 second fire delay to the first new FireArm, and .8 second fire delay to the second new FireArm (to create a 3-shot burst effect).
- All three FireArms will have the same mag size, number of mags, reload time, etc. in order to make the burst effect work correctly.
- Cause one shot of the gun to count as 3 shots (ObjectTemplate.setBlastAmmoCount 3) in order for the "burst" to count as three shots instead of one, while still using a standard 30-round mag. Without setBlastAmmoCount being set to 3 (instead being 1), the gun would have to have a 10-round mag in order to shoot 30 bullets total. Leave this up to me to work out, just focus on getting an added FireArms to work with the main gun.
Is this possible? [Do I need to reword what I'm asking?]