Skip to content

Commit 7626818

Browse files
authored
Merge pull request #31 from disseminate/development/all
Development/all
2 parents f428ede + 5d8c5f4 commit 7626818

File tree

10 files changed

+34
-12
lines changed

10 files changed

+34
-12
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All strings that the player sees must be internationalized (see [I18](#i18)).
88

99
## Mapping
1010

11-
Use the `coi.fgd` provided in this repository.
11+
Use the `coi.fgd` provided in this repository. In addition, the `.vmf` for `coi_test` is provided in `content/maps` (needs CS:S content).
1212

1313
### coi_truck
1414

@@ -20,4 +20,4 @@ Place these in the vault. You can put any number of these in, as long as there's
2020

2121
## I18
2222

23-
If you'd like to translate the gamemode, you are welcome! Look at `gamemode/i18/en.lua` as a starting point. The language code (`en`) will be what's displayed, according to the Garry's Mod main menu language selection.
23+
If you'd like to translate the gamemode, you are welcome! Look at `gamemode/i18/en.lua` as a starting point. Whatever language the client has set (`en`, `fr` etc.) will be what's displayed, according to the Garry's Mod main menu language selection.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
You, and your team of 3 other people, are set to rob the Urbanopolis National Bank. Unfortunately, there's been a bit of a mixup, so every other bank robbery crew in the city is also planning to rob it at the same time. It's your job to secure your team's financial future against these meddling rivals by meddling with your rivals, be it via killing them, setting traps, or alerting other players.
44

5+
<img src="docs/media/1.jpg" width="30%"> <img src="docs/media/2.jpg" width="30%"> <img src="docs/media/3.jpg" width="30%">
6+
57
## Installation
68

79
Checkout this repository to `garrysmod/garrysmod/gamemodes`.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2><div class="hbar"></div>Capitalism Kills<div class="hbar"></div></h2>
3434
<div class="img-row-3">
3535
<a href="media/1.jpg"><img src="media/1.jpg" alt="Conflict of Interest" class="img-3" /></a>
3636
<a href="media/2.jpg"><img src="media/2.jpg" alt="Conflict of Interest" class="img-3" /></a>
37-
<a href="media/3.png"><img src="media/3.png" alt="Conflict of Interest" class="img-3" /></a>
37+
<a href="media/3.jpg"><img src="media/3.jpg" alt="Conflict of Interest" class="img-3" /></a>
3838
</div>
3939
</div>
4040
</section>

docs/media/3.jpg

389 KB
Loading

docs/media/3.png

-1010 KB
Binary file not shown.

gamemode/cl_hud.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function GM:HUDPaint()
6161

6262
if( self:GetState() == STATE_GAME ) then
6363

64+
self:HUDPaintUnconsciousness();
65+
6466
self:HUDPaintMoney();
6567
self:HUDPaintPlayers();
6668
self:HUDPaintCops();
@@ -70,8 +72,6 @@ function GM:HUDPaint()
7072
self:HUDPaintDirectionArrow();
7173
self:HUDPaintGetToTruck();
7274

73-
self:HUDPaintUnconsciousness();
74-
7575
end
7676

7777
self:HUDPaintGameOver();

gamemode/cl_loadout.lua

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function GM:CreateLoadoutPanel()
1919
local l = self:CreateLabel( p1, LEFT, "COI Title 64", I18( "select_loadout" ), 7 );
2020
local p2 = self:CreatePanel( p1, RIGHT, 200, 0 );
2121
p2:DockPadding( 0, 17, 0, 17 );
22-
local l = self:CreateLabel( p2, TOP, "COI 16", "Conflict of Interest β", 9 );
22+
local l = self:CreateLabel( p2, TOP, "COI 16", "Conflict of Interest " .. COI_VERSION, 9 );
2323
l:SetTextColor( Alpha( self:GetSkin().COLOR_WHITE, 0.7 ) );
24-
local l = self:CreateLabel( p2, TOP, "COI 14", "Everything subject to change.", 9 );
24+
local l = self:CreateLabel( p2, TOP, "COI 14", "by disseminate", 9 );
2525
l:SetTextColor( Alpha( self:GetSkin().COLOR_WHITE, 0.6 ) );
2626

2727
local p1 = self:CreatePanel( self.Loadout, BOTTOM, 0, 68 );
@@ -484,7 +484,7 @@ function GM:CreateLoadoutPanel()
484484
net.SendToServer();
485485

486486
local mdl = GAMEMODE:CreateModelPanel( self, FILL, 0, 0, item.Model, Vector( 50, 50, 20 ), nil, 20 );
487-
GAMEMODE:CreateLabel( mdl, FILL, "COI 18", item.Name, 3 ):DockMargin( 0, 0, 4, 4 );
487+
GAMEMODE:CreateLabel( mdl, FILL, "COI 18", item.Name, 3 ):DockMargin( 4, 4, 4, 4 );
488488
mdl.Item = v;
489489
mdl:Droppable( "item" );
490490
function mdl.DoClick( mdl )
@@ -626,8 +626,11 @@ function GM:ResetLoadoutInventory()
626626
local ih = item.H * i.IconSize;
627627
mdl = self:CreateModelPanel( i, NODOCK, iw, ih, item.Model, Vector( 50, 50, 20 ), nil, 20 );
628628
mdl:SetPos( ( v.X - 1 ) * i.IconSize, ( v.Y - 1 ) * i.IconSize );
629-
630-
self:CreateLabel( mdl, FILL, "COI 18", item.Name, 3 ):DockMargin( 0, 0, 4, 4 );
629+
630+
self:CreateLabel( mdl, BOTTOM, "COI 18", item.Name, 3 ):DockMargin( 0, 0, 4, 4 );
631+
local l = self:CreateLabel( mdl, BOTTOM, "COI 14", item.Secondary and "Secondary" or "Primary", 3 );
632+
l:DockMargin( 0, 4, 4, 0 );
633+
l:SetTextColor( self:GetSkin().COLOR_GRAY );
631634

632635
mdl.Item = k;
633636
mdl:Droppable( "item" );

gamemode/i18/en.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
-- en: English
2+
13
EXPORTS["en"] = {
24
["press_space"] = "Press Space",
35
["cop"] = "Cop",
@@ -44,5 +46,7 @@ EXPORTS["en"] = {
4446
["wrong_truck"] = "Wrong truck! You're looking for the truck with the same color as",
4547

4648
["you_earned"] = "You earned",
47-
["for_your_team"] = "for your team"
49+
["for_your_team"] = "for your team",
50+
51+
["first_message"] = "Get money from the bank and return it to your truck!"
4852
};

gamemode/sh_enum.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ STATE_TIMES = {
1010

1111
TEAM_UNJOINED = 999;
1212

13-
NET_MAX_BAG_MONEY = 10; -- max $2^10 in one bag
13+
NET_MAX_BAG_MONEY = 10; -- max $2^10 in one bag
14+
15+
COI_VERSION = "RC1";

gamemode/sh_state.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ function GM:StateThink()
7878

7979
end
8080

81+
if( s == STATE_GAME ) then
82+
83+
if( self:GetSetting( "showed_first_message", 0 ) == 0 ) then
84+
85+
self:SetSetting( "showed_first_message", 1 );
86+
chat.AddText( GAMEMODE:GetSkin().COLOR_WHITE, I18( "first_message" ) );
87+
88+
end
89+
90+
end
91+
8192
end
8293

8394
if( s == self.CacheState ) then

0 commit comments

Comments
 (0)