CloudSixteen / Clockwork

A roleplaying framework developed by Cloud Sixteen for the people.
http://CloudSixteen.com
MIT License
44 stars 44 forks source link

[HL2RP] Combine locks parents to wrong entities on load #188

Closed halworsen closed 9 years ago

halworsen commented 9 years ago

See sv_schema.lua, line 354.

When combine locks are loaded, they may be parented to a non-door entity (e.g. if ents.FindInSphere finds a map entity first). This breaks the lock's functionality on the door and it'll appear somewhere that likely isn't on the door.

Can be fixed with a simple entity class whitelist for the results of ents.FindInSphere.

sanny-io commented 9 years ago

We'll work on a fix for this. Thanks Ate.

skarphet commented 9 years ago

RJ, can you take a look at this?

xRJx commented 9 years ago

I can. Atebite if you're still here, can you tell me the map/location where this occurred so I can recreate it?

halworsen commented 9 years ago

Somewhere on rp_industrial17_v1. Just look at the code and you should understand the issue.

ents.FindInSphere finds the worldspawn or some other entity before it finds the door and parents to that instead.

xRJx commented 9 years ago

Ye, I recall seeing that in the loading function before.

Thanks, I'll work on it ASAP.

VortixDev commented 9 years ago

Thanks Atebite, this has been fixed now.