Creating instance of a Class in server.dll
hi,
i want to make an instance of CEntityFactory< T > in my sourcemod extension, well i have no idea how to handle this specific case :( . can you show me a way to manage this? |
Re: Creating instance of a Class in server.dll
Do you mean creating an additional factory? Or just getting the instance of the existing factory?
|
Re: Creating instance of a Class in server.dll
i "just" want to create an additional factory.
i know that the factory will then automatically add itself to the dictionary, as its supposed to do so cause of its constructor. |
Re: Creating instance of a Class in server.dll
What is T in this example? Every existing entity type should already have a factory instance that will be in the dictionary.
|
Re: Creating instance of a Class in server.dll
well, then the whole story.
i want to create a new(not just instance) server-side entity in my plug-in. So T is basically a type/class in my binary. |
Re: Creating instance of a Class in server.dll
Look at CEntity. You can thank pRED ;]
|
Re: Creating instance of a Class in server.dll
Quote:
|
Re: Creating instance of a Class in server.dll
And voogru!
|
Re: Creating instance of a Class in server.dll
mh i tried the framework, but tf crashes when i start my extension on autoload. and even if i load it after i joined it crashes after about 30 seconds.
if i load it using the server console and no one is playing on the server it doesnt crash. Has anyone investigated this before? |
Re: Creating instance of a Class in server.dll
You need updated gamedata.
You can copy the centity.games.txt from TFDodgeball. |
All times are GMT -4. The time now is 11:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.