Htcgg: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) for completion's sake |
CraigFatman (talk | contribs) No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
'''htcgg''' is a member of the sprite structure. | '''htcgg''' is a member of the sprite structure. It's used in the handling of the [[fall]] command: | ||
if (!actor[vm.g_i].cgg-- || (sector[vm.g_sp->sectnum].floorstat&2)) | if (!actor[vm.g_i].cgg-- || (sector[vm.g_sp->sectnum].[[floorstat]]&2)) | ||
{ | { | ||
A_GetZLimits(vm.g_i); | A_GetZLimits(vm.g_i); | ||
Line 7: | Line 7: | ||
} | } | ||
This variable apparently controls a game optimization which causes the z-limits used to simulate actor falling to be updated every four game tics instead of constantly recalculating them every tic. | |||
[[Category:Sprite structure members]] | [[Category:Sprite structure members]] |
Latest revision as of 15:02, 28 October 2015
htcgg is a member of the sprite structure. It's used in the handling of the fall command:
if (!actor[vm.g_i].cgg-- || (sector[vm.g_sp->sectnum].floorstat&2)) { A_GetZLimits(vm.g_i); actor[vm.g_i].cgg = 3; }
This variable apparently controls a game optimization which causes the z-limits used to simulate actor falling to be updated every four game tics instead of constantly recalculating them every tic.