1.0.29 Player.AttackZOffset does not affect the railgun
Posted: Thu Nov 29, 2007 23:59
Like the title says.
As you know, I've had problems trying to get damage types onto the railgun. My compromise is to fire some hitscans at the same time as the rail so that sometimes the enemy being shot at will be killed by the hitscans rather than the rail and therefore use my custom death animation. However, on changing the player view height and attack z offset, the hitscans are affected and raised, but the rail isn't. This means that the rail-trail is now too low in the player's view, makes a decal at a different place to the hitscans and hits lower than where the player is aiming too.
The pointers I'm using are A_FireBullets and A_RailAttack.
As you know, I've had problems trying to get damage types onto the railgun. My compromise is to fire some hitscans at the same time as the rail so that sometimes the enemy being shot at will be killed by the hitscans rather than the rail and therefore use my custom death animation. However, on changing the player view height and attack z offset, the hitscans are affected and raised, but the rail isn't. This means that the rail-trail is now too low in the player's view, makes a decal at a different place to the hitscans and hits lower than where the player is aiming too.
The pointers I'm using are A_FireBullets and A_RailAttack.