Zombie blood script
-
Could anyone help me with a script to spawn power ups?
-
Not sure what you mean? This?
https://github.com/plutoniummod/t6-scripts/blob/main/ZM/Core/maps/mp/zombies/_zm_powerups.gsc#L545C1-L545C22 -
Not sure what you mean? This?
https://github.com/plutoniummod/t6-scripts/blob/main/ZM/Core/maps/mp/zombies/_zm_powerups.gsc#L545C1-L545C22This post is deleted! -
Could anyone help me with a script to spawn power ups?
Pinguim1214 This script can spawn power-ups.
Original forum post: https://forum.plutonium.pw/topic/43288/zm-script-that-creates-command-to-give-money-and-powerupsAnd here is the script that only spawns Zombie Blood:
rute:
.\AppData\Local\Plutonium\storage\t6\scripts\zm\zm_tombscript code:
// main_powerups.gsc - command for spawnear powerups for Plutonium T6 Zombies
// it is only working in the console command. :
// /zombie_blood -> zombie_bloodmain()
{
level thread onPlayerConnect();
}onPlayerConnect()
{
for (;;)
{
level waittill("connected", player);
player thread powerupConsoleCommands();
}
}//////////////////////////
// give powwr up
//////////////////////////
powerupConsoleCommands()
{
// Register the console command
self notifyOnPlayerCommand("ev_zombie_blood", "zombie_blood");// thread for the command self thread cmd_zombie_blood();}
//////////////////////////
//------------- helpers for powerups ------------//
//////////////////////////
GivePowerUp(powerup_name)
{
if (!isDefined(level.zombie_include_powerups) || !(level.zombie_include_powerups.size > 0))
{
self iprintln("^1Powerups not suported for this map.");
}
else
{
level.powerup_drop_count = 0;
powerup = level maps\mp\zombies_zm_powerups::specific_powerup_drop(powerup_name, self.origin);
powerup thread maps\mp\zombies_zm_powerups::powerup_timeout();
self iprintln("^2Powerup ^7" + powerup_name + " ^2spawned.");
}
}//////////////////////////
//------------- simple command ----------//
//////////////////////////
cmd_zombie_blood()
{
for (;;)
{
self waittill("ev_zombie_blood");
self GivePowerUp("zombie_blood");
}
}