SonicHacker141
srb2 hoster and puyo puyo fan
so i used a script from STC Fleetway (it's reusable) and tried to make my mega buster replace it, and the code keeps destroying it.
also here is the code:
freeslot(
"SPR2_VICT", (im doing smth related to this, just mega man teleporting)
"SPR2_SHOT",
"SPR2_MBUST",
states[S_PLAY_MEGAMAN_SHOOTSTATE] = {
sprite = SPR_PLAY,
frame = SPR2_SHOT|FF_SEMIBRIGHT|A,
tics = 35,
action = A_None,
//action = A_Boss1Laser,
//var1 = MT_LASER,
//var2 = 3,
nextstate = S_PLAY_STND
addHook("PlayerThink", function(player)
if (player.cmd.buttons == BT_FIRENORMAL)
and (player.mo.state ~= S_PLAY_MEGAMAN_SHOOTSTATE)
and (player.mo.skin == "megaman")
player.mo.state = S_PLAY_MEGAMAN_SHOOTSTATE
P_SpawnPlayerMissile(player.mo, SPR2_MBST, MF2_SUPERFIRE)
end
end)
also here is the code:
freeslot(
"SPR2_VICT", (im doing smth related to this, just mega man teleporting)
"SPR2_SHOT",
"SPR2_MBUST",
states[S_PLAY_MEGAMAN_SHOOTSTATE] = {
sprite = SPR_PLAY,
frame = SPR2_SHOT|FF_SEMIBRIGHT|A,
tics = 35,
action = A_None,
//action = A_Boss1Laser,
//var1 = MT_LASER,
//var2 = 3,
nextstate = S_PLAY_STND
addHook("PlayerThink", function(player)
if (player.cmd.buttons == BT_FIRENORMAL)
and (player.mo.state ~= S_PLAY_MEGAMAN_SHOOTSTATE)
and (player.mo.skin == "megaman")
player.mo.state = S_PLAY_MEGAMAN_SHOOTSTATE
P_SpawnPlayerMissile(player.mo, SPR2_MBST, MF2_SUPERFIRE)
end
end)