forked from Riesen/-tg-station
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a decoy AI that spawns in the AI core chamber on Malfunction ro…
…unds, to reduce metagaming. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@39 316c924e-a436-60f5-8080-3fe189b3f50e
- Loading branch information
1 parent
42b972c
commit c9c2f3c
Showing
7 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/mob/living/silicon/decoy | ||
name = "AI" | ||
voice_name = "synthesized voice" | ||
icon = 'mob.dmi'// | ||
icon_state = "ai" | ||
anchored = 1 // -- TLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/mob/living/silicon/decoy/death(gibbed) | ||
src.icon_state = "ai-crash" | ||
spawn(rand(10, 30)) | ||
explosion(src.loc, 3, 6, 12, 15) | ||
|
||
for(var/obj/machinery/ai_status_display/O in world) //change status | ||
spawn( 0 ) | ||
O.mode = 2 | ||
return ..(gibbed) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/mob/living/silicon/decoy/Life() | ||
if (src.stat == 2) | ||
return | ||
else | ||
if (src.health <= -100.0) | ||
death() | ||
return | ||
|
||
/mob/living/silicon/decoy/updatehealth() | ||
if (src.nodamage == 0) | ||
src.health = 100 - src.oxyloss - src.toxloss - src.fireloss - src.bruteloss | ||
else | ||
src.health = 100 | ||
src.stat = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters