Htg t: Difference between revisions
Helixhorned (talk | contribs) discourage use of hg_t for actors (IMO it shouldn't have been exposed in the first place) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The '''htg_t''' is an array with 10 elements(from 0 to 9) assigned to an actor/a sector effector. There is no defined purpose for these elements (multipurpose elements) as their interpretation depends on the situation. | The '''htg_t''' is an array with 10 elements (from 0 to 9) assigned to an actor/a sector effector. There is no defined purpose for these elements (multipurpose elements) as their interpretation depends on the situation. | ||
Example: | Example: | ||
Line 9: | Line 9: | ||
'''1''' move<br> | '''1''' move<br> | ||
'''2''' actioncount<br> | '''2''' actioncount<br> | ||
'''3''' | '''3''' current frame offset<br> | ||
'''4''' action<br> | '''4''' action<br> | ||
'''5''' ai<br> | '''5''' ai<br> | ||
Line 38: | Line 38: | ||
'''4''' delay between repeated sound(environment sounds)<br> | '''4''' delay between repeated sound(environment sounds)<br> | ||
The '''htg_t''' is known as | The '''htg_t''' is known as ''temp_data'', ''g_t'' and ''Tn&''(n=1..9) in the source code. These names can be considered as aliases but mind the difference in the numbering: temp_data[3] = g_t[3] = T4. | ||
[[Category:Sprite structure members]] | [[Category:Sprite structure members]] |
Latest revision as of 05:00, 19 February 2020
The htg_t is an array with 10 elements (from 0 to 9) assigned to an actor/a sector effector. There is no defined purpose for these elements (multipurpose elements) as their interpretation depends on the situation.
Example:
getactor[THISACTOR].htg_t 0 TEMP // 0 refers to the count(actor) ifvarg TEMP 122 nullop
Actor (usage discouraged)
0 count
1 move
2 actioncount
3 current frame offset
4 action
5 ai
Projectile hit
6 hitwall
7 hitsector
8 hitsprite
Projectile
8 expanding explosion range
9 zvel for zshoot
Pipebomb control
6 1:pressed, 2:nonpressed
7 press duration
Tribomb control
3 xpos
4 ypos
5 laser/tribomb angle
6 1: delay, 3:armed
7 Activate tribomb when T7 reach 0
Misc
5 lotag=28, delay lighting (not used?)
5 something with the quake
4 delay between repeated sound(environment sounds)
The htg_t is known as temp_data, g_t and Tn&(n=1..9) in the source code. These names can be considered as aliases but mind the difference in the numbering: temp_data[3] = g_t[3] = T4.