Editing PlayerThunk
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Codepointer | | {{Codepointer | | ||
description=Allows the player's weapons to use a certain class of monster codepointers that are deemed safe.| | description=Allows the player's weapons to use a certain class of monster codepointers that are deemed safe.| | ||
Line 17: | Line 16: | ||
notes=Normally map object codepointers can be called directly, but '''PlayerThunk''' allows further flexibility by controlling whether to use ammo, among other features. | notes=Normally map object codepointers can be called directly, but '''PlayerThunk''' allows further flexibility by controlling whether to use ammo, among other features. | ||
For ''state'' to mean "no state change", it should be set to -1. A value of 0 means S_NULL | For ''state'' to mean "no state change", it should be set to -1. A value of 0 means S_NULL. | ||
If ''useammo'' is set and ''function'' is valid, ammo consumption may only be canceled when ''maketarget'' is set and no object is currently in sight of player, in which case no call to the function will be made. No such check is made if ''maketarget'' is cleared and the player hasn't been attacked. | If ''useammo'' is set and ''function'' is valid, ammo consumption may only be canceled when ''maketarget'' is set and no object is currently in sight of player, in which case no call to the function will be made. No such check is made if ''maketarget'' is cleared and the player hasn't been attacked. |