mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 15:21:51 +00:00
Changed tesla upgrades so you only get *one* upgrade for every 10 frags.
Oh, and you only get ten of them. (every ten starting at 10 to 100) I'm nearly certain this will make quickly setup unkillable teslas go away. Tim McGrath (Hikaru/Misty)
This commit is contained in:
parent
d3fe84fbc2
commit
43a38168f2
1 changed files with 13 additions and 51 deletions
64
tesla.qc
64
tesla.qc
|
@ -68,106 +68,68 @@ $frame fire1 fire2 fire3 fire4 fire5 fire6
|
|||
void() Tesla_Check_Frags =
|
||||
{
|
||||
if (self.has_teleporter == 0) { //no extra frags
|
||||
if (self.frags >= 2) {
|
||||
if (self.frags >= 10) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 1;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 1) {
|
||||
if (self.frags >= 5) {
|
||||
if (self.frags >= 20) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 2;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 2) {
|
||||
if (self.frags >= 8) {
|
||||
if (self.frags >= 30) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 3;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 3) {
|
||||
if (self.frags >= 11) {
|
||||
if (self.frags >= 40) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 4;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 4) {
|
||||
if (self.frags >= 15) {
|
||||
if (self.frags >= 50) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
bprint(PRINT_HIGH, self.real_owner.netname);
|
||||
bprint(PRINT_HIGH, " is a master of tesla placement, his tesla has at least 50 kills!!\n");
|
||||
self.has_teleporter = 5;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 5) {
|
||||
if (self.frags >= 20) {
|
||||
if (self.frags >= 60) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 6;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 6) {
|
||||
if (self.frags >= 26) {
|
||||
if (self.frags >= 70) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 7;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 7) {
|
||||
if (self.frags >= 33) {
|
||||
if (self.frags >= 80) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 8;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 8) {
|
||||
if (self.frags >= 40) {
|
||||
if (self.frags >= 90) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 9;
|
||||
}
|
||||
}
|
||||
|
||||
else if (self.has_teleporter == 9) {
|
||||
if (self.frags >= 50) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
bprint(PRINT_HIGH, self.real_owner.netname);
|
||||
bprint(PRINT_HIGH, " is a master of tesla placement, his tesla has over 50 kills!!\n");
|
||||
self.has_teleporter = 10;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 10) {
|
||||
if (self.frags >= 60) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 11;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 11) {
|
||||
if (self.frags >= 70) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 12;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 12) {
|
||||
if (self.frags >= 80) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 13;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 13) {
|
||||
if (self.frags >= 90) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
self.has_teleporter = 14;
|
||||
}
|
||||
}
|
||||
else if (self.has_teleporter == 14) {
|
||||
if (self.frags >= 100) {
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
Tesla_Add_Rand_Upgrade(self, self.real_owner);
|
||||
bprint(PRINT_HIGH, self.real_owner.netname);
|
||||
bprint(PRINT_HIGH, " is a true legend at tesla placement, his tesla has over 100 kills!!\n");
|
||||
self.has_teleporter = 15;
|
||||
bprint(PRINT_HIGH, " is a true legend at tesla placement, his tesla has at least 100 kills!!\n");
|
||||
self.has_teleporter = 10;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue