1
0
Fork 0

Added a /boom command to Debuggers. (#4592)

This commit is contained in:
Mattes D 2020-03-31 13:25:44 +02:00 committed by GitHub
parent 5eb1ba3bcc
commit b4060be3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -2679,6 +2679,18 @@ end
function HandleBoomCmd(a_Split, a_Player)
local playerPos = a_Player:GetPosition()
a_Player:GetWorld():BroadcastParticleEffect("smoke", Vector3f(playerPos), Vector3f(), 0, 900)
a_Player:GetWorld():BroadcastSoundEffect("entity.firework.large_blast", playerPos, 1, 1)
a_Player:SendMessage("BOOM!")
return true
end
function HandleTeamsCmd(a_Split, a_Player)
local Scoreboard = a_Player:GetWorld():GetScoreBoard()

View File

@ -22,12 +22,21 @@ g_PluginInfo =
Handler = HandleArrowCmd,
HelpString = "Creates an arrow going away from the player"
},
["/blk"] =
{
Permission = "debuggers",
Handler = HandleBlkCmd,
HelpString = "Gets info about the block you are looking at"
},
["/boom"] =
{
Permission = "debuggers",
Handler = HandleBoomCmd,
HelpString = "Playes a sound and displays an effect at the player's position",
},
["/clientversion"] =
{
Permission = "debuggers",