mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-13 00:24:33 +00:00
make the "no_spam" infokey disable setting detpacks, not just buying them
This commit is contained in:
parent
cbe175461b
commit
25446fd860
2 changed files with 11 additions and 1 deletions
|
@ -157,6 +157,11 @@ void(float timer) TeamFortress_SetDetpack =
|
||||||
if (self.ammo_detpack <= 0)
|
if (self.ammo_detpack <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (infokey (world, "no_spam") == "on")
|
||||||
|
{
|
||||||
|
sprint(self,PRINT_HIGH,"The admin has disabled spam devices on this map.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Cant set detpack if you're in the air
|
// Cant set detpack if you're in the air
|
||||||
if (!(self.flags & FL_ONGROUND))
|
if (!(self.flags & FL_ONGROUND))
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,7 +116,12 @@ void() SwitchFromCamera =
|
||||||
void() PrimeC4Det =
|
void() PrimeC4Det =
|
||||||
{
|
{
|
||||||
local entity te;
|
local entity te;
|
||||||
|
|
||||||
|
if (infokey (world, "no_spam") == "on")
|
||||||
|
{
|
||||||
|
sprint(self,PRINT_HIGH,"The admin has disabled spam devices on this map.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!(self.cutf_items & CUTF_TOSSABLEDET))
|
if (!(self.cutf_items & CUTF_TOSSABLEDET))
|
||||||
{
|
{
|
||||||
sprint (self, PRINT_HIGH, "You do not have the C4 tossable detpack.\n");
|
sprint (self, PRINT_HIGH, "You do not have the C4 tossable detpack.\n");
|
||||||
|
|
Loading…
Reference in a new issue