How Do I make a bullet weapon More Powerful?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

How Do I make a bullet weapon More Powerful?

Postby TheOldKingCole » Tue Jan 14, 2020 5:57 pm

So I was wondering how I can weapons that use bullets or shells more powerful?

When looking at a weapon, say a supershotgun, the code looks like this

Code: Select allExpand view
    Fire:
    SHT2 A 3
    SHT2 A 0 A_FireBullets (11.2, 7.1, 20, 10, "BulletPuff", FBF_USEAMMO|FBF_NORANDOM)
    SHT2 A 0 A_PlaySound ("weapons/sshotf", CHAN_WEAPON)
    SHT2 A 7 A_GunFlash
    SHT2 B 7
    SHT2 C 7 A_CheckReload
    SHT2 D 7 A_OpenShotgun2
    SHT2 E 7
    SHT2 F 7 A_LoadShotgun2
    SHT2 G 6
    SHT2 H 6 A_CloseShotgun2
    SHT2 A 5 A_ReFire
    Goto Ready
   }
}


What do I change to double the power of a shot?
TheOldKingCole
 
Joined: 31 Jan 2019

Re: How Do I make a bullet weapon More Powerful?

Postby TheOldKingCole » Tue Jan 14, 2020 8:33 pm

Never Mind I figured it out
TheOldKingCole
 
Joined: 31 Jan 2019


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests