Skip to content

Commit

Permalink
Added a tesla caution sign at the floor (where the tesla gate would a…
Browse files Browse the repository at this point in the history
…ctivate/could kill you)
  • Loading branch information
ENDSHN committed Jul 27, 2018
1 parent 2b3d626 commit 7a050b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file added GFX/map/caution_tesla.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GFX/map/room2tesla_caution.b3d
Binary file not shown.
10 changes: 10 additions & 0 deletions MapSystem.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4287,6 +4287,16 @@ Function FillRoom(r.Rooms)
r\Objects[6] = CreatePivot()
PositionEntity(r\Objects[6],r\x,0,r\z+800*RoomScale)
EntityParent(r\Objects[6],r\obj)

For r2.Rooms = Each Rooms
If r2<>r Then
If r2\RoomTemplate\Name = "room2tesla" Or r2\RoomTemplate\Name = "room2tesla_lcz" Or r2\RoomTemplate\Name = "room2tesla_hcz" Then
r\Objects[7] = CopyEntity(r2\Objects[7],r\obj) ;don't load the mesh again
Exit
EndIf
EndIf
Next
If r\Objects[7]=0 Then r\Objects[7] = LoadMesh_Strict("GFX\map\room2tesla_caution.b3d",r\obj)
;[End Block]
Case "room2doors"
;[Block]
Expand Down

0 comments on commit 7a050b4

Please sign in to comment.