|
44 | 44 | enum (+=100) {
|
45 | 45 | TASK_STARTMATCH = 1000,
|
46 | 46 | TASK_STARTVERSUS,
|
47 |
| - TASK_SENDVICTIMTOSPEC, |
48 | 47 | TASK_SENDTOSPEC,
|
49 | 48 | TASK_SHOWSETTINGS,
|
50 | 49 | TASK_AGTIMER
|
@@ -77,7 +76,6 @@ new bool:gBlockCmdKill;
|
77 | 76 | new bool:gBlockCmdSpec;
|
78 | 77 | new bool:gBlockCmdDrop;
|
79 | 78 | new bool:gBlockPlayerSpawn;
|
80 |
| -new bool:gSendVictimToSpec; |
81 | 79 | new bool:gSendConnectingToSpec;
|
82 | 80 | new bool:gIsSuddenDeath;
|
83 | 81 |
|
@@ -593,7 +591,6 @@ public client_putinserver(id) {
|
593 | 591 |
|
594 | 592 | public client_disconnected(id) {
|
595 | 593 | remove_task(TASK_SENDTOSPEC + id);
|
596 |
| - remove_task(TASK_SENDVICTIMTOSPEC + id); |
597 | 594 | remove_task(id);
|
598 | 595 |
|
599 | 596 | // Sometimes a player connects and disconnects before ClientPutInServer()
|
@@ -644,9 +641,6 @@ public PlayerPreSpawn(id) {
|
644 | 641 | if (gBlockPlayerSpawn)
|
645 | 642 | return HAM_SUPERCEDE;
|
646 | 643 |
|
647 |
| - if (task_exists(TASK_SENDVICTIMTOSPEC + id)) |
648 |
| - return HAM_SUPERCEDE; |
649 |
| - |
650 | 644 | return HAM_IGNORED;
|
651 | 645 | }
|
652 | 646 |
|
@@ -703,9 +697,6 @@ public PlayerPostKilled(victim, attacker) {
|
703 | 697 | }
|
704 | 698 | }
|
705 | 699 |
|
706 |
| - if (gSendVictimToSpec) |
707 |
| - set_task(3.0, "SendVictimToSpec", victim + TASK_SENDVICTIMTOSPEC); |
708 |
| - |
709 | 700 | if (gIsSuddenDeath) {
|
710 | 701 | StartIntermissionMode();
|
711 | 702 | }
|
@@ -1075,15 +1066,6 @@ public SendToSpec(taskid) {
|
1075 | 1066 | hl_set_user_spectator(id, true);
|
1076 | 1067 | }
|
1077 | 1068 |
|
1078 |
| -public SendVictimToSpec(taskid) { |
1079 |
| - new id = taskid - TASK_SENDVICTIMTOSPEC; |
1080 |
| - if (is_user_connected(id)) { |
1081 |
| - if (!is_user_alive(id) || is_user_bot(id)) { |
1082 |
| - hl_set_user_spectator(id, true); |
1083 |
| - } |
1084 |
| - } |
1085 |
| -} |
1086 |
| - |
1087 | 1069 | /*
|
1088 | 1070 | * AG Say
|
1089 | 1071 | */
|
|
0 commit comments