Gradually add/decrease value to float in ASM

Started by Sharkbyte, March 01, 2011, 02:03:39 PM

Previous topic - Next topic

dcx2

Any value for the addend and multiplier are safe.  As I said, try making the multiplier something large like 3 or 4.  You can watch an enemy's head spin like a propeller!  It's kinda funny.  EDIT: values less than 1.111111 will stop spinning eventually.

To make the heads spin faster, use a bigger addend (like 0.2).  To make them spin slower, use a smaller addend (0.05).  To make them spin the other way, use negative addends (-0.1).

You should refer to the floats by their float value instead of their hex value.  You can even use Gecko.NET to search for floats (Data Type), you can display them as floats (View Mode), you can right-click a Value field and do "float to hex", and the assembler can understand ".float 1.0" means 0x3F800000.

I caution against making their heads rotate vertically.  It makes it more difficult to get a head shot.