Model Spawner

Posts 111 of 11 · Page 1 of 1
Model Spawner
i've helped so many people, shared this source almost with everyone on MSN, might as well just post it


Code:
ObjectCreateStruct ocs;
  
   ocs.Clear();
   ocs.m_ObjectType = OT_MODEL;
   sprintf_s(ocs.m_Filename, "CHARS_M_BODY\\BOSS_MODEL.LTB");
   SAFE_STRCPY(ocs.m_RenderStyleNames[1], "RS\\NINJA_TRANSLUCENT.LTB");	
   //sprintf_s(ocs.m_SkinName, "");
   ocs.m_Pos = LTVector(myPos.x, myPos.y, myPos.z);
   ocs.m_Flags = FLAG_VISIBLE;
   HOBJECT mObj = g_LTClient->CreateObject(&OCS);
(there might be a bug in how thats coded)

How to find the link to LTB/DTX file
Get a program called RezXtract (google it, its on mpgh somewhere in rez modding section)
Extract the Rez File in the game folder you want to find the model of
Once you find it, simply put it in there as is
Code:
sprintf_s(ocs.m_Filename, "CHARS_M_BODY\\BOSS_MODEL.LTB");
bugs with this hack
textures don't apply even if link is right.
RS File doesn't seem to apply

credits for some help
Ch40zz
Xipher
me for fixing this so people actually know how to use it
hmmm is some one gonna make this and make it pub or what ??
WOW nice feature thanks!
OLD, but GOLD
Oh... why release it?
It never worked right xD
Do they spawn and keep their actions, or do they just spawn?
Ie do zombies attack people
Quote Originally Posted by NotRealPro View Post
Do they spawn and keep their actions, or do they just spawn?
Ie do zombies attack people
They just spawn, ATM we cant attach any actions.
Quote Originally Posted by NotRealPro View Post
Do they spawn and keep their actions, or do they just spawn?
Ie do zombies attack people
Its only visual.

Work out what to send to the server with it and then you got yourself working models
Quote Originally Posted by NotRealPro View Post
Do they spawn and keep their actions, or do they just spawn?
Ie do zombies attack people
you can apply a specific action to the model spawned, i'm still looking into how SFX ID's work though, at this moment in time, this is the basic form of it that is client side only, although you can use this to reach high places


Quote Originally Posted by Sneak84 View Post
It is possible to make it work for Cross Fire? If yes, what to include in project? Would be this sdk work? Sorry if something wrong, i'm from another section.
you can use that SDK or you can use a NOLF2 sdk, either will work


Quote Originally Posted by ac1d_buRn View Post


Its only visual.

Work out what to send to the server with it and then you got yourself working models
^^ He's right. you just need a S2S ID to get it sent to server to show everywhere.
Quote Originally Posted by supercarz1991 View Post
you can use that SDK or you can use a NOLF2 sdk, either will work
Thanks, i'll try. Main problem is that too much .h files and i can't understand what to include in main.cpp to make it work. Never used sdk, thats why. But ok, i'll try to figure out.
It is possible to make it work for Cross Fire? If yes, what to include in project? Would be this sdk work? Sorry if something wrong, i'm from another section.
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?