Added QW effect flags for EF_RED and EF_BLUE, and set for quad damage and pentagram pickup. In COOP, broadcast rune pickups and secret area findings.
This commit is contained in:
parent
dd71baf8dd
commit
f559c4e706
10
combat.qc
10
combat.qc
|
@ -129,17 +129,15 @@ void(entity targ, entity attacker) Killed =
|
|||
attacker.netname = self.netname;
|
||||
}
|
||||
|
||||
// some bonus visual shell effects
|
||||
// some bonus visual effects
|
||||
if (attacker.frags > 0) {
|
||||
attacker.effects |= (EF_DIMLIGHT);
|
||||
attacker.items = IT_QUAD;
|
||||
attacker.effects = (EF_DIMLIGHT | EF_BLUE);
|
||||
}
|
||||
if (attacker.frags > 1) {
|
||||
attacker.items = IT_INVULNERABILITY;
|
||||
attacker.effects = (EF_DIMLIGHT | EF_RED);
|
||||
}
|
||||
if (attacker.frags > 2) {
|
||||
attacker.items |= IT_QUAD;
|
||||
attacker.effects |= EF_BRIGHTLIGHT;
|
||||
attacker.effects = (EF_DIMLIGHT | EF_RED | EF_BLUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
3
defs.qc
3
defs.qc
|
@ -381,6 +381,9 @@ float EF_BRIGHTFIELD = 1;
|
|||
float EF_MUZZLEFLASH = 2;
|
||||
float EF_BRIGHTLIGHT = 4;
|
||||
float EF_DIMLIGHT = 8;
|
||||
// [slipyx] QW effects
|
||||
float EF_BLUE = 64;
|
||||
float EF_RED = 128;
|
||||
|
||||
|
||||
// messages
|
||||
|
|
10
items.qc
10
items.qc
|
@ -1019,6 +1019,12 @@ void() sigil_touch =
|
|||
return;
|
||||
|
||||
centerprint (other, "You got the rune!");
|
||||
// [slipyx] broadcast in coop
|
||||
if (coop)
|
||||
{
|
||||
bprint (other.netname);
|
||||
bprint (" got the rune!\n");
|
||||
}
|
||||
|
||||
sound (other, CHAN_ITEM, self.noise, 1, ATTN_NORM);
|
||||
stuffcmd (other, "bf\n");
|
||||
|
@ -1159,6 +1165,7 @@ void() item_artifact_invulnerability =
|
|||
self.noise = "items/protect.wav";
|
||||
setmodel (self, "progs/invulner.mdl");
|
||||
self.netname = "Pentagram of Protection";
|
||||
self.effects = self.effects | EF_RED; // [slipyx] QW color effects
|
||||
self.items = IT_INVULNERABILITY;
|
||||
setsize (self, '-16 -16 -24', '16 16 32');
|
||||
StartItem ();
|
||||
|
@ -1218,6 +1225,7 @@ void() item_artifact_super_damage =
|
|||
setmodel (self, "progs/quaddama.mdl");
|
||||
self.netname = "Quad Damage";
|
||||
self.items = IT_QUAD;
|
||||
self.effects = self.effects | EF_BLUE; // [slipyx] QW color effects
|
||||
setsize (self, '-16 -16 -24', '16 16 32');
|
||||
StartItem ();
|
||||
};
|
||||
|
@ -1271,7 +1279,7 @@ void() BackpackTouch =
|
|||
if (!new)
|
||||
new = other.weapon;
|
||||
old = other.items;
|
||||
other.items = other.items | new;
|
||||
other.items = other.items | self.items;
|
||||
|
||||
bound_other_ammo ();
|
||||
|
||||
|
|
|
@ -40,6 +40,13 @@ void() multi_trigger =
|
|||
return;
|
||||
found_secrets = found_secrets + 1;
|
||||
WriteByte (MSG_ALL, SVC_FOUNDSECRET);
|
||||
|
||||
// [slipyx] broadcast in coop
|
||||
if (coop)
|
||||
{
|
||||
bprint (self.enemy.netname);
|
||||
bprint (" found a secret area!\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (self.noise)
|
||||
|
|
Loading…
Reference in New Issue