mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
- move '#undef ALIGNED_FIELDGENS' into the right file (options.qh, not .qc)
- make the old "stuck in field" tests work when ALIGNED_FIELDGENS is defined.
This commit is contained in:
parent
8b38676806
commit
8a48b88387
3 changed files with 11 additions and 18 deletions
23
field.qc
23
field.qc
|
@ -142,6 +142,7 @@ void() Field_think =
|
|||
if (self.demon_one.fieldgen_status == FIELDGEN_ISWORKING)
|
||||
Field_MakeVisual(self);
|
||||
|
||||
#ifdef ALIGNED_FIELDGENS
|
||||
// checks for anything stuck in field :)
|
||||
local entity te;
|
||||
local float frange;
|
||||
|
@ -160,26 +161,18 @@ void() Field_think =
|
|||
if (te.velocity == '0 0 0')
|
||||
// if (!IsBuilding(te)) // no screwing with the buildings :)
|
||||
if (te.classname != "force_field")
|
||||
#ifdef ALIGNED_FIELDGENS
|
||||
if (EntsTouching2(te,self))
|
||||
#else
|
||||
# warning We do NOT have a test for being stuck in the field, so I am disabling it
|
||||
if (0)
|
||||
#endif
|
||||
{
|
||||
local entity foo;
|
||||
foo = testentitypos (te);
|
||||
if (foo == self)
|
||||
{
|
||||
other = te;
|
||||
deathmsg = DMSG_STUCK_FORCEFIELD;
|
||||
self.dmg = FIELDGEN_DMGINSIDE; // this gonna hurt
|
||||
Field_touch_SUB();
|
||||
}
|
||||
other = te;
|
||||
deathmsg = DMSG_STUCK_FORCEFIELD;
|
||||
self.dmg = FIELDGEN_DMGINSIDE; // this gonna hurt
|
||||
Field_touch_SUB();
|
||||
}
|
||||
|
||||
te = te.chain;
|
||||
}
|
||||
#else
|
||||
# warning We do NOT have a test for being stuck in the field, so I am disabling it
|
||||
#endif
|
||||
};
|
||||
|
||||
//=============================================================================================
|
||||
|
|
|
@ -12,7 +12,6 @@ Defines for the compilable options within TF.
|
|||
//#define BOTS // doesn't do anything yet
|
||||
//#define DEMO_STUFF
|
||||
#define STATUSBAR
|
||||
#undef ALIGNED_FIELDGENS
|
||||
|
||||
#pragma PROGS_DAT "qwprogs.dat"
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ Defines for the compilable options within TF.
|
|||
//#define BOTS // doesn't do anything yet
|
||||
//#define DEMO_STUFF
|
||||
#define STATUSBAR
|
||||
#undef ALIGNED_FIELDGENS
|
||||
|
||||
//#pragma PROGS_DAT "qwprogs.dat"
|
||||
|
||||
|
|
Loading…
Reference in a new issue