Source → GoldSource

A Tutorial for GoldSrc Engine

Updates

TutorialParentSubmitterStats
  • Improvement General improvements.
  • Amendment Grammatical fixes.
  • Amendment Updated links.
  • Improvement Included a contributor's suggestion.

That should be all, but looking back after a year, only thing I see is that this has been done before, and has been done after me.

Never change GameBanana, never change.

Enjoy.

(early) 1-Year Anniversary Update 9mo

A(n updated) porting guide.

2/17/18 edit- This is an updated version of the original article I posted.

I used CrowbarMS3D, and Notepad++. As MilkShape 3D is not free software, a suitable alternative has to be found if you do not own a copy.

For this example, I'm porting the shotgun from Half-Life 2. First, I gathered all the model files. 

I put them into a folder structured like this:


After that, I opened up Crowbar and set up the menu like this:


After decompiling, your files should look like this:



Then go into MS3D > File > Import > Half-Life SMD your Reference model. DO NOT rename your bones!

At this point however, were going to need the textures to make this work. Locate those and convert them to .bmp files with a indexed, 256-colour palette. Be sure that all image files have sizes that are a power of 2 and under 512x512! (Exception if your compilers support larger files, i.e. Xash).

It should look like this when you're done:


(But move them (the textures?) to your final folder! And be sure to select them in MS3D through your final folder!)

Back into MS3D and go to your Materials section. Select your textures and if you did it correctly, it should look like this:


After that, export as a Reference and move to your final folder. Move all your animations into your final folder as well.

I have no idea what I was talking about here originally, but to quote THePrince,
"...just compile the model [normally], then open MS3D, go to Tools - Karisto's HL MDL Decompiler, uncheck everything except Sequence SMDs (leave it checked) browse the model directory, and decompile... if you try to import the animations on MS3D now, they should work".

Also, what was I going on about here too initially? Half-Life 2 by default uses a viewmodel FOV (that Half-Life 1 lacks) and a different default_fov.

Here's the finished result:


Hope you enjoyed! Post here or PM me for any comments/concerns.

First tutorial here, don't kill me!
Sign up to access this!

