Quote:
Originally Posted by Sexual Harassment Panda
A few things:
A) Is there a way to make it less resource intensive
B)I have suggestions for features
1)Variable speed based on level) make level 1's go faster than people, level 2's as fast as people, and level 3's slower than people
|
This is possible. Ive already modded his plugin extensively for use on our own servers, added movement speed variables, as well as added the ability to move/control dispensers and tele entrances/exits.
As for making it less resource intensive, the cause is the fact that its executing fuctions on every single game frame, which just eats up resources. If there was a way to get rid of this, it wouldnt be so bad. As an added benefit, in order to actually do this, it would require making the object actually move on its own, rather than just get teleported around, like it is now.
A concern I have is the fact that it creates an info_observer_point every time you begin controlling an object, and (as far as I can see in the code) never removes the entity. Having a lot of entities can also cause minor lag, though having a huge number can cause a sizable amount.
Anyways, I give you credit for creating a very cool idea of a plugin, allowing buildings to move around, but your execution is rather crude.
Edit : I would suggest looking at the Zgrabber plugin for how it moves entities. Its much less resource intensive. Also, try attaching the info_observer_point to the entity, rather than just teleporting it to follow, in addition to removing the entity when they stop controling.