@Ilovefoxes:
arctan2 =
getangle
@Captain Awesome:
Check the sound's priority, the third number in the definesound declaration.
definesound KICK_HIT kickhit.voc 0 0 4 0 0
By default it is set 4, really low. The maximum is 255. You may also want to increase the maximum number of voices in the sound setup. I believe TX recently upped it from 32 to 96.
@XThX2:
Check the wiki, my friend.
mulscale
divscale - There's no divscale command in the CONs; see mulscale.
ksqrt - Remember that in the source code, you can directly feed commands to other commands. So for ksqrt, it's just taking the
square root of the mulscale command.
& - The only &'s in that code are "&sprite[i]" and "&2047". The first one I have no clue about, but it probably doesn't matter. The second one is only used with angles, probably because the only legal values for ang are between 0 and 2047, for 2048° of rotation.
wallptr - The first wall of a sector is where a wall hinges for slopes, and it also is used to check the statuses of all the walls in a sector.