EVENT INCURDAMAGE: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Doom64hunter (talk | contribs) m The function this event is placed in has to be one of the worst in the whole engine, jesus christ |
||
Line 1: | Line 1: | ||
{{EventTable|1=EVENT_INCURDAMAGE |2=current player|3=[[i|player->i]]|4=1 value}} | |||
EVENT_INCURDAMAGE is a [[EDuke32_event_list|Game Event]]. | EVENT_INCURDAMAGE is a [[EDuke32_event_list|Game Event]]. | ||
This [[event]] is a constantly running event that checks for any damage inflicted | This [[event]] is executed for each player in the map, once per tic. | ||
It is a constantly running event that checks for any damage inflicted onto 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. | 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 11:09, 5 February 2022
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_INCURDAMAGE | current player | player->i | 1 value |
EVENT_INCURDAMAGE is a Game Event.
This event is executed for each player in the map, once per tic.
It is a constantly running event that checks for any damage inflicted onto 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.