Skip to content

Commit

Permalink
Server: Restore Box Glow for FTE, fix Power-Up timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed May 9, 2022
1 parent 0ccb635 commit 4d5363b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
4 changes: 0 additions & 4 deletions source/server/entities/machines.qc
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,6 @@ void() findboxspot =
newspot.angles_y += 90;

// Spawn the Box Glow if permitted
#ifndef PC
if (!(self.owner.spawnflags & 2))
{
local entity g;
Expand All @@ -1393,7 +1392,6 @@ void() findboxspot =
setorigin(g,newspot.origin);
g.angles = newspot.angles;
}
#endif

// Remove teddy
remove(self);
Expand Down Expand Up @@ -1732,7 +1730,6 @@ void() mystery_box =
setmodel (self, "models/machines/mystery.mdl");
setsize (self, VEC_HULL2_MIN, VEC_HULL2_MAX);

#ifndef PC
if (!(self.spawnflags & 2))
{
local entity g;
Expand All @@ -1742,7 +1739,6 @@ void() mystery_box =
setorigin(g,self.origin);
g.angles = self.angles;
}
#endif

self.touch = mystery_touch;
boxOrigin = self.origin;
Expand Down
14 changes: 6 additions & 8 deletions source/server/entities/powerups.qc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ void(vector org) PU_NukeExplode =
setorigin(explosion, org);
explosion.think = PU_NukeExplosionThink;
explosion.nextthink = time + 0.10;
explosion.ltime = time + 3;
}

//
Expand Down Expand Up @@ -457,10 +456,6 @@ void() PU_Flash =
{
// Toggle the Power-Up model on and off
if (self.hitcount % 2) {
// Store model
if (!self.oldmodel)
self.oldmodel = self.model;

// Disappear
setmodel(self, "");
}
Expand Down Expand Up @@ -584,9 +579,7 @@ void(vector where, float type) Spawn_Powerup =
sparkle.origin = where;
setorigin(sparkle, sparkle.origin);

#ifndef PC
setmodel(sparkle,"models/sprites/sprkle.spr");
#endif

sparkle.think = PU_SparkleThink;
sparkle.nextthink = time + 0.1;
Expand All @@ -605,9 +598,14 @@ void(vector where, float type) Spawn_Powerup =
}

// Assign the Power-Up model and sound
setmodel(powerup, PU_ModelPath(powerup.walktype));
powerup.model = powerup.oldmodel = PU_ModelPath(powerup.walktype);
setmodel(powerup, powerup.model);
powerup.powerup_vo = PU_VoiceoverPath(powerup.walktype);

// Time out
powerup.think = PU_Flash;
powerup.nextthink = time + 15;

// Finally assign collision function
powerup.touch = PU_Touch;

Expand Down

0 comments on commit 4d5363b

Please sign in to comment.