Skip to content

Ways to download sprays. #5

Open

Description

@z1ntex

С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

Activity

  1. ESK0 commented on Dec 2, 2021

    @ESK0
    Owner

    Hello,

    will update this in future version. I planned this some time ago, but Im hella busy at this moment.

  2. crashzk commented on Dec 11, 2021

    @crashzk
    Contributor

    @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.

    image

    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.

  3. crashzk commented on Dec 11, 2021

    @crashzk
    Contributor

    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.

  4. ESK0 commented on Dec 12, 2021

    @ESK0
    Owner

    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.

  5. hanicsgo commented on Jan 15, 2022

    @hanicsgo

    @ESK0 it worked now

  6. crashzk commented on Apr 22, 2022

    @crashzk
    Contributor

    Any news on the change in spray download format? Just change the line mentioned above:

    Format(szMaterialPath, sizeof(szMaterialPath), "decals/eitems/sprays/%s", szMaterialPath);

    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.

  7. crashzk commented on May 24, 2023

    @crashzk
    Contributor

    @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

  8. crashzk commented on May 25, 2023

    @crashzk
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions