mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Field of View and Blindness improvements [bounty + upstream push] * Update death.dm * almost done * Update fov_handler.dm * Face mouse when in combat mode, fix * Fixes the category for the fov admin verb. #63401 * Fixes objects with bad planes and FoV bugs #63412 * pain * there we go * face pref Co-authored-by: Azarak <azarak10@gmail.com>
18 lines
545 B
Plaintext
18 lines
545 B
Plaintext
/datum/preference/numeric/fov_darkness
|
|
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
|
savefile_key = "fov_darkness"
|
|
savefile_identifier = PREFERENCE_PLAYER
|
|
|
|
minimum = 0
|
|
maximum = 255
|
|
|
|
/datum/preference/numeric/fov_darkness/create_default_value()
|
|
return 255
|
|
|
|
/datum/preference/numeric/fov_darkness/apply_to_client_updated(client/client, value)
|
|
if(client.mob)
|
|
var/datum/component/fov_handler/fov_component = client.mob.GetComponent(/datum/component/fov_handler)
|
|
if(!fov_component)
|
|
return
|
|
fov_component.visual_shadow.alpha = value
|