Admer456 / halflife-smoke

HL1 but with CS2-style interactive smoke
Other
17 stars 1 forks source link

How do i transfer to my hl src code? #2

Open theOneTrueFunniBoi opened 8 months ago

theOneTrueFunniBoi commented 8 months ago

Hello. I was wondering how I would be able to port these code changes to my own mod's source code (and if i have permission, of course).

Admer456 commented 8 months ago

Hai, first off I wouldn't exactly recommend it in its current state, due to transparency/sorting issues, but if you really wanna, you can start by copying over the files that are unique to this codebase, such as everything in cl_dll/smokesim/*

Those files alone won't do anything, you still gotta actually hook them up to the existing HL clientside code, and you can see how that's done by looking at this commit here: a4296157e275c8f4941373b7bc1ac9f0830f9889

You may need to enable C++17 support in your project properties too.

Also don't worry, if I put something on GitHub, permission is automatically implied.

theOneTrueFunniBoi commented 8 months ago

Alright, thanks. I just thought it was a really cool addition to the game.

theOneTrueFunniBoi commented 8 months ago

Although, it’s possible that I did it wrong but when I tried to set it up (before making this comment), it threw 45 errors. Oh well.

Admer456 commented 8 months ago

What errors exactly?

theOneTrueFunniBoi commented 8 months ago

ok i implemented the code the way the commit says, and these are the errors:

image image image

and a couple repeats.

(btw im implementing this into spirit of half life 1.8 alpha 1)

Admer456 commented 8 months ago

Oohhh yeah you're gonna have to do things here'n'there to make that work. I don't remember any off the top of my head, we could look into this in more detail tomorrow. BTW that's Spirit of Half-Life 1.8 you're probably talking about.

theOneTrueFunniBoi commented 8 months ago

Yeah, alpha 1 is the vc 2010 version.

theOneTrueFunniBoi commented 8 months ago

We gonna try and do this or?