Cutstuff Forum

Mega Man 8-bit Deathmatch => Help & Editing => Topic started by: Max on December 23, 2010, 06:20:39 PM

Title: Weapon making
Post by: Max on December 23, 2010, 06:20:39 PM
Trying to make a weapon that fires as soon as you pick it up. Tried WEAPON.AUTOACTIVATE but that only switches to it and not fires it.

If anyone could give me something that works, that'd be appreciated. Searched the ZDoom wiki and found nothing.

EDIT: If it's impossible, just say so.
Title: Re: Weapon making
Post by: Korby on December 23, 2010, 08:17:07 PM
Why do you need to make the Oil Slider a weapon?
How about just a custom inventory item that flings you forwards?
Title: Re: Weapon making
Post by: Max on December 23, 2010, 08:21:41 PM
Because as a weapon, it can propel you at different speeds and different angles. Much more flexible.
Title: Re: Weapon making
Post by: Korby on December 23, 2010, 08:23:34 PM
How does a Wave Dasher do it?
Title: Re: Weapon making
Post by: Max on December 23, 2010, 08:25:13 PM
Dunno. Waverunners are coded via ACS not Decorate so I can't quite use the coding.
Title: Re: Weapon making
Post by: Korby on December 23, 2010, 08:25:54 PM
Check the GLOBALACS lump outside of the ACS folder in the MM8BDM.pk3
Title: Re: Weapon making
Post by: Max on December 23, 2010, 09:03:58 PM
Yeah that's still ACS and not Decorate.

I give up, Oil's fine as it is but an autofire would've just been handy.
Title: Re: Weapon making
Post by: Korby on December 23, 2010, 09:14:39 PM
what, auto fire.
no auto fire in official weapons please.

What was the auto fire supposed to be?
Title: Re: Weapon making
Post by: Max on December 23, 2010, 09:18:37 PM
So when you pick it up you speeeed off
Title: Re: Weapon making
Post by: CutmanMike on December 24, 2010, 10:09:27 AM
You could make it a pickup like this:

Code: [Select]
actor weaponattack : CustomInventory
{
...
States
{
Spawn:
BLAH A 1
loop
Pickup:
BLAH A 0 // Do stuff here
stop
}
}

Note that pickup states are ran instantly in Skulltag, so changing how fast the state runs won't change anything.