Merge pull request #5002 from Chakirski/holograms

Ahh yes, "Reapers"
This commit is contained in:
Fox McCloud
2016-07-13 21:50:14 -04:00
committed by GitHub
3 changed files with 11 additions and 4 deletions
+6 -2
View File
@@ -815,9 +815,13 @@ The _flatIcons list is a cache for generated icon files.
/proc/getHologramIcon(icon/A, safety=1)//If safety is on, a new icon is not created.
var/icon/flat_icon = safety ? A : new(A)//Has to be a new icon to not constantly change the same icon.
var/icon/alpha_mask
flat_icon.ColorTone(rgb(125,180,225))//Let's make it bluish.
flat_icon.ChangeOpacity(0.5)//Make it half transparent.
var/icon/alpha_mask = new('icons/effects/effects.dmi', "scanline")//Scanline effect.
if(A.Height() == 64)
alpha_mask = new('icons/mob/ancient_machine.dmi', "scanline2")//Scaline for tall icons.
else
alpha_mask = new('icons/effects/effects.dmi', "scanline")//Scanline effect.
flat_icon.AddAlphaMask(alpha_mask)//Finally, let's mix in a distortion effect.
return flat_icon
@@ -879,4 +883,4 @@ proc/sort_atoms_by_layer(var/list/atoms)
if(J) //Only set the icon if it succeeded, the icon without the pixel is 1000x better than a black square.
icon = J
return J
return 0
return 0
+5 -2
View File
@@ -815,7 +815,8 @@ var/list/ai_verbs_default = list(
"default",
"floating face",
"xeno queen",
"eldritch"
"eldritch",
"ancient machine"
)
input = input("Please select a hologram:") as null|anything in icon_list
if(input)
@@ -829,6 +830,8 @@ var/list/ai_verbs_default = list(
holo_icon = getHologramIcon(icon('icons/mob/AI.dmi',"holo3"))
if("eldritch")
holo_icon = getHologramIcon(icon('icons/mob/AI.dmi',"holo4"))
if("ancient machine")
holo_icon = getHologramIcon(icon('icons/mob/ancient_machine.dmi', "ancient_machine"))
return
/mob/living/silicon/ai/proc/corereturn()
@@ -1040,4 +1043,4 @@ var/list/ai_verbs_default = list(
eyeobj.setLoc(get_turf(C))
client.eye = eyeobj
return 1
return 1
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB