A_SkullAttack speed?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

A_SkullAttack speed?

Post by Cutmanmike »

Is there any way I can speed up an A_SkullAttack? Basicly i've got a monster that charges at you, but it charges way too slow.
User avatar
Enjay
 
 
Posts: 27302
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Does making it's frame duration shorter make any difference to the charging speed? eg the charge state being

SPRI AAAAAAAA 1

Instead of

SPRI A 8

or whatever? I know that works with normal movement but I've not tried it with projectile-like/charging objects

If not, is it possible to thrust the thing or even use A_Recoil which, I understand, can be used an actors and with a -ve value pushes the item concerned forward?
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I believe (cause i'm at work now) that's what I currently have. It doesn't seem to work, although i'm sure i've done this before with other monsters.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Post by Amuscaria »

Cutmanmike wrote:I believe (cause i'm at work now) that's what I currently have. It doesn't seem to work, although i'm sure i've done this before with other monsters.
I sense a feature suggestions. A_SkullAttack(speed-factor, etc, etc) XD. I think it doubles your monster's movement speed for the attack, right?
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

I think so. I can't really change the speed of my monster though. Hmm i'll have to play around with it.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

Actually, I don't think it doubles the speed. I made a spider monster that runs fast and charges but the charge is the same speed as the lost soul's charge and the lost soul normally moves much slower.

@Enjay: I don't think extra frames with shorter durations would help because there aren't any code pointers in the frames after A_SkullAttack.

Also, could there be an option to turn off SLIDINGHELPLESS when charging so that it could be like the maulotaur which just returns to See if shot while charging instead of the lost soul sliding back, unable to move or attack until it hits a wall? Otherwise more powerful enemies with charge attacks could be killed easily and cheaply.
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

Hmm, how did they do the charge for the mauler demon in KDiZD then? That was a damn fast charge attack from what I played
skadoomer
Posts: 1026
Joined: Fri Sep 05, 2003 12:49 pm

Post by skadoomer »

thingthrust?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Kirby wrote:Hmm, how did they do the charge for the mauler demon in KDiZD then? That was a damn fast charge attack from what I played

It used the normal A_SkullAttack repeatedly.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

I used A_SkullAttack repeatedly in a loop and the enemy chased me really quickly. I thought it just made the enemy angle toward you better, but apparently it also makes it even faster.
Locked

Return to “Editing (Archive)”