YesNoOk
avatar

HitBy (SCTRL) (Read 4728 times)

Started by JustNoPoint, October 29, 2015, 01:53:07 pm
Share this topic:
HitBy (SCTRL)
#1  October 29, 2015, 01:53:07 pm
  • ******
    • www.justnopoint.com/
Temporarily specifies the types of hits that are be allowed hit to the player.

Required parameters:
value = attr_string OR value2 = attr_string
Only one of the above parameters can be specified. attr_string should be a standard hit attribute string. See Details.

Optional parameters:
time = effective_time (int)
Specifies the number of game ticks that these HitBy attributes should be effective for. Defaults to 1.

Details:
The player has two hit attribute slots, which can be set using the value or value2 parameters to the HitBy controller. These slots can also be set by the NotHitBy controller. When a slot is set, it gets a timer (the effective time) which counts down toward zero. If the timer has not yet reached zero, the slot is considered to be active. The player can be hit by a HitDef only if that HitDef's attribute appears in all currently active slots. Using the HitBy controller sets the specified slot to contain only those hit attributes which appear in the HitBy attribute string.

Example:

Code:
; Can be hit only by standing normal attacks
trigger1 = 1
type = HitBy
value = S, NA