AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Use parts of a sprite collage (https://forums.alliedmods.net/showthread.php?t=307043)

GoldNux 04-24-2018 10:27

[HELP] Use parts of a sprite collage
 
I would like to know how to use a section of a sprite collage.
For example "640hud1.spr" contains many different pictures of weapons.
Instead of cutting out what I need and create new sprite files I would like to use the existing one.

If someone could teach me this I would be very grateful.

klippy 04-24-2018 11:40

Re: [HELP] Use parts of a sprite collage
 
For what do you want to use it?

GoldNux 04-24-2018 13:12

Re: [HELP] Use parts of a sprite collage
 
Quote:

Originally Posted by KliPPy (Post 2589173)
For what do you want to use it?

I'm trying to put together a plugin that displays a sprite above each players head to indicate if he or she is carrying a grenade.
I would like to learn how to do this so that I can make something like this:
https://forums.alliedmods.net/showthread.php?t=306558

I am currently taking appart the good work of Natsheh to try and learn.

klippy 04-24-2018 13:27

Re: [HELP] Use parts of a sprite collage
 
I think the feature is only supported for some HUD features like WeaponList, StatusIcon, Scenario. The "cutting" is done by the client using the configuration from .txt files in the sprites directory, you can't do it for any sprite.

GoldNux 04-24-2018 14:19

Re: [HELP] Use parts of a sprite collage
 
Quote:

Originally Posted by KliPPy (Post 2589190)
I think the feature is only supported for some HUD features like WeaponList, StatusIcon, Scenario. The "cutting" is done by the client using the configuration from .txt files in the sprites directory, you can't do it for any sprite.

Ok thank you my friend, I will do some work cutting in PS then.


All times are GMT -4. The time now is 04:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.