Originally Posted by
Arasonic
Well, most of the codes was just 'alpha codes' or whatever I should call it. I just wanted the basics to work, then finish them totally later on.
Check the random weapon box spawner for example, that was one thing I was 100% sure I was going to fix later on.
Lemme show you what I wrote for the quickrevive...
Code:
quickReviveThink(pos)
{
self endon("disconnect");
while(1)
{
self waittill( "trigger", player );
if(player.extralife != 1)
if(Distance(pos, Player.origin) <= 200){
Player setLowerMessage("activate", "Hold ^3[{+activate}]^7 for a Quick Revive [^32500^7]" );}
if(Distance(pos, Player.origin) >220){
Player ClearLowerMessage("activate", 1);}
if(Distance(pos, Player.origin) <= 230 && player.extralife != 1 && player.cash >= 1750 && player useButtonPressed())
{
player ClearLowerMessage("activate", 1);
player.cash -= 1750;
player thread _setZMPerk("specialty_quickrevive");
wait 1;
}
else if(Distance(pos, Player.origin) <= 230 && player.extralife != 1 && player.cash <= 1750 && player useButtonPressed())
{
player iPrintln("You do not have enough points!");
wait 1;
}
wait .25;
}
}
Code:
_setZMPerk(perk)
{
self endon("disconnect");
self endon("death");
switch(perk)
{
case "specialty_speedcola":
self _setperk("specialty_fastreload");
self.speed = 1;
self.speedIcon = createIcon("specialty_fastreload", 32, 32);
self.speedIcon setPoint( "TOPRIGHT", "TOPRIGHT", -150, 400);
self thread maps\mp\gametypes\_Humans::Death(self.speedIcon);
break;
case "specialty_orangesoda":
self _setPerk("specialty_bulletaccuracy");
self.orange = 1;
orangeIcon = createIcon("specialty_bulletaccuracy", 32, 32);
orangeIcon setPoint( "TOPRIGHT", "TOPRIGHT", -100, 400);
self thread maps\mp\gametypes\_Humans::Death(orangeIcon);
break;
case "specialty_quickrevive":
//self maps\mp\perks\_perks::givePerk( "specialty_pistoldeath" );
self.extralife = 1;
reviveIcon = createIcon("specialty_hardline_upgrade", 32, 32);
reviveIcon setPoint( "TOPRIGHT", "TOPRIGHT", -50, 400);
self thread maps\mp\gametypes\_Humans::Death(reviveIcon);
self _setPerk("specialty_pistoldeath");
self waittill("death");
self.extralife = 0;
break;
}
}
Hm? O.o
Oh and... I can't make the power, I always get the syntax error (Should I maybe make the host turn the power on, but that would ruin the "idea") =_=