mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 08:21:59 +00:00
kill some unneeded tests
This commit is contained in:
parent
c9626b42f0
commit
1fca85ee0a
1 changed files with 0 additions and 55 deletions
|
@ -79,61 +79,6 @@ void () eek =
|
||||||
traceoff();
|
traceoff();
|
||||||
};
|
};
|
||||||
|
|
||||||
.string classname;
|
|
||||||
.string netname;
|
|
||||||
float (entity tester) IsBuilding =
|
|
||||||
{
|
|
||||||
if (
|
|
||||||
tester.classname == "building_sentrygun" ||
|
|
||||||
tester.classname == "building_sentrygun_base" ||
|
|
||||||
tester.classname == "building_tesla" ||
|
|
||||||
tester.classname == "building_dispenser" ||
|
|
||||||
tester.classname == "building_camera" ||
|
|
||||||
tester.classname == "building_arawana" ||
|
|
||||||
tester.classname == "building_teleporter"||
|
|
||||||
tester.classname == "building_fieldgen"||
|
|
||||||
tester.classname == "building_sensor"
|
|
||||||
)
|
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
float(entity thing) IsMonster =
|
|
||||||
{
|
|
||||||
if (thing.classname=="monster_shambler")
|
|
||||||
return 1;
|
|
||||||
if (thing.classname=="monster_demon1")
|
|
||||||
return 1;
|
|
||||||
if (thing.classname=="monster_wizard")
|
|
||||||
return 1;
|
|
||||||
if (thing.classname=="monster_army")
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
if (thing.classname=="monster_knight")
|
|
||||||
return 1;
|
|
||||||
if (thing.classname=="monster_hknight")
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
};
|
|
||||||
string(entity thething) GetEnemyName =
|
|
||||||
{
|
|
||||||
if (thething.classname == "player")
|
|
||||||
return thething.netname;
|
|
||||||
|
|
||||||
if (IsMonster(thething))
|
|
||||||
return "";
|
|
||||||
|
|
||||||
if (IsBuilding(thething))
|
|
||||||
return "";
|
|
||||||
|
|
||||||
if (thething.classname == "grenade" && thething.netname == "land_mine")
|
|
||||||
return "land mine";
|
|
||||||
|
|
||||||
if (thething.classname != "")
|
|
||||||
return thething.classname;
|
|
||||||
|
|
||||||
return "unknown stuff";
|
|
||||||
};
|
|
||||||
void () assign =
|
void () assign =
|
||||||
{
|
{
|
||||||
local float foo;
|
local float foo;
|
||||||
|
|
Loading…
Reference in a new issue