This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbot.lua
107 lines (104 loc) · 2.3 KB
/
bot.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
local kv = [[
"upgrades" {
"itemslot" ""
"upgrade" ""
"count" ""
}
]]
--region: idc
local umsg_name = {
[0] = 'Geiger',
'Train',
'HudText',
'SayText',
'SayText2',
'TextMsg',
'ResetHUD',
'GameTitle',
'ItemPickup',
'ShowMenu',
'Shake',
'Fade',
'VGUIMenu',
'Rumble',
'CloseCaption',
'SendAudio',
'VoiceMask',
'RequestState',
'Damage',
'HintText',
'KeyHintText',
'HudMsg',
'AmmoDenied',
'AchievementEvent',
'UpdateRadar',
'VoiceSubtitle',
'HudNotify',
'HudNotifyCustom',
'PlayerStatsUpdate',
'MapStatsUpdate',
'PlayerIgnited',
'PlayerIgnitedInv',
'HudArenaNotify',
'UpdateAchievement',
'TrainingMsg',
'TrainingObjective',
'DamageDodged',
'PlayerJarated',
'PlayerExtinguished',
'PlayerJaratedFade',
'PlayerShieldBlocked',
'BreakModel',
'CheapBreakModel',
'BreakModel_Pumpkin',
'BreakModelRocketDud',
'CallVoteFailed',
'VoteStart',
'VotePass',
'VoteFailed',
'VoteSetup',
'PlayerBonusPoints',
'RDTeamPointsChanged',
'SpawnFlyingBird',
'PlayerGodRayEffect',
'PlayerTeleportHomeEffect',
'MVMStatsReset',
'MVMPlayerEvent',
'MVMResetPlayerStats',
'MVMWaveFailed',
'MVMAnnouncement',
'MVMPlayerUpgradedEvent',
'MVMVictory',
'MVMWaveChange',
'MVMLocalPlayerUpgradesClear',
'MVMLocalPlayerUpgradesValue',
'MVMResetPlayerWaveSpendingStats',
'MVMLocalPlayerWaveSpendingValue',
'MVMResetPlayerUpgradeSpending',
'MVMServerKickTimeUpdate',
'PlayerLoadoutUpdated',
'PlayerTauntSoundLoopStart',
'PlayerTauntSoundLoopEnd',
'ForcePlayerViewAngles',
'BonusDucks',
'EOTLDuckEvent',
'PlayerPickupWeapon',
'QuestObjectiveCompleted',
'SPHapWeapEvent',
'HapDmg',
'HapPunch',
'HapSetDrag',
'HapSetConst',
'HapMeleeContact'
}
--endregion
callbacks.Register( 'DispatchUserMessage', function( u )
print(umsg_name[u:GetID()])
end )
callbacks.Register( 'Draw', function()
if globals.FrameCount() % (1 // globals.TickInterval()) == 0 then
client.Command( 'bot_command all addcond 0', '' )
client.Command( 'bot_command all addcond 71', '' )
client.Command( 'tf_mvm_tank_kill', '' )
end
end )