mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-02-22 03:51:26 +00:00
- finally make hacked fieldgens work right
- some of my "stuck in field" experiments, because they're in the same file and I didn't feel like reverting them. - add an item to TODO
This commit is contained in:
parent
b3a03080e0
commit
bf8e4e1b33
4 changed files with 664 additions and 618 deletions
1
TODO
1
TODO
|
@ -12,3 +12,4 @@ o various drop items
|
||||||
X move from *preqcc to cpp
|
X move from *preqcc to cpp
|
||||||
o add more variety to tinkering
|
o add more variety to tinkering
|
||||||
o add a way to edit the respawn ammo entities
|
o add a way to edit the respawn ammo entities
|
||||||
|
o add localinfo string for bottom half of the MOTD
|
||||||
|
|
26
field.qc
26
field.qc
|
@ -160,12 +160,17 @@ void() Field_think =
|
||||||
if (te.velocity == '0 0 0')
|
if (te.velocity == '0 0 0')
|
||||||
// if (!IsBuilding(te)) // no screwing with the buildings :)
|
// if (!IsBuilding(te)) // no screwing with the buildings :)
|
||||||
if (te.classname != "force_field")
|
if (te.classname != "force_field")
|
||||||
if (EntsTouching2(te,self))
|
// if (EntsTouching2(te,self))
|
||||||
{
|
{
|
||||||
other = te;
|
local entity foo;
|
||||||
deathmsg = DMSG_STUCK_FORCEFIELD;
|
foo = testentitypos (te);
|
||||||
self.dmg = FIELDGEN_DMGINSIDE; // this gonna hurt
|
if (foo == self)
|
||||||
Field_touch_SUB();
|
{
|
||||||
|
other = te;
|
||||||
|
deathmsg = DMSG_STUCK_FORCEFIELD;
|
||||||
|
self.dmg = FIELDGEN_DMGINSIDE; // this gonna hurt
|
||||||
|
Field_touch_SUB();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
te = te.chain;
|
te = te.chain;
|
||||||
|
@ -280,7 +285,7 @@ void() Field_touch_SUB =
|
||||||
deathmsg = DMSG_FF_HACKED;
|
deathmsg = DMSG_FF_HACKED;
|
||||||
else /* if (deathmsg == DMSG_FORCEFIELD_STUCK) */
|
else /* if (deathmsg == DMSG_FORCEFIELD_STUCK) */
|
||||||
deathmsg = DMSG_FF_STUCK_HACKED;
|
deathmsg = DMSG_FF_STUCK_HACKED;
|
||||||
TF_T_Damage (other, self, self.martyr_enemy, self.dmg, TF_TD_NOTTEAM, TF_TD_ELECTRICITY);
|
TF_T_Damage (other, self, self, self.dmg, TF_TD_NOTTEAM, TF_TD_ELECTRICITY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +310,7 @@ void() Field_touch_SUB =
|
||||||
deathmsg = DMSG_FF_HACKED;
|
deathmsg = DMSG_FF_HACKED;
|
||||||
else /* if (deathmsg == DMSG_FORCEFIELD_STUCK) */
|
else /* if (deathmsg == DMSG_FORCEFIELD_STUCK) */
|
||||||
deathmsg = DMSG_FF_STUCK_HACKED;
|
deathmsg = DMSG_FF_STUCK_HACKED;
|
||||||
TF_T_Damage (other, self, self.martyr_enemy, self.dmg, TF_TD_NOTTEAM, TF_TD_ELECTRICITY);
|
TF_T_Damage (other, self, self, self.dmg, TF_TD_NOTTEAM, TF_TD_ELECTRICITY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -630,6 +635,13 @@ void(entity gen1, entity gen2) Create_Field =
|
||||||
gen2.has_teleporter = TRUE;
|
gen2.has_teleporter = TRUE;
|
||||||
gen2.skin = 2;
|
gen2.skin = 2;
|
||||||
|
|
||||||
|
if (gen1.martyr_enemy)
|
||||||
|
tfield.martyr_enemy = gen1.martyr_enemy;
|
||||||
|
else if (gen1.martyr_enemy)
|
||||||
|
tfield.martyr_enemy = gen2.martyr_enemy;
|
||||||
|
else
|
||||||
|
tfield.martyr_enemy = world;
|
||||||
|
|
||||||
/* // make sure the field goes off instantly if there's somebody in it
|
/* // make sure the field goes off instantly if there's somebody in it
|
||||||
local entity oldself;
|
local entity oldself;
|
||||||
oldself = self;
|
oldself = self;
|
||||||
|
|
2
haxxx.qc
2
haxxx.qc
|
@ -418,6 +418,8 @@ void() SBFireInterface =
|
||||||
{
|
{
|
||||||
sprint(self, PRINT_HIGH, "The field generator is now rigged to hurt teammates...\n");
|
sprint(self, PRINT_HIGH, "The field generator is now rigged to hurt teammates...\n");
|
||||||
targ.martyr_enemy = self;
|
targ.martyr_enemy = self;
|
||||||
|
if (targ.fieldgen_hasfield)
|
||||||
|
targ.fieldgen_field.martyr_enemy = self;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (hackThis == SCREWUP_TWO)
|
else if (hackThis == SCREWUP_TWO)
|
||||||
|
|
1253
obituary.qc
1253
obituary.qc
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue