Changing origins

This is exactly as i do it.

U will need: Cannonfodder's model decompiler to install this put the .exe into your sourcesdk\bin\ep1\bin.

http://www.wunderboy.org/apps/guistudiomdl2.php to compile the .qc file. read the readme in the download to learn how to use.

[b][u]Decompile[/u][/b] 1.Decompile the model you want, choose output directory as desktop and make sure only 'Dump Old Unweighted SMD's' and 'Do not fix rotations on animations' are checked. Refer to screenshot A. This will create all the .smd files and a .qc file that make up the .mdl file that you just decompiled.

  • Note, Cannonfodder's model decompiler doesn't like complicated directories so if you get an error when decompiling try changing one of the directories. Also if you are having trouble installing the decompiler double check it is in the right place, if you're 100% sure its in the right place and it still does'nt work then try reinstalling Source SDK by right clicking it in the tools tab, deleting it and installing again.

[b][u]Edit the .qc file[/u][/b] 2.Open the .qc file with Notepad

3.Replace with CTRL-H (usually) and in the Find box type 'fps' and replace with 'snap rotate -90 fps' (without the ' marks) Refer to screenshot B

4.Type '$origin x y z' without the ' marks. x moves the model further or away from you, y moves the model left or right and z moves the model up or down. so replace x y or z with numbers. for example you would type '$origin 2 2 -2' (without '). i put mine at the top. it goes from -6 to 6 Refer to screenshot C

5.save the .QC file.

(at this point make sure you have installed sourcesdk from steam. you will also need to open Sourcesdk from the Tools section in Steam and select counterstrike source from the drop down list whenit has loaded up)

[b][u]Compile[/u][/b] To compile the .qc file it needs to be in the same folder as its associated .smd files. This can be done by either: 6. Install GUI StudioMDL 2.2 and set the correct directories by following the readme that comes in the download. Load the .qc file by going to File > Load QC file.... Set the correct target mod (counterstrike source) by clicking the drop down menu. Click the Compile button to get it started. If there is an error during compiling it will stop and tell you.

OR

open C:\Program Files\Valve\Steam\SteamApps\youraccountname\sourcesdk\bin and find studiomdl.exe. now drop your .qc file onto it. Refer to screenshot D

and thats it. it sends the models to the right place so next time you play css the changes will have been made.

NOTE: there are limitations imposed by CS:Source on the positioning of the model. if the model is too close or far etc from you, you'll get a consistency error. p.s some models are harder to get the way you want more than others.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • moromo's Levels
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted 3 years ago

    10/10 Thanks!

    Bananite
  • Hybrid Refrigerator's Levels
    • P1: Beggar
      Points: 140
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 4 years ago

    Pros: Very good guide! I can now edit origins all by myself and it works every time! Cons: Some problems with the MDLDecompiler, the one in the link isn't the patched one and doesn't work for me. Also the screenshots don't work for me. Improvements: Update the guide with new links and new screens. Notes: Thanks :D

  • Mura558's Levels
    • P2: Drudge
      Points: 2,223
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 4 years ago

    Sounds like a dodgy decompile, try decompiling again, if that doesnt work try decompiling with the file in a different location. the mdldecompiler gets confused easily if the location of the file is complicated.

    Bananite
  • Snix's Levels
    • P1: Beggar
      Points: 325
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 4 years ago

    Uhm.. i open mddecompiler.qc with notepad, and all i see is space. it's blank. any tips?

    Slap my ass and call me Sandy
  • JuiCE~'s Levels
    • P2: Drudge
      Points: 1,660
    • E1: Helper
      EF: 7
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 4 years ago

    Where's the vtex folder?

    User Title
    Thanks Joshh for ripe!
  • Pr0ph3cy's Levels
    • P1: Beggar
      Points: 911
    • E1: Helper
      EF: 1
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 4 years ago
    Posted by Rctic Umm...I loaded the qc file AND THERES NOTHING THERE. NO TEXT WHATSOEVER...Halp plox :)

    lol, im such a noob...i didnt open it in notepad...

    User Title
    Formerly "Rctic".
  • LolzMan1325's Levels
    • P2: Drudge
      Points: 4,236
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 4 years ago

    Decompiler isn't working. it says it can't find something in the dll file.

    User Title
    Making Life Awesome Everyday
  • bushmasta101's Levels
    • P2: Drudge
      Points: 2,041
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 4 years ago

    Thanks for this tutorial. this truly helped me out

    User Title
  • Ratchett's Levels
    • P1: Beggar
      Points: 119
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 4 years ago

    Oh thanks :) now we just need a program that where you can origins by moveing it and then save a text of it. like that one to gmod "iron sight origins" or something. eney ways now i don't need to use xvi32 to skin a weapon 8)

    mapper and skiner
  • Pr0ph3cy's Levels
    • P1: Beggar
      Points: 911
    • E1: Helper
      EF: 1
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 5 years ago

    Umm...I loaded the qc file AND THERES NOTHING THERE. NO TEXT WHATSOEVER...Halp plox :)

    User Title
    Formerly "Rctic".

Credits

Submitter
Mura558's Levels
  • P2: Drudge
    Points: 2,223
  • C1: Member
  • A6: Elder
    Account Age: 7 years
Mura558 (Creator/Co-creator)
Key Authors
mura558
Unknown

Rating

9.3/10
Based off 29 rating(s)

Additional Info

Genre
Compiling, Modelling
Difficulty Level
Beginner

Stats

Post Count
82
ViewCount
20,961
Date Added
7 years ago
Date Modified
4 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share