Model Rescaling

Discussion in 'Mapping Questions & Discussion' started by Joel, Dec 4, 2017.

  1. Joel

    Joel L1: Registered

    Messages:
    23
    Positive Ratings:
    21
    I understand that rescaling a prop static isn't possible, but rescaling a prop dynamic is possible, although it doesn't rescale its hitbox, which is not my desired result. So is there a way to possibly rescale a prop (probably using a model editing software) while also rescaling it's hitbox?
     
  2. VEssex

    VEssex L2: Junior Member

    Messages:
    76
    Positive Ratings:
    58
    Decompile your desired model by extracting from the .vpk using GCFScape, then using Crowbar to input an .mdl file to output it’s decompiled contents.

    Go into the .qc file of the decompiled files using a text editor,

    Add the command “$scale” just after “$modelname” and remove “$cbox” and “$bbox” commands.

    Change $modelname parameters so it’s name doesn’t conflict with the original model.

    Recompile and drop the .mdl and all other files the compiler output into ...tf/models/[$modelname directory], and you have a rescaled model with rescaled hitbox.
     
    • Like Like x 2
  3. Joel

    Joel L1: Registered

    Messages:
    23
    Positive Ratings:
    21
    Where am I to find the desired model's vpk file? I'm looking for the badlands spire, quarry_rockpike is what it's named in hammer.
    Edit: Found it, extracted it, decompiled it, added the $scale to that of 10, removed the $cbox and $sbox commands and changed the name, recompiled it and dropped the model within the folder, but when I placed it within the map, it's vphysics hitbox was mirrored along the z(?) axis so it wasn't functional as desired. I don't understand why this happened and I'd like some help.
     
    Last edited: Dec 5, 2017
  4. Fragancia

    Fragancia L2: Junior Member

    Messages:
    85
    Positive Ratings:
    29
    Delete the phy file you got from compiling and use the original models phy file
     
  5. VEssex

    VEssex L2: Junior Member

    Messages:
    76
    Positive Ratings:
    58
    Make sure $scale is before everything except $modelname, if that doesn’t work, take a screenshot of the model and it’s collision mesh via browser in hammer or HLMV.