Burst Shots

Post » Wed Jun 02, 2010 2:35 am

I want to create a new weapon that shoots in bursts. I opened op the weapon in the geck, and checked "Burst Shot", however that doesn't seem to do anything while in-game. So is there another way to do this, or am I out of luck?
User avatar
Josh Sabatini
 
Posts: 3445
Joined: Wed Nov 14, 2007 9:47 pm

Post » Wed Jun 02, 2010 1:28 pm

Scripting with FireWeapon. TTT once helped me with it.
User avatar
Gemma Woods Illustration
 
Posts: 3356
Joined: Sun Jun 18, 2006 8:48 pm

Post » Wed Jun 02, 2010 2:43 am

Yup, and I stole Harmy's idea :P. The following code's basically the standard I use to detect a weapon firing, if you're willing to wait until NVSE comes out, or have Fallout 3, you can see an implementation of the code for burst fire in Playing With Firepower. The code need not stay on a weapon, you could easily put it on a quest to allow the player the option of burst-fire on arbitrary weapons; the difficulty of setting the limits on which weapons are appropriate for it and what else to bulk the mod out with (a single perk isn't really substantial) is all that's stopped me doing it.
ref contshort activeshort animbegin onequipset cont to getcontainerset active to 1endbegin onunequipset active to 0endbegin ondropset cont to 0endbegin gamemodeif(cont)	if(active)		if(cont.GetAnimAction == 2 && anim == 0)			set anim to 1		elseif(cont.getanimaction != 2 && anim == 1)			;WEAPON FIRED			set anim to 0			cont.fireweapon WHATEVER		endif	endifelse	set cont to getcontainer	if(cont)		if(cont.getequipped THISWEAPON)			set active to 1		endif	endifendifend

User avatar
Maya Maya
 
Posts: 3511
Joined: Wed Jul 05, 2006 7:35 pm

Post » Wed Jun 02, 2010 3:40 pm

Great! Thanks guys!
User avatar
Victor Oropeza
 
Posts: 3362
Joined: Sun Aug 12, 2007 4:23 pm

Post » Wed Jun 02, 2010 5:55 am

Great! Thanks guys!


For what little I did, you're welcome :P
User avatar
herrade
 
Posts: 3469
Joined: Thu Apr 05, 2007 1:09 pm


Return to Fallout: New Vegas