Editing
PlayerThunk
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Deprecatednotice |reason=Map object specific states can now be called ''directly'' from the player gun sprites.}} {{Codepointer | description=Allows the player's weapons to use a certain class of monster codepointers that are deemed safe.| usage='''PlayerThunk'''(''function'', ''facetarget'', ''state'', ''maketarget'', ''useammo'')| parameters=The parameters are as follows: *''function'': The function (codepointer) to call *''facetarget'': Whether to change the view angle in relation to the targeted object. Possible values: **0 or '''noface''' **1 or '''face''' *''state'': Frame to which the player avatar is to switch just as long as the ''function'' is called, in order to make use of any potential parameterized functions applied there. *''maketarget'': Whether to define the target of the called monster-specific attack as the object in the view sight, or the last attacker. **0 or '''attacker''': last attacker (if any) of player becomes target of '''PlayerThunk''' attack. **1 or '''aimtarget''': the object in aim sight of player becomes target. *''useammo'': Whether to consume ammo. **0 or '''nouseammo''' **1 or '''useammo'''| 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. If set, the state change will not be visible as it will be returned to previous state instantly (usually back to the player "point the gun" frame). Its purpose is to allow the player map object to call another function described by the frame, besides the one designated in '''PlayerThunk'''. It will also use the same target based on the ''maketarget'' setting. 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. | examples=| seealso= *[[List_of_codepointers#Attacks|Player attack codepointers]] }}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Codepointer
(
edit
)
Template:Deprecatednotice
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information