Speed property for A_Raise/A_Lower

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Speed property for A_Raise/A_Lower

Re: Speed property for A_Raise/A_Lower

by D2JK » Wed Nov 12, 2014 1:44 pm

Since nobody seems to be tackling this, I'll give it a shot.

Would this code work?
Spoiler:
The original code can be found in OP's link.

Re: Speed property for A_Raise/A_Lower

by Onar4241 » Sat Sep 27, 2014 2:37 pm

This should be added. I'd like to increase the speed in a specific manner.

Re: Speed property for A_Raise/A_Lower

by Xtyfe » Mon Sep 22, 2014 11:05 pm

This would be awesome, heavier guns could take a longer time for example.

Re: Speed property for A_Raise/A_Lower

by D2JK » Wed Sep 17, 2014 5:44 am

Good that I saw this before submitting a duplicate request.

I agree this addition would be rather useful. For fast weapon switches, I currently use the "weave in zero-tic A_Lowers/Raises" method. Also, in lack of proper sprites, they're often useful for weapon reloads, cooldowns, etc (or to lower the gun when delivering a quick punch)... the default speed (6, as pointed out by OP) just isn't always desirable.

The Offset - keyword is another possibility, but it would simplify the decorate code if, instead of writing a great number of Offsets, you could just adjust the speed parameter in A_Lower/Raise instead, and loop it.

If you don't mind, I'll post a few illustrative examples.

Example 1:
Spoiler:
Example 2:
Spoiler:

Re: Speed property for A_Raise/A_Lower

by NeuralStunner » Wed Aug 13, 2014 7:30 pm

I would say that a speed factor is better.

Speed property for A_Raise/A_Lower

by Minigunner » Wed Aug 13, 2014 4:12 pm

As mentioned in the wiki articles for A_Raise and A_Lower, there is a method for modifying the speed at which a weapon raises/lowers; however, it is limited in the factor in which the speed is multiplied (e.g. 1/3, 1/2, 2, 3, ect.), and a slower raise/lower using this method is (of course) not as smooth.
I ask that a Speed property be implemented for more flexibility, especially since mods such as DoomRL Arsenal make liberal use of the current method.

Also, as was pointed out to me, there's already a variable for the raise/lower amount (which is hard-set to 6.0). This could be used for the above suggested property such that A_Raise(3.0) would raise the weapon at half the speed, similar to the speed of a 2-tic A_Raise frame. Alternatively, for simplicity, the property can be a factor, so that A_Raise(0.5) would result in the same.

Top