-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from rafraser/gamemode-prototypes
1.1 Update Implementation
- Loading branch information
Showing
107 changed files
with
2,477 additions
and
2,701 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
AddCSLuaFile() | ||
ENT.Base = "base_point" | ||
ENT.Type = "point" | ||
if CLIENT then | ||
ENT.Icon = Material('icon16/flag_blue.png') | ||
end | ||
|
||
function ENT:UpdateTransmitState() | ||
return TRANSMIT_ALWAYS | ||
end | ||
|
||
function ENT:Draw() | ||
if not LocalPlayer():Alive() or LocalPlayer().Spectating then return end | ||
|
||
local center = self:GetPos() | ||
local p = center:ToScreen() | ||
|
||
surface.SetDrawColor(color_white) | ||
surface.SetMaterial(self.Icon) | ||
surface.DrawTexturedRect(p.x - 8, p.y - 8, 16, 16) | ||
|
||
if LocalPlayer():Team() == TEAM_BLUE then | ||
draw.SimpleTextOutlined('Capture here!', 'DermaDefault', p.x, p.y + 16, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0)) | ||
end | ||
end |
Oops, something went wrong.