EVENT INCURDAMAGE: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
XTHX2 (talk | contribs)
No edit summary
One (talk | contribs)
No edit summary
Line 1: Line 1:
'''EVENT_INCURDAMAGE''' is a constantly running event that checks for any damage inflicted into the player, and if the player is wearing any armor[SHIELD], any damage received will have '''(20+RAND[30])'''% of the damage dealt to the armor and the rest dealt to the player's health until the armor runs out.
EVENT_INCURDAMAGE is a [[EDuke32_event_list|Game Event]].


If "setvar RETURN -1" is placed in this event, armor will not work in the normal manner, and it will allow you to make your own formula for armor.
This [[event]] is a constantly running event that checks for any damage inflicted into the player, and if the player is wearing any armor[SHIELD], any damage received will have '''(20+RAND[30])'''% of the damage dealt to the armor and the rest dealt to the player's health until the armor runs out.
 
If "setvar [[RETURN]] -1" is placed in this event, armor will not work in the normal manner, and it will allow you to make your own formula for armor.


[[Category:Events]]
[[Category:Events]]

Revision as of 10:36, 3 May 2009

EVENT_INCURDAMAGE is a Game Event.

This event is a constantly running event that checks for any damage inflicted into the player, and if the player is wearing any armor[SHIELD], any damage received will have (20+RAND[30])% of the damage dealt to the armor and the rest dealt to the player's health until the armor runs out.

If "setvar RETURN -1" is placed in this event, armor will not work in the normal manner, and it will allow you to make your own formula for armor.