mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-10-08 15:46:40 +00:00
chat_command_info 1.1.0
Added listpowerups command to list available powerups in zombies (only lists powerups available on the map)
This commit is contained in:
@@ -7,6 +7,11 @@ Init()
|
||||
CreateCommand(level.chat_commands["ports"], "listattachments", "function", ::ListAttachmentsCommand, 2);
|
||||
}
|
||||
|
||||
if (!IsMultiplayerMode())
|
||||
{
|
||||
CreateCommand(level.chat_commands["ports"], "listpowerups", "function", ::ListPowerupsCommand, 2);
|
||||
}
|
||||
|
||||
CreateCommand(level.chat_commands["ports"], "listweapons", "function", ::ListWeaponsCommand, 2);
|
||||
}
|
||||
|
||||
@@ -29,6 +34,16 @@ ListAttachmentsCommand(args)
|
||||
}
|
||||
}
|
||||
|
||||
ListPowerupsCommand(args)
|
||||
{
|
||||
error = self thread ListPowerups();
|
||||
|
||||
if (IsDefined(error))
|
||||
{
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Logic section */
|
||||
@@ -125,4 +140,9 @@ ListAttachments(weaponName)
|
||||
Print(attachment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ListPowerups()
|
||||
{
|
||||
self thread TellPlayer(GetAvailablePowerups(), 2);
|
||||
}
|
Reference in New Issue
Block a user