by Major Cooke » Sun Apr 30, 2017 6:53 pm
https://mantis.zdoom.org/view.php?id=629
Right now I have to perform a nasty hack that involves modifying the player's AttackZOffset in order to make my custom third person camera work, which may or may not leave undesirable results on the rare occasion. I.e.
Code: Select all
if (TSP)
{
attackz = TSP.AttackZOffset;
}
Or:
Code: Select all
override void OnDestroy()
{
if (master && master is "TheSpecialPlayer")
{
let TSP = TheSpecialPlayer(master);
if (TSP) TSP.AttackZOffset = attackz;
}
Super.OnDestroy();
}
One actor might be okay, but more than one might not be. This could cause some serious consequences later if this continues unchecked.
https://mantis.zdoom.org/view.php?id=629
Right now I have to perform a nasty hack that involves modifying the player's AttackZOffset in order to make my custom third person camera work, which may or may not leave undesirable results on the rare occasion. I.e.
[code]if (TSP)
{
attackz = TSP.AttackZOffset;
}
[/code]
Or:
[code]override void OnDestroy()
{
if (master && master is "TheSpecialPlayer")
{
let TSP = TheSpecialPlayer(master);
if (TSP) TSP.AttackZOffset = attackz;
}
Super.OnDestroy();
}[/code]
One actor might be okay, but more than one might not be. This could cause some serious consequences later if this continues unchecked.