You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. As described. Currently vgui/swarm/Emotes/EmoteExclaim is used.
2. Replace TakeDamage() with Die() to fix marines sometimes ignoring TakeDamage() issue
3. Fix minor issues when debuging with bots
if (Time() > g_marine_Deserter.GetScriptScope().RevealTime+30.0) {
569
616
hMarine.SetHealth(1);
@@ -748,7 +795,7 @@ function RemoveBot(interval) {
748
795
if (hMarine.GetHealth() >15) {
749
796
hMarine.SetHealth(15);
750
797
}
751
-
// hMarine.TakeDamage( 256, 64, hMarine );// 修复了机器人不死的bug,但是微了保留之前的体验,这里不杀死机器人,这样意外掉出地图,还有希望丝血传送回来。This will kill bot, but it would be beter to set bot health to 1 so that one can have a chance to teleport back if they fall outside of the map, also preventing players from abuse bot tp.
798
+
// hMarine.Die();// 这里不杀死机器人,这样意外掉出地图,还有希望丝血传送回来。This will kill bot, but it would be beter to set bot health to 1 so that one can have a chance to teleport back if they fall outside of the map, also preventing players from abuse bot tp.
752
799
}
753
800
}
754
801
}
@@ -847,12 +894,6 @@ function WriteMatchResultToFile(winner) {
Copy file name to clipboardExpand all lines: reactivedrop/content/traitors_challenge/scripts/vscripts/challenge_traitors_events/ongameevent_marine_selected.nut
Copy file name to clipboardExpand all lines: src/game/client/swarm/vgui/asw_hud_emotes.cpp
+70Lines changed: 70 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
#include"c_asw_door.h"
24
24
#include"c_asw_use_area.h"
25
25
#include"asw_input.h"
26
+
#include"c_playerresource.h"
26
27
27
28
#include"ConVar.h"
28
29
#include"tier0/vprof.h"
@@ -37,6 +38,7 @@
37
38
usingnamespacevgui;
38
39
39
40
extern ConVar asw_draw_hud;
41
+
ConVar _rd_traitors_challenge_enabled("_rd_traitors_challenge_enabled", "0", FCVAR_REPLICATED | FCVAR_HIDDEN, "An internal convar to indicate whether the traitors challenge is enabled or not. This is used to determine whether the traitor emotes should be shown or not.");
0 commit comments