Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework skins management #98

Closed
TheDoctor0 opened this issue Dec 18, 2020 · 19 comments
Closed

Rework skins management #98

TheDoctor0 opened this issue Dec 18, 2020 · 19 comments
Assignees
Projects

Comments

@TheDoctor0
Copy link
Owner

TheDoctor0 commented Dec 18, 2020

  • Merge default cs:go models with skin models
  • Implement universal script to compile models with selected skins and generate csgo_skins.ini
@TheDoctor0 TheDoctor0 self-assigned this Dec 18, 2020
@TheDoctor0 TheDoctor0 added this to To do in 2.4 Dec 18, 2020
@TheDoctor0 TheDoctor0 moved this from To do to In progress in 2.4 Dec 18, 2020
@popilas
Copy link

popilas commented Dec 18, 2020

Nice updates i see.. When release 2.4 ? :D nice

@TheDoctor0
Copy link
Owner Author

Soon, but I need to still fix a crash issue with molotov extinguishing.

@popilas
Copy link

popilas commented Dec 18, 2020

maybe you can do it in a few days, thanks , I think with molotov can do limit one each round

@TheDoctor0
Copy link
Owner Author

Nades are limited only by buy-time both in CS 1.6 and CS:GO, so I don't think that's a good idea.

@popilas
Copy link

popilas commented Dec 18, 2020

Nades are limited only by buy-time both in CS 1.6 and CS:GO, so I don't think that's a good idea.

but in video he buy 2 time molotov

@TheDoctor0
Copy link
Owner Author

It's only for testing purposes. Normally it doesn't work that way.

@popilas
Copy link

popilas commented Dec 20, 2020

Hello, when i delete all your skins from csgo_skins.ini and i wanna add own skins not sub-models
Like:
"Bayonet | Black Laminate" "models/csgo_ozone_v2/knife/v_bayoblacklaminate.mdl" "0" "350" "1" "1"
When skins enable server crash with log
SV_ModelIndex: SV_ModelIndex: model models/csgo_ozone_v2/knife/v_knife_0.mdl not precached
:/

@TheDoctor0
Copy link
Owner Author

New skins management has not been yet tested by me, that's why this issue is still open.

@popilas
Copy link

popilas commented Dec 20, 2020

oh. okey. i just need make from 1.4 version csgo_mod.sma to do 2.3 version csgo_core do
new const defaultModels for deflaut to csgo skins..

@TheDoctor0 TheDoctor0 moved this from In progress to Done in 2.4 Dec 27, 2020
@popilas
Copy link

popilas commented Dec 28, 2020

How I can fix this in 2.4 version
Skins Enabled
SV_ModelIndex: model models/csgo_ozone_v2/m249/v_m249_0.mdl not precached
SV_ModelIndex: model models/csgo_ozone_v2/m3/v_m3_0.mdl not precached
SV_ModelIndex: model models/csgo_ozone_v2/sg552/v_sg552_0.mdl not precached

@TheDoctor0
Copy link
Owner Author

Set newly added csgo_default_skins cvar to 0.

@popilas
Copy link

popilas commented Dec 28, 2020

Set newly added csgo_default_skins cvar to 0.

I do it
bind_pcvar_num(create_cvar("csgo_default_skins", "0"), defaultSkins);
But problems still are
model models/csgo_ozone_v2/m249/v_m249_0.mdl not precached

@TheDoctor0
Copy link
Owner Author

Set it in csgo_mod.cfg and use amx_cvar csgo_default_skins command to check the value.
It should work fine:
20201228191027_1

@popilas
Copy link

popilas commented Dec 28, 2020

Ok but i wanna fix this with csgo_default_skins 1 ......
When i go to csgo_skins.ini and add
"Orginal" "models/csgo_ozone_v2/m249/v_m249_0.md.mdl"
When work. But i wanna delete all csgo_skins.ini and add self skins,
one word Then you delete sample " v_knife_0 or v_awp_0 " i mean sub models server crash with error not precached.

@TheDoctor0
Copy link
Owner Author

TheDoctor0 commented Dec 28, 2020

Default cs:go models have been merged with skin models (first submodel in the first model).
It's impossible to use csgo_default_skins "1" if you want to remove v_{weapon}_0.mdl models.

Skin management has been described in detail in this instruction.
Select only the skins that you want to use, add any other models that you want to use and recompile skins (that will also generate new csgo_skins.ini).

@popilas
Copy link

popilas commented Dec 28, 2020

that’s all i wanted, but the easiest way for me is version 1.4... ech

@TheDoctor0
Copy link
Owner Author

To be honest, right now I don't even know what are you trying to achieve.
Previously you said that you don't want to have default cs:go skins and now you don't want to disable them by csgo_default_skins cvar - which is pretty much exactly like it worked in version 1.4.
With default skins disabled you can remove everything from csgo_skins.ini and add any models that you want.

@popilas
Copy link

popilas commented Dec 28, 2020

if saying i want everything that is like version 1.4 but with 2.4 updates.
No i say i wanna deflaut skins and csgo skin only delfaut not skins. Ech never mind i try fix but im poor in scripting.
What i want like 1.4 mod.
if i fail i will use it 1.4 and I will need to translate it into English.

@TheDoctor0
Copy link
Owner Author

Well, if you would be more specific from the beginning I would not have wasted a lot of time.
I added the ability to disable submodels support (#100) by uncommenting a flag, so it will work the same as in 1.4.

This is not included in the release yet, so you need to download the whole repository.
Remember to upload a new models directory and Unprecacher list to your server.
Of course, you also need to compile core plugin by yourself after uncommenting this new flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
2.4
Done
Development

No branches or pull requests

2 participants