Posts

  • mikutron avatar
    mikutron Joined 1y ago
    Offline
    1y
    hey man. nice tutorial. i have a little problem. the bmp is 1024x512 texture too large
    i resize to 512x256 and compile. all model in black similar to chrome
    how do i fix? i need this model :v
    Bananite
    URL to post:
  • FunnkyHD avatar
    FunnkyHD username pic Joined 3y ago
    in the shadows
    CS:GO Ports Flag Affiliation: CS:GO Ports
    887 points Ranked 5943rd
    29 medals 5 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Submitted 100 Skins Medal icon
    • 10 submissions featured Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    2y
    Posted by James Luke

    I use Photoshop to convert, and IrfanView if I want to batch convert.

    What do you mean? You can extract the .vtf file and export them as a .bmp then convert to 256-colour palette. Is that what your asking for?
    1. Open vtf file
    2. Export as bmp file
    3. Resize to 512x512 (if needed) and then make it indexed
    URL to post:
  • James Luke avatar
    James Luke Joined 3y ago
    Offline
    776 points Ranked 6648th
    2y
    I use Photoshop to convert, and IrfanView if I want to batch convert.

    What do you mean? You can extract the .vtf file and export them as a .bmp then convert to 256-colour palette. Is that what your asking for?
    GoldSource Programmer
    URL to post:
  • Powerminecraft avatar
    Powerminecraft Joined 4y ago
    Offline
    938 points Ranked 5626th
    8 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Thanked 5 submitters Medal icon
    • Returned 100 times Medal icon
    2y
    So... How i can port only textures?
    Praise Tatueugen!! avatar
    Mantra
    Praise Tatueugen!!
    URL to post:
  • FunnkyHD avatar
    FunnkyHD username pic Joined 3y ago
    in the shadows
    CS:GO Ports Flag Affiliation: CS:GO Ports
    887 points Ranked 5943rd
    29 medals 5 legendary 5 rare
    • 30 submissions featured Medal icon
    • Returned 5000 times Medal icon
    • Reached 100 subscribers Medal icon
    • 2017 Top Contributor Medal icon
    • Submitted 100 Skins Medal icon
    • 10 submissions featured Medal icon
    FunnkyHD avatar
    FunnkyHD
    CS:GO Ports Flag
    Affiliation
    CS:GO Ports
    2y
    That's exactly how i do it . Anyway , use Photoshop to make indexed BMPs
    URL to post:
  • James Luke avatar
    James Luke Joined 3y ago
    Offline
    776 points Ranked 6648th
    2y
    Updated the download link.

    Thanks for sharing that.
    GoldSource Programmer
    URL to post:
  • Viper1337 avatar
    Viper1337 username pic Joined 2y ago
    Probably dead
    Wasteland Rebels Flag Affiliation: Wasteland Rebels
    2,564 points Ranked 2018th
    23 medals 1 legendary 2 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • 10 submissions featured Medal icon
    • Submitted 5 Models Medal icon
    • One month a member Medal icon
    • Received thanks 5 times Medal icon
    Viper1337 avatar
    Viper1337
    Wasteland Rebels Flag
    Affiliation
    Wasteland Rebels
    2y
    Do NOT download crowbar from therazzerapp.de, it is outdated, download this one instead.

    EDIT: Editing the animations in MS3D is fairly simple , just compile the model with the way you showed, then open MS3D, go to Tools - Karisto's HL MDL Decompiler, uncheck everything except Sequence SMDs (leave it checked) browse the model directory, and decompile... if you try to import the animations on MS3D now, they should work
    • Helpful x 2
    • Thanks x 2
    • Win x 1
    • Interesting x 1
    URL to post:
  • X RaY avatar
    X RaY username pic Joined 4y ago
    RECHARGING...
    Black Mesa Inc. Flag Affiliation: Black Mesa Inc.
    15,507 points Ranked 289th
    35 medals 2 legendary 6 rare
    • Submitted 100 Sounds Medal icon
    • 30 submissions featured Medal icon
    • Submitted 50 Sounds Medal icon
    • 10 submissions featured Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    X RaY avatar
    X RaY
    Black Mesa Inc. Flag
    Affiliation
    Black Mesa Inc.
    2y
    Hey this is a nice tutorial. Thanks
    Another Black Mesa Fan <3
    URL to post:
  • Ezequiel-TM avatar
    Ezequiel-TM username pic Joined 4y ago
    MUGEN Manager HL Manager SC Manager CS1.6 Manager CS:CZ Manager
    you see
    ?
    Life Tree Flag Affiliation: Life Tree
    2,307 points Ranked 2384th
    46 medals 4 legendary 13 rare
    • Submitted 100 Skins Medal icon
    • 30 submissions featured Medal icon
    • 2017 Top Contributor Medal icon
    • Returned 5000 times Medal icon
    • Submitted 50 Skins Medal icon
    • Returned 1000 times Medal icon
    Ezequiel-TM avatar
    Ezequiel-TM
    Life Tree Flag
    Affiliation
    Life Tree
    2y
    Uff... A little long but useful, maybe use it in the future

    9.7

    Synonym of quality avatar
    Mantra
    Synonym of quality
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
James Luke
James Luke Joined 3y ago
Offline
776 points Ranked 6648th
Everything.

Submitter

James Luke avatar
James Luke Joined 3y ago
Offline
776 points Ranked 6648th

James Luke
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • Today's Pick Mar 13 2017
  • 2.6k Views
  • 10 Posts
  • 2ySubmitted
  • 9moModified
  • 9moUpdated

Scores

87 bScore
9.6 Rating

2 voters

Sign up to access this!

More Other/Misc Tutorials

bcp.crwdcntrl.net tracking pixel