combat_mode
Combat mode component. It makes the user face whichever atom the mouse pointer is hovering, amongst other things designed outside of this file, namely PvP and PvE stuff, hence the name. Can be toggled on and off by clicking the screen hud object or by pressing the assigned hotkey (default 'C')
Procs | |
check_flags | Returns a field of flags that are contained in both the second arg and our bitfield variable. |
---|---|
disable_combat_mode | Disables combat mode. Please use 'safe_disable_combat_mode' instead, if you wish to also disable the toggle flag. |
enable_combat_mode | Enables combat mode. Please use 'safe_enable_combat_mode' instead, if you wish to also enable the toggle flag. |
onMouseMove | Changes the user direction to (try) match the pointer. |
on_death | Disables combat mode upon death. |
on_logout | Disables combat mode upon logout |
on_mob_hud_created | Creates the hud screen object. |
on_move | Changes the user direction to (try) keep match the pointer. |
safe_disable_combat_mode | Disables intentionally being in combat mode. Please try to use the COMSIG_COMBAT_MODE_CHECK signal for feedback when possible. |
safe_enable_combat_mode | Enables intentionally being in combat mode. Please try to use the COMSIG_COMBAT_MODE_CHECK signal for feedback when possible. |
update_combat_lock | Combat mode can be locked out, forcibly disabled by a status trait. |
user_toggle_intentional_combat_mode | Toggles whether the user is intentionally in combat mode. THIS should be the proc you generally use! Has built in visual/to other player feedback, as well as an audible cue to ourselves. |
Proc Details
check_flags
Returns a field of flags that are contained in both the second arg and our bitfield variable.
disable_combat_mode
Disables combat mode. Please use 'safe_disable_combat_mode' instead, if you wish to also disable the toggle flag.
enable_combat_mode
Enables combat mode. Please use 'safe_enable_combat_mode' instead, if you wish to also enable the toggle flag.
onMouseMove
Changes the user direction to (try) match the pointer.
on_death
Disables combat mode upon death.
on_logout
Disables combat mode upon logout
on_mob_hud_created
Creates the hud screen object.
on_move
Changes the user direction to (try) keep match the pointer.
safe_disable_combat_mode
Disables intentionally being in combat mode. Please try to use the COMSIG_COMBAT_MODE_CHECK signal for feedback when possible.
safe_enable_combat_mode
Enables intentionally being in combat mode. Please try to use the COMSIG_COMBAT_MODE_CHECK signal for feedback when possible.
update_combat_lock
Combat mode can be locked out, forcibly disabled by a status trait.
user_toggle_intentional_combat_mode
Toggles whether the user is intentionally in combat mode. THIS should be the proc you generally use! Has built in visual/to other player feedback, as well as an audible cue to ourselves.