-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
medical: world spawns for trauma kit
- Loading branch information
1 parent
9934296
commit ff96081
Showing
3 changed files
with
19 additions
and
0 deletions.
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,17 @@ | ||
extend class UaS_Spawner { | ||
void TraumakitSpawns(WorldEvent e) { | ||
if(level.maptime > 1) { return; } | ||
if(!e.Thing) { return; } | ||
if(e.Thing is "Inventory" && Inventory(e.Thing).Owner) { return; } | ||
|
||
bool spawnable = ( | ||
e.thing.GetClassName() == "HDAmBox" || | ||
e.Thing.GetClassName() == "PortableStimpack" || | ||
e.Thing.GetClassName() == "PortableMedikit" || | ||
e.Thing.GetClassName() == "HDBackpack"); | ||
|
||
if(spawnable) { | ||
UaS.SpawnStuff('UaS_TraumaKit', randompick[glowstick](0, 0, 0, 0, 1), e.Thing.pos); | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,5 +19,6 @@ class UaS_Spawner : EventHandler { | |
GlowstickSpawns(e); | ||
FlareSpawns(e); | ||
LLMSpawns(e); | ||
TraumakitSpawns(e); | ||
} | ||
} |