eItems
eItems copied to clipboard
Ways to download sprays.
Сan not pump itself picture spray (.vtf), if the text (.vmt) you can specify the path to the picture which is in the game (in the archive .vpk),
In parse.sp the line Format(szMaterialPath, sizeof(szMaterialPath), "decals/eitems/sprays/%s", szMaterialPath);
replace it with
Format(szMaterialPath, sizeof(szMaterialPath), "decals/sprays/%s", szMaterialPath) Архив WinRAR.zip
Hello,
will update this in future version. I planned this some time ago, but Im hella busy at this moment.
@ESK0, as the sprays download system will change to use directly from the game, .vpk
I believe this will change automatically in the future, but I'll leave it registered here.
I noticed that the configuration of the .vmt
of eItems sprays, their size is bigger than the official sprays, there is a print showing both.
In this case it would be possible in future updates to leave the size the same, so I noticed that everyone's decalscale
is the same.
LightmappedGeneric
{
"$basetexture" "csgoitemsv2\sprays\krakow2017\pgl_graffiti"
"$translucent" "1"
"$decal" "1"
"$decalscale" "0.125"
}
I believe "$decalscale" "0.12"
would be good for everyone, I haven't tested it in this case.
I did a test with this same spray, changed it to the following configuration:
LightmappedGeneric
{
"$basetexture" "csgoitemsv2\sprays\krakow2017\pgl_graffiti"
"$translucent" "1"
"$decal" "1"
"$decalscale" "0.09"
}
It's perfect with this "$decalscale" "0.09"
, it's the same size. I'm just going to apply this change to all sprays and test it too.
[EDIT] I tested this decalscale change on all sprays, it was perfect.
Hi,
thanks for testing.. the original texture is so huge.. and 0.125 was the best looking for me. Unfortunately I didnt have any spray to compare.
@ESK0 it worked now
Any news on the change in spray download format? Just change the line mentioned above: https://github.com/ESK0/eItems/blob/9b94d135e6fc96a56ec7b71ece4ba90f7c933680/scripting/files/parse.sp#L864
For:
Format(szMaterialPath, sizeof(szMaterialPath), "decals/sprays/%s", szMaterialPath)
I would like to implement eItems in the spray plugin I currently use, but let less download of official valve sprays as possible, only custom sprays even send the .vmt
and .vtf
files for players to download.
@z1ntex I made this change in eItems and I'm using the plugin eSprays, but even so the sprays have a black dot.
Apparently the .vmt
file is missing to show the spray correctly. Did I miss something? Need any more modifications to eItems or eSprays?
Every help is welcome.
Note: Versions I'm using with changes.
https://github.com/crashzk/eItems https://github.com/crashzk/eSprays
I made the changes, but even so we still need at least the .vmt
files on the server for the players to download and the sprays to work.
If there is some way to use the sprays without errors, without needing the .vmt
I think that would be better, so we can avoid a long list of downloads of the .vmt
files of the sprays.