Thread: Model Spawner

Results 1 to 11 of 11
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,321
    My Mood
    Doh

    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
    Last edited by supercarz1991; 07-08-2012 at 08:57 PM.

    commando: You're probably the best non-coder coder I know LOL


  2. The Following 8 Users Say Thank You to supercarz1991 For This Useful Post:

    [MPGH].REZ (07-08-2012),[MPGH]Flengo (07-08-2012),Flengo Jr. (07-11-2012),FR1GHT (07-08-2012),ParkII (07-08-2012),pDevice (07-08-2012),PikaMucha_Itu (07-10-2012),Sneak84 (07-09-2012)

  3. #2
    juggalo200's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    174
    Reputation
    10
    Thanks
    368
    My Mood
    Relaxed
    hmmm is some one gonna make this and make it pub or what ??

  4. #3
    pDevice's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Location
    d3d9.h
    Posts
    1,306
    Reputation
    15
    Thanks
    337
    My Mood
    Stressed
    WOW nice feature thanks!



  5. #4
    Ninguém pode ser perfeito, mas todos podem ser melhores
    MPGH Member
    ParkII's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Andressa's Heart
    Posts
    1,377
    Reputation
    61
    Thanks
    406
    My Mood
    Yeehaw
    OLD, but GOLD

  6. #5
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    Oh... why release it?
    It never worked right xD

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  7. The Following User Says Thank You to Ch40zz-C0d3r For This Useful Post:

    wraithkilla (07-09-2012)

  8. #6
    NotRealPro's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    1
    Do they spawn and keep their actions, or do they just spawn?
    Ie do zombies attack people

  9. #7
    Sneak84's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    18
    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.

  10. #8
    Ch40zz-C0d3r's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    839
    Reputation
    44
    Thanks
    400
    My Mood
    Twisted
    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.

    Progress with my game - "Disbanded"
    • Fixed FPS lag on spawning entities due to the ent_preload buffer!
    • Edit the AI code to get some better pathfinding
    • Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
    • Added a new silencer for ALL weapons. Also fixed the rotation bugs
    • Added a ton of new weapons and the choice to choose a silencer for every weapon
    • Created a simple AntiCheat, noobs will cry like hell xD
    • The name will be Disbanded, the alpha starts on the 18th august 2014



    Some new physics fun (Serversided, works on every client)



    My new AI
    http://www.youtube.com/watch?v=EMSB1GbBVl8

    And for sure my 8 months old gameplay with 2 friends
    http://www.youtube.com/watch?v=Na2kUdu4d_k

  11. #9
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    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

  12. #10
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,321
    My Mood
    Doh
    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.

    commando: You're probably the best non-coder coder I know LOL


  13. The Following User Says Thank You to supercarz1991 For This Useful Post:

    Sneak84 (07-09-2012)

  14. #11
    Sneak84's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    89
    Reputation
    10
    Thanks
    18
    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.

Similar Threads

  1. Combat Arms model spawner [Minecraft-like]
    By Ch40zz-C0d3r in forum Combat Arms Video Sharing
    Replies: 23
    Last Post: 07-31-2012, 03:37 PM
  2. Under marien without losing models!
    By wesjj in forum WarRock - International Hacks
    Replies: 4
    Last Post: 06-26-2007, 01:11 AM
  3. Final Fantasy Level Modeling
    By Dave84311 in forum General
    Replies: 0
    Last Post: 12-14-2006, 10:59 PM
  4. Model One
    By Chronologix in forum Art & Graphic Design
    Replies: 6
    Last Post: 02-05-2006, 02:53 PM
  5. Questions about making colored models
    By zelda803 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 02-04-2006, 07:36 PM