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:
Timothy C. McGrath 2002-09-08 02:12:15 +00:00
parent 4e75f3c83e
commit bde3685210
3 changed files with 6 additions and 6 deletions

2
ai.qc
View File

@ -193,7 +193,7 @@ void(entity test) AI_Check_Contents =
/* WK Removed because water is ok for monsters, sheesh
Whatever you think, ceaf it is. */
//- 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")
{ // do damage

View File

@ -798,7 +798,7 @@ float no_detpush;
entity debug_target; // server dprints will go to this client too
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
/*float chris; // Is Chris mode on or off

View File

@ -165,11 +165,11 @@ void () UpdateInfos =
if (army_delay < 2 ) army_delay = 2; // the allowed minimum
else if (army_delay > 60) army_delay = 60; //the allowed maximum
st = infokey(NIL, "petsdrown"); //
if (st == "1" || st =="on" )
petsdrown = 1;
st = infokey(NIL, "allow_watermonsters"); //
if (st == "0" || st =="off" )
allow_watermonsters = 0;
else
petsdrown = 0;
allow_watermonsters = 1;
};