Reverted the name of petsdrown to allow_watermonsters, and switched the
simantics back as well. However, allow_watermonsters still defaults to 1 now. Set to 0 to make monsters drown in water. Tim McGrath
This commit is contained in:
parent
4e75f3c83e
commit
bde3685210
2
ai.qc
2
ai.qc
|
@ -193,7 +193,7 @@ void(entity test) AI_Check_Contents =
|
||||||
/* WK Removed because water is ok for monsters, sheesh
|
/* WK Removed because water is ok for monsters, sheesh
|
||||||
Whatever you think, ceaf it is. */
|
Whatever you think, ceaf it is. */
|
||||||
//- OfN - what the fuck means "ceaf"? heh
|
//- OfN - what the fuck means "ceaf"? heh
|
||||||
else if (pointcontents(test.origin) == CONTENTS_WATER && petsdrown == TRUE)
|
else if (pointcontents(test.origin) == CONTENTS_WATER && allow_watermonsters == FALSE)
|
||||||
{
|
{
|
||||||
if (self.classname == "monster_demon1")
|
if (self.classname == "monster_demon1")
|
||||||
{ // do damage
|
{ // do damage
|
||||||
|
|
2
defs.qc
2
defs.qc
|
@ -798,7 +798,7 @@ float no_detpush;
|
||||||
entity debug_target; // server dprints will go to this client too
|
entity debug_target; // server dprints will go to this client too
|
||||||
float allow_debug;
|
float allow_debug;
|
||||||
//-------------------------//
|
//-------------------------//
|
||||||
float petsdrown; // if 0, grunts and monsters can be in water, in check_contents ai.qc
|
float allow_watermonsters; // if 0, grunts and monsters can be in water, in check_contents ai.qc
|
||||||
|
|
||||||
// Chris' Teamplay Plus Mode
|
// Chris' Teamplay Plus Mode
|
||||||
/*float chris; // Is Chris mode on or off
|
/*float chris; // Is Chris mode on or off
|
||||||
|
|
8
often.qc
8
often.qc
|
@ -165,11 +165,11 @@ void () UpdateInfos =
|
||||||
if (army_delay < 2 ) army_delay = 2; // the allowed minimum
|
if (army_delay < 2 ) army_delay = 2; // the allowed minimum
|
||||||
else if (army_delay > 60) army_delay = 60; //the allowed maximum
|
else if (army_delay > 60) army_delay = 60; //the allowed maximum
|
||||||
|
|
||||||
st = infokey(NIL, "petsdrown"); //
|
st = infokey(NIL, "allow_watermonsters"); //
|
||||||
if (st == "1" || st =="on" )
|
if (st == "0" || st =="off" )
|
||||||
petsdrown = 1;
|
allow_watermonsters = 0;
|
||||||
else
|
else
|
||||||
petsdrown = 0;
|
allow_watermonsters = 1;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue