mirror of
https://github.com/ENSL/NS.git
synced 2024-11-25 05:51:11 +00:00
Reverted the ignore intangible check on building placement
This sadly means that buildings cannot be placed where destroyed func_breakables and func_weldables are. Unfortunately, the fix also meant structures could be placed inside railings which would immediately cause them to sink
This commit is contained in:
parent
501fa5ab18
commit
1c2a421648
2 changed files with 2 additions and 2 deletions
|
@ -2745,7 +2745,7 @@ bool AvHSHUGetCanDropItem(vec3_t& ioCenter, Vector& inMinSize, Vector& inMaxSize
|
|||
//adjust origin to be base
|
||||
float theOrigin[3] = { ioCenter[0], ioCenter[1], ioCenter[2] + inMinSize[2] };
|
||||
|
||||
CollisionChecker Checker(pmove, kHLPointHullIndex, CollisionChecker::HULL_TYPE_ALL, inIgnorePlayers, CollisionChecker::IGNORE_INTANGIBLE, inIgnoreIndex);
|
||||
CollisionChecker Checker(pmove, kHLPointHullIndex, CollisionChecker::HULL_TYPE_ALL, inIgnorePlayers, CollisionChecker::IGNORE_NONE, inIgnoreIndex);
|
||||
bool theCanDropItem = (Checker.GetContentsInCylinder(theOrigin,theRadius,theHeight) != CONTENTS_SOLID);
|
||||
|
||||
|
||||
|
|
|
@ -322,7 +322,7 @@ void AvHWeldable::UpdateEntityState()
|
|||
//this->pev->solid = 5;
|
||||
|
||||
this->pev->solid = SOLID_NOT;
|
||||
this->pev->effects = EF_NODRAW;
|
||||
//this->pev->effects = EF_NODRAW;
|
||||
this->pev->takedamage = DAMAGE_NO;
|
||||
this->pev->deadflag = DEAD_DEAD;
|
||||
|
||||
|
|
Loading…
Reference in a new issue