Skip to content

Commit

Permalink
feat(commands): add voiceIntent as a state bag
Browse files Browse the repository at this point in the history
  • Loading branch information
AvarianKnight committed Jan 1, 2022
1 parent b6f0ae4 commit a177595
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RegisterCommand('setvoiceintent', function(source, args)
elseif intent == 'music' then
MumbleSetAudioInputIntent(GetHashKey('music'))
end
LocalPlayer.state:set('voiceIntent', intent, true)
end
end)

Expand Down
1 change: 1 addition & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function handleStateBagInitilization(source)
plyState:set('proximity', {}, true)
plyState:set('callChannel', 0, true)
plyState:set('radioChannel', 0, true)
plyState:set('voiceIntent', 'speech', true)
end

-- temp fix before an actual fix is added
Expand Down

0 comments on commit a177595

Please sign in to comment.