Help Me Optimize?
1 Attachment(s)
Hi everyone. This has been a project of mine for more than a year now and I humbly seek help optimizing it. It adds an extra weapon in CS 1.6, no surprise there. But I wanted it to behave like a real CS weapon in every way. Now that it's working smoothly in-game I wanted to get it as optimized as possible, something I'm not good at. It's a mish-mash of code I've found around the net so that's why its pretty non-efficient so I hope you could help me.
Please bear with me. I'm not a very good coder and I might ask you to explain things further. For that I apologize in advance. I think the first order of business is getting rid of fakemeta_util. I know, f*ck me, right? But there's a ton of code relying on that module and I have no idea what to replace some if them with... |
Re: Help Me Optimize?
Moving on from fakemeta_util is like the best and easiest choice.
Code:
There's obviously a way to convert give_item to engine and Fakemeta but it's harder. |
Re: Help Me Optimize?
Did I do it right?
From: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Help Me Optimize?
Quote:
Code:
|
Re: Help Me Optimize?
Thanks. So that's why it can't change the world model. Would engine be a lot better? Someone told me the fewer modules I use the better.
Hmm, when I switch weapons thirdperson, the Bizon player model doesn't go away. Like if I switch to my knife my player holds both knife and bizon. Same goes with pistols etc... |
Re: Help Me Optimize?
Quote:
PHP Code:
PHP Code:
Quote:
|
Re: Help Me Optimize?
Hey it works! Player model is now in order. So I guess I'll be using engine as well.
Will come back after dinner. There's still a couple of codes that needs replacing in order for me to get rid of fakemeta_util. All of them with prefix "xs_"... |
Re: Help Me Optimize?
Quote:
|
Re: Help Me Optimize?
1 Attachment(s)
Quote:
I guess the next stage is the flow of the plugin itself. Just curious: What's up with fakemeta_util? Why does it have some functions of other modules and why is it avoided like the plague?... |
Re: Help Me Optimize?
Quote:
|
| All times are GMT -4. The time now is 20:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.