CandyCaine151
Member
simply I have a script that allows my custom character to shoot it's gun (credit to Shock for the script) but I have to press it for 1 bullet. But in super form I want it to be like a minigun (for some reason) so I ask, how do I make that happen?
The script:
addHook("ThinkFrame", do
for player in players.iterate
if player.mo and player.mo.skin == "bob"
if not (player.mo.fire)
player.mo.fire = 0
end
if not (player.powers[pw_carry] == CR_NIGHTSMODE)
and not (player.powers[pw_carry])
and not (player.pflags & PF_STASIS)
and not (player.mo.tracer and player.mo.tracer.type == MT_TUBEWAYPOINT)
and not (player.mo.state == S_PLAY_SUPER_TRANS1)
and not (player.mo.state == S_PLAY_SUPER_TRANS2)
and not (player.mo.state == S_PLAY_SUPER_TRANS3)
and not (player.mo.state == S_PLAY_SUPER_TRANS4)
and not (player.mo.state == S_PLAY_SUPER_TRANS5)
and not (player.mo.state == S_PLAY_SUPER_TRANS6)
and not (player.pflags & PF_FINISHED)
and P_PlayerInPain(player) == false
and player.playerstate == PST_LIVE
and (player.cmd.buttons & BT_CUSTOM1)
and player.mo.fire == 0
player.mo.fire = 1
local flame = P_SpawnPlayerMissile(player.mo, MT_CORK)
end
if not (player.cmd.buttons & BT_CUSTOM1)
player.mo.fire = 0
end
end
end
end)