Making some Weapon burst fire Questions

General mod discussion and requests.
Post Reply
wasdwasd12
Posts: 175
Joined: Tue Dec 18, 2018 1:45 pm

Making some Weapon burst fire Questions

Post by wasdwasd12 » Thu Jul 21, 2022 12:59 pm

hello everyone Still educating myself using the geck and making fallout perfect for me.

My next project is making some weapons burst fire or single fire.....I know their is a mod by JIP for burst fire but if you ask me it is outdated.

So I was thinking in the geck settings what would be a good settings to change to help make a weapon semi auto or burst fire......I want some of the common guns and modded ones to be burst fire....would just make some guns a lot better if you ask me.


But could some give me some instructions and advice on making some burst fire settings?? like how would you make a weapon burst fire......err i know their is a burst box in the geck but idk what that box does??

User avatar
XanthosGambit
Posts: 77
Joined: Sun Oct 30, 2016 1:46 pm
Contact:

Re: Making some Weapon burst fire Questions

Post by XanthosGambit » Thu Jul 21, 2022 1:02 pm

As far as anyone knows, those boxes in the GECK do absolutely nothing.

wasdwasd12
Posts: 175
Joined: Tue Dec 18, 2018 1:45 pm

Re: Making some Weapon burst fire Questions

Post by wasdwasd12 » Thu Jul 21, 2022 1:29 pm

i set it to semi auto using the geck maybe if i set the ammo use to 4 it might make it burst fire???

wasdwasd12
Posts: 175
Joined: Tue Dec 18, 2018 1:45 pm

Re: Making some Weapon burst fire Questions

Post by wasdwasd12 » Thu Jul 21, 2022 1:37 pm

Hmmmmm i wonder what setting makes a weapon burst fire hmmm do make a script for it or just change some settings hmmmm

SPITSPHIRE
Posts: 28
Joined: Thu Aug 29, 2019 10:13 pm

Re: Making some Weapon burst fire Questions

Post by SPITSPHIRE » Thu Jul 28, 2022 9:56 pm

the burst fire speed settings in the geck only effect vats and not normal gameplay.

if you want a quick and dirty burst fire script, i can send you one i made for a weapon in my pack and you can just modify it for your needs.

SPITSPHIRE
Posts: 28
Joined: Thu Aug 29, 2019 10:13 pm

Re: Making some Weapon burst fire Questions

Post by SPITSPHIRE » Thu Jul 28, 2022 9:59 pm

Code: Select all

scn DCUSCPTBurstFireServiceRifle

int GoBurst
int AmmoLeft

float Timer




begin OnFire
    let AmmoLeft := GetPlayerCurrentAmmoRounds
    let GoBurst := 1
end

begin GameMode
    if (Player.GetEquipped WeapUniqueDCUModernServiceRifle) && (Player.GetItemCount AmmoList556mm > 0)
    
        if (GoBurst > 0) && (AmmoLeft >= 1)
            let Timer += GetSecondsPassed
            if (Timer >= 0.1)
                Player.FireWeapon WeapUniqueDCUModernServiceRifle
                let GoBurst += 1
                let AmmoLeft -= 1
                let Timer := 0
            endif
        endif
        
        if (GoBurst >= 3) || (AmmoLeft < 1)           ;Number of additional rounds to fire per trigger pull
            let Timer := 0
            let GoBurst := 0
        endif
        
    else
        let Timer := 0
        let GoBurst := 0
        let AmmoLeft := 0
    endif
end 
just need to swap the weapon reference to whatever weapon your wanting it to apply to.
also assuming you have basic scripting knowledge for this to work.

wasdwasd12
Posts: 175
Joined: Tue Dec 18, 2018 1:45 pm

Re: Making some Weapon burst fire Questions

Post by wasdwasd12 » Sun Jul 31, 2022 8:48 am

Thank you you been most helpful <3 snuggles

Post Reply