mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-12-24 18:41:50 +00:00
Compare commits
4 Commits
0f6a3761cc
...
af2937a9c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af2937a9c9 | ||
|
|
8cceef1167 | ||
|
|
15c0cbf7cb | ||
|
|
af452157f6 |
@@ -1,4 +1,5 @@
|
|||||||
#include scripts\chat_commands;
|
#include scripts\chat_commands;
|
||||||
|
#include common_scripts\utility;
|
||||||
|
|
||||||
Init()
|
Init()
|
||||||
{
|
{
|
||||||
@@ -60,7 +61,7 @@ ThreadGodMode()
|
|||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
self waittill("spawned_player");
|
self waittill_any("spawned_player", "gr_eject_sequence_complete"); // Origins robot ejected
|
||||||
|
|
||||||
self DoGodMode(true);
|
self DoGodMode(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ ListPerksCommand(args)
|
|||||||
|
|
||||||
ListWeapons(displayMode)
|
ListWeapons(displayMode)
|
||||||
{
|
{
|
||||||
waitTime = 1.5;
|
PrintLn("-------------------------------");
|
||||||
|
PrintLn("Available weapons");
|
||||||
|
PrintLn("-------------------------------");
|
||||||
|
|
||||||
if (IsMultiplayerMode())
|
if (IsMultiplayerMode())
|
||||||
{
|
{
|
||||||
@@ -69,16 +71,14 @@ ListWeapons(displayMode)
|
|||||||
{
|
{
|
||||||
foreach (index in GetArrayKeys(level.tbl_weaponids))
|
foreach (index in GetArrayKeys(level.tbl_weaponids))
|
||||||
{
|
{
|
||||||
self thread TellPlayer(array(getweapondisplayname(level.tbl_weaponids[index]["reference"] + "_mp")), waitTime);
|
PrintLn(getweapondisplayname(level.tbl_weaponids[index]["reference"] + "_mp"));
|
||||||
wait waitTime;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (index in GetArrayKeys(level.tbl_weaponids))
|
foreach (index in GetArrayKeys(level.tbl_weaponids))
|
||||||
{
|
{
|
||||||
self thread TellPlayer(array(level.tbl_weaponids[index]["reference"] + "_mp"), waitTime);
|
PrintLn(level.tbl_weaponids[index]["reference"] + "_mp");
|
||||||
wait waitTime;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,16 +88,14 @@ ListWeapons(displayMode)
|
|||||||
{
|
{
|
||||||
foreach (weapon in GetArrayKeys(level.zombie_weapons))
|
foreach (weapon in GetArrayKeys(level.zombie_weapons))
|
||||||
{
|
{
|
||||||
self thread TellPlayer(array(getweapondisplayname(weapon)), waitTime);
|
PrintLn(getweapondisplayname(weapon));
|
||||||
wait waitTime;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (weapon in GetArrayKeys(level.zombie_weapons))
|
foreach (weapon in GetArrayKeys(level.zombie_weapons))
|
||||||
{
|
{
|
||||||
self thread TellPlayer(array(weapon), waitTime);
|
PrintLn(weapon);
|
||||||
wait waitTime;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -139,26 +137,44 @@ ListAttachments(weaponName)
|
|||||||
attachmentsFinal = AddElementToArray(attachmentsFinal, StrTok(attachment, "_")[0]);
|
attachmentsFinal = AddElementToArray(attachmentsFinal, StrTok(attachment, "_")[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
self thread TellPlayer(attachmentsFinal, 2);
|
PrintLn("-------------------------------");
|
||||||
|
PrintLn("Available attachments for " + getweapondisplayname(finalWeaponName) + " (" + StrTok(finalWeaponName, "_mp")[0] + "_mp" + ")");
|
||||||
if (DebugIsOn())
|
PrintLn("-------------------------------");
|
||||||
{
|
|
||||||
Print("-------------------------------");
|
|
||||||
Print("Available attachments for " + getweapondisplayname(finalWeaponName) + " (" + StrTok(finalWeaponName, "_mp")[0] + "_mp" + ")");
|
|
||||||
|
|
||||||
foreach (attachment in attachmentsFinal)
|
foreach (attachment in attachmentsFinal)
|
||||||
{
|
{
|
||||||
Print(attachment);
|
PrintLn(attachment);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListPowerups()
|
ListPowerups()
|
||||||
{
|
{
|
||||||
self thread TellPlayer(GetAvailablePowerups(), 2);
|
powerups = GetAvailablePowerups();
|
||||||
|
|
||||||
|
self thread TellPlayer(powerups, 2);
|
||||||
|
|
||||||
|
PrintLn("-------------------------------");
|
||||||
|
PrintLn("Available powerups");
|
||||||
|
PrintLn("-------------------------------");
|
||||||
|
|
||||||
|
foreach (powerup in powerups)
|
||||||
|
{
|
||||||
|
PrintLn(powerup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ListPerks()
|
ListPerks()
|
||||||
{
|
{
|
||||||
self thread TellPlayer(GetAvailablePerks(), 2);
|
perks = GetAvailablePerks();
|
||||||
|
|
||||||
|
self thread TellPlayer(perks, 2);
|
||||||
|
|
||||||
|
PrintLn("-------------------------------");
|
||||||
|
PrintLn("Available perks");
|
||||||
|
PrintLn("-------------------------------");
|
||||||
|
|
||||||
|
foreach (perk in perks)
|
||||||
|
{
|
||||||
|
PrintLn(perk);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -780,6 +780,8 @@ GetAvailablePerks()
|
|||||||
{
|
{
|
||||||
perks = [];
|
perks = [];
|
||||||
|
|
||||||
|
if (GetEntArray("random_perk_machine", "targetname").size == 0)
|
||||||
|
{
|
||||||
foreach (machine in GetEntArray( "zombie_vending", "targetname" ))
|
foreach (machine in GetEntArray( "zombie_vending", "targetname" ))
|
||||||
{
|
{
|
||||||
if (machine.script_noteworthy != "specialty_weapupgrade")
|
if (machine.script_noteworthy != "specialty_weapupgrade")
|
||||||
@@ -787,7 +789,12 @@ GetAvailablePerks()
|
|||||||
perks = AddElementToArray(perks, machine.script_noteworthy);
|
perks = AddElementToArray(perks, machine.script_noteworthy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Print("perkssize: " + perks.size);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
perks = level._random_perk_machine_perk_list;
|
||||||
|
}
|
||||||
|
|
||||||
return perks;
|
return perks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user