A_JabDagger

Strife's standard dagger attack. This checks whether the player has the berserk effect by looking for the presence of a PowerStrength item in the inventory. Damage formula is (power + 2) * random(0, power + 7), multiplied again by 10 when berserk, and where power is equal to one tenth of the player's stamina with a maximal cap at 10.

A_JabDagger

(no parameters)

The attack is a short-range hitscan attack, with a maximum spread of 5.625°. It uses StrifeSpark puffs and plays on the WEAPON channel the sound "misc/swish" in case of a miss, "misc/metalhit" when hitting actors with the NOBLOOD flag, and "misc/meathit" otherwise. Contrarily to most weapons, the dagger only alerts the target, rather than all actors within earshot.

Struck targets are always unconditionally put into their pain state. (If a Pain.Dagger state is defined, this is used instead. )

This codepointer is restricted to PunchDagger and actors inheriting from it.

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.