diff options
Diffstat (limited to '')
| -rw-r--r-- | src/hl2h.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hl2h.cpp b/src/hl2h.cpp index 256b9ab..4f5673f 100644 --- a/src/hl2h.cpp +++ b/src/hl2h.cpp | |||
| @@ -689,13 +689,21 @@ static void do_move(int seq, float frametime) { | |||
| 689 | } | 689 | } |
| 690 | 690 | ||
| 691 | if (feature_active(FEAT_TRIGGERBOT)) { | 691 | if (feature_active(FEAT_TRIGGERBOT)) { |
| 692 | if (triggerbot_apply(cmd)) | 692 | if (triggerbot_apply(cmd)) { |
| 693 | // Triggerbot sets IN_ATTACK after CInput's spread hook, so the best | ||
| 694 | // seed has to be applied here as well. | ||
| 695 | spread_control_apply(cmd, ent); | ||
| 693 | note_modified(cmd, flags, vel); | 696 | note_modified(cmd, flags, vel); |
| 697 | } | ||
| 694 | } | 698 | } |
| 695 | 699 | ||
| 696 | if (feature_active(FEAT_SILENTAIM)) { | 700 | if (feature_active(FEAT_SILENTAIM)) { |
| 697 | if (silent_aim_apply(cmd)) | 701 | if (silent_aim_apply(cmd)) { |
| 702 | // Silent aim also sets IN_ATTACK late; without this the shot keeps | ||
| 703 | // the random CInput seed instead of the minimal-spread seed. | ||
| 704 | spread_control_apply(cmd, ent); | ||
| 698 | note_modified(cmd, flags, vel); | 705 | note_modified(cmd, flags, vel); |
| 706 | } | ||
| 699 | } | 707 | } |
| 700 | } | 708 | } |
| 701 | } | 709 | } |
