Skip to content

Commit cbc6efc

Browse files
authored
Merge branch 'reactivedrop_beta' into welder_icon
2 parents 4dea5f0 + ad83c30 commit cbc6efc

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

reactivedrop/content/traitors_challenge/resource/challenges/traitors.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"asw_ammo_count_50calmg" "100"
4242
"asw_ammo_count_medrifle_heal" "30"
4343
"asw_skill" "2"
44-
"rd_lock_difficulty" "1"
4544
"asw_horde_override" "0"
4645
"asw_wanderer_override" "0"
4746
"asw_marine_ff_absorption" "0"

reactivedrop/content/traitors_challenge/scripts/vscripts/challenge_traitors.nut

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DEBUG <- false; // Debug flags 调试标识
1+
DEBUG <- true; // Debug flags 调试标识
22
INT_MAX <- 2147483647; // Constant 常量
33
isServer <- true; // If the code is running server side or client side 指示代码是在服务端运行的还是在客户端运行的
44
IsPaused <- false; // Not actually being used 没有实际用处
@@ -236,8 +236,8 @@ function SetTraitorIcon(interval = 10) {
236236
continue;
237237
}
238238

239-
local hHud2 = Entities.FindByName(null, hPlayer.GetScriptScope().strHudName2);
240-
for(local i = 6;i<21;i++) {
239+
local hHud2 = Entities.FindByName(null, hPlayer.GetScriptScope().strHudName2);
240+
for (local i = 6; i < 21; i++) {
241241
hHud2.SetInt(i, list[i]);
242242
}
243243
}
@@ -1169,10 +1169,10 @@ function DeterminRoleCount() {
11691169
//g_bool_HasInfector = true;
11701170
break;
11711171
case 1:
1172-
g_bool_HasBoomer = true;
1172+
g_bool_HasBoomer = true;
11731173
break;
11741174
case 2:
1175-
g_bool_HasSilencer = true;
1175+
g_bool_HasSilencer = true;
11761176
break;
11771177
}
11781178
g_bool_HasShield = (RandomHQUniformIntDistribution(0, 8) == 0);

reactivedrop/content/traitors_challenge/scripts/vscripts/challenge_traitors_player_info.nut

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@ TEXTURE_TRAITORS <- {
7777
xMargin <- 0;
7878

7979
function Paint() {
80-
for (local i = 6; i < 21; i++) {
81-
PaintTraitorIcon(i);
82-
}
83-
8480
//如果正在控制士兵,显示信息。
8581
if (self.GetEntity(0) == GetLocalPlayer()) {
82+
for (local i = 6; i < 21; i++) {
83+
PaintTraitorIcon(i);
84+
}
8685
local message = self.GetString(0);
8786
if (message == "") {
8887
return;
@@ -131,7 +130,7 @@ function PaintMsg(point, role, font, message) {
131130

132131
function PaintTraitorIcon(idx) {
133132

134-
if (self.GetInt(idx) <= 0 || TEXTURE_TRAITORS[idx] == -1) {
133+
if (self.GetInt(idx) <= 0 || TEXTURE_TRAITORS[idx] == -1 || self.GetInt(0) <= ROLE.MAX_IAF_TEAM || self.GetInt(0) > ROLE.MAX_TRAITOR_TEAM) {
135134
return;
136135
}
137136
local screenPos = self.ClientGetEntityScreenPos(self.GetInt(idx));

0 commit comments

Comments
 (0)