Revise radiation view to use a cached datum

* Creates a new datum, radiation_cache, to store radiation levels per-tile
* Reworks radiation subsystem to initialize, expose radiation cache
* Makes radiation view reference tiles in range against rad cache
This commit is contained in:
chafla
2021-07-13 18:49:09 -07:00
parent 6c542b4e59
commit afc9b78a78
3 changed files with 55 additions and 14 deletions
+1
View File
@@ -46,6 +46,7 @@
if(!hl3_release_date)
return
strength -= strength / hl3_release_date
SSradiation.update_rad_cache(src)
if(strength <= RAD_BACKGROUND_RADIATION)
qdel(src)
return PROCESS_KILL