- reduce build drop distance from 128 to 64

- fix the "building in wall" tests when over a doorway
- change a message :)
- add the initial code for checking if a sentry is in a wall.  doesn't
  work yet though, so it's commented out.
This commit is contained in:
Adam Olsen 2001-10-11 04:18:32 +00:00
parent 1df4a0fd59
commit 3d3c7170fc
4 changed files with 18 additions and 5 deletions

2
BUGS
View file

@ -12,7 +12,7 @@
- intercepting your sentry when it turrets kills you, but stops the sentry
- if you judo an assault cannon your speed isn't restored when it's returned
- I've been told that if you're a thief and you start setting a detpack you won't get revealed until it's finished
- sentries/teslas should check their pointcontents every frame, and blow up if they're out of the map
- sentries/teslas should check their pointcontents every frame, and blow up if they're out of the map. "foo had a lesson in physics"
- topcolor gets reset every time you respawn (?), even though it shouldn't be. ditto for skin?
- prematch shouldn't force autoteam when it's done
- sometimes ID doesn't work. this may be because impulses are unreliable though :/

View file

@ -684,8 +684,8 @@ void(float objtobuild) TeamFortress_Build =
if (objtobuild != BUILD_SECURITY_CAMERA)
{
checkmove(obj.origin + '0 0 8', mins, maxs, obj.origin - '0 0 128', 0, self);
if (trace_fraction == 1 || trace_allsolid) {
checkmove(obj.origin + '0 0 8', mins, maxs, obj.origin - '0 0 64', 0, self);
if (trace_startsolid || trace_fraction == 1) {
sprint(self, PRINT_HIGH, "Not enough room to build here\n");
dremove(obj);
return;
@ -697,7 +697,7 @@ void(float objtobuild) TeamFortress_Build =
if (objtobuild == BUILD_TELEPORTER) {
checkmove (obj.origin, '-32 -32 8', '32 32 72', obj.origin - '0 0 128', 0, self);
if (trace_fraction == 1 || trace_allsolid) {
if (trace_startsolid || trace_fraction == 1) {
sprint (self, PRINT_HIGH, "Not enough room for teleportation\n");
dremove (obj);
return;

View file

@ -1189,7 +1189,7 @@ void (entity targ, entity attacker) Obituary_Player_Misc =
// logfrag (targ, targ);
if (pointcontents (self.origin) == CONTENTS_SOLID) {
deathstring = " left the map\n";
deathstring = " gets a lesson in spatial physics\n";
} else if (targ.watertype == CONTENTS_WATER) {
local float rnum = random ();

View file

@ -157,6 +157,19 @@ void() lvl3_sentry_atk5 =[ $lvl3_stand1, lvl3_sentry_atk4 ]
//=============
void() Sentry_Rotate =
{
/*
// don't let them exist in walls/doors
// FIXME: pointcontents is wrong for doors
local vector testpoint = self.origin;
if (self.tf_items & NIT_TURRET)
testpoint_z -= 40;
if (pointcontents (testpoint) == CONTENTS_SOLID) {
TF_T_Damage (self, world, world, self.health + 100,
TF_TD_IGNOREARMOUR, TF_TD_OTHER);
return;
}
*/
if (self.is_malfunctioning & SCREWUP_ONE)
{
self.ideal_yaw = self.ideal_yaw + 10;