1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

MPF Models

Discussion in 'Discussion' started by Spy, Feb 14, 2014.

  1. Spy

    Spy Court Jester Clockwork Customer

    I'm pretty new to coding and CW. But I've been trying to change the default MPF models to the HD ones in Metro police pack. Oh and how do I get the model to automaticly change when you're put into a new divison eg. MPF.UNION.01.00000 to MPF.APEX.00000 < I would want the model to change.
     
  2. NigroWave

    NigroWave I am an HL2RP Server Owner, and Learning Lua Coder


    You may have to modify this code a bit:


    -snip-

    Say you wanted the RCT to start with a custom model from the addon you'll have to make a new line and put this in under cwhl2rp/schema/sv_hooks.lua
    This is saying:
    Alright, so if the player has the tag "RCT" in their name, then set the player model to this: models/dpfilms/ blah blah blah


    -snip-


    If the models turn out to be a T-Pose then just add this in to sh_schema.lua
    This is basically telling the schema to include animations to the models, so that it walks, runs, jumps, and crouches properly.

    Code:
    Clockwork.animation:AddCivilProtectionModel("THE MODEL PATH YOU WANT");
    
    HOPE THIS HELPED
     
  3. Spy

    Spy Court Jester Clockwork Customer

    I did what NG said and it worked error free, thanks a ton man! ;D

    Now this might seem simple, but how you change a units name when they make it. etc MPF-RCT.XXXXX
    by default, but I want it as CX.CCA-RCT.XXXXX.

    Thanks.
     
  4. EMP

    EMP

    The problem now is that when ever you update your schema, you'll have to retransfer that code into it. Its far simpler/lesstime consuming if you do it in a plugin.
     
  5. NigroWave

    NigroWave I am an HL2RP Server Owner, and Learning Lua Coder

    I'm not quite sure... I think you have to do it manually. Maybe theres a plugin that does it? Im not quite sure other than you have to do it manually
    /charsetname <string name> <new name>
     
  6. NigroWave, you need to read up on the rules.

    [quote author=kurozael]When giving Clockwork advice or support, never encourage people to edit the framework. Everything is possible with a plugin.[/quote]
    http://forums.cloudsixteen.com/index.php?topic=2827.0

    You are causing more problems than you are solving in the long run when you encourage modification of the framework or schema.
     
  7. NigroWave

    NigroWave I am an HL2RP Server Owner, and Learning Lua Coder

    Sorry, duck :( ill read...
     
  8. I love how I don't get snipped anymore.
    I just get my entire post deleted.

    Anyways, uh - I dunno. There's a few plugins that say, "MPF model fix," or whatever.
     

Previous Readers (Total: 0)