model
Is it possible to make (in this case shero) with model that will be defined trough cvar instead of being hardcoded?
|
Re: model
#define MODEL_NAME "models/player/model_name"
|
Re: model
wouldnt that make it hardcoded?
i want i to be compiled only once, but yet able to use different models by just changing the location and file name in cvars. |
Re: model
I think you can do it with a cvar?
|
Re: model
Quote:
Code:
|
Re: model
yeah i tried that and it did compile fine but my server wouldn't accept it, tells its a bad string or something, so i figure it wants that string is a constant. So what i need is a way of getting the cvar and then declaring the model variable as a constant. I tried something like that but compiler wouldnt let me do that.
As of that i have come to a question, can i pass that variable down to other methods without making it global? Please give me an example as well as explanation. In java it would look something like this. Code:
class someclass |
Re: model
You can
PHP Code:
|
Re: model
Ok how exactly would that work?
declaring a constant array named Model_Name then there is unexplained [] and then in curly braces you have the string it self. Wouldnt that be the same as new const MODEL_NAME [33] = {"models/player....."} ? |
| All times are GMT -4. The time now is 13:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.