View Single Post
Re: Moving my mod from TFC to DOD...
Old
  (#2)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Moving my mod from TFC to DOD... - 29-08-2004

Counter Strike and DoD are currently maintaining their own internal list of entities inside the MOD DLL code. This was done as an engine performace measure to keep the game code from use the engine's function to search for game entities (since the game code knows better what entities it wants to search for and can optimize this search by storing things internally in the game DLL code instead of relying on the engine).

What this means is that if you are createing or destroying entities within your plugin, you will probably have problems with the game DLL crashing (because you created or destroyed something that the game DLL wasn't aware of and now it is out of sync).

You don't indicate what you are "tinkering" with, but if you are tinkering with creating or destroying entities, don't do that and see if that prevents the crashing problem.

You should still be able to change variables on entities that already exist (such as changing health or location), so if that's all your doing, then you have some bug in your code.

botman
  
Reply With Quote