Editing A SargAttack12

From Eternity Wiki
Jump to navigationJump 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.

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==
'''SargAttack12'''(''mod'', ''mul'', ''pufftype'')
This codepointer exists since July 29 2014. It causes a melee range hitscan attack similar to player's punch and the same as the demon attacks from old Doom versions (e.g. 1.2). As such, unlike [[Scratch]], [[SargAttack]] and others, it can accidentally hit other creatures than the intended target, especially when the target is partially invisible. It's subjected to the same limitations as other hitscan attacks and it cannot, for example, hit archvile raised "ghosts".
This codepointer exists since July 29 2014. It causes a melee range hitscan attack similar to player's punch and the same as the demon attacks from old Doom versions (e.g. 1.2). As such, unlike [[Scratch]], [[SargAttack]] and others, it can accidentally hit other creatures than the intended target, especially when the target is partially invisible. It's subjected to the same limitations as other hitscan attacks and it cannot, for example, hit archvile raised "ghosts".


In addition to the old Doom behaviour, this codepointer is parameterized:
In addition to the old Doom behaviour, this codepointer is parameterized:
* ''mod'', damage modulus. Default: 10;
* args1: ''mod'', damage modulus. Default: 10;
* ''mul'', damage multiplier. Default: 4.
* args2: ''mul'', damage multiplier. Default: 4.
* ''pufftype'', optional [[pufftype]] entry to spawn when hitting a wall.
The damage is random and the formula is this: random(1..''mod'') * ''mul''. Leaving the parameters default will make it inflict 4-40 damage on each hit, like the demon.
The damage is random and the formula is this: random(1..''mod'') * ''mul''. Leaving the parameters default will make it inflict 4-40 damage on each hit, like the demon.
:Back to [[List of codepointers]]
:Back to [[List of codepointers]]
==See also==
*[[SargAttack]]
*[[Scratch]]
[[Category:Codepointers]]
[[Category:Codepointers]]
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)