AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved custom sprite (https://forums.alliedmods.net/showthread.php?t=337330)

kww 04-14-2022 10:54

custom sprite
 
Is there some way to draw custom weapon sprite in killfeed? Or this can be achieved only with "sprites/hud.txt" change.
Seen this in CS:Extreme and wanted to make it

hellmonja 04-17-2022 10:11

Re: custom sprite
 
You need to do both. I assume you have the sprite already made.

In hud.txt you need to give that sprite a name you can call and set the numbers and stuff.

In the plugin, hook into DeathMsg. When certain conditions are met (ie. player is killed by this weapon or player is last shot in a certain body part) it swaps sprite with your custom one.

Refer to this plugin if that wasn't clear enough. It also uses custom kill feed sprites. The source code is available inside...

kww 04-17-2022 12:55

Re: custom sprite
 
Quote:

Originally Posted by hellmonja (Post 2777043)
You need to do both. I assume you have the sprite already made.

In hud.txt you need to give that sprite a name you can call and set the numbers and stuff.

In the plugin, hook into DeathMsg. When certain conditions are met (ie. player is killed by this weapon or player is last shot in a certain body part) it swaps sprite with your custom one.

Refer to this plugin if that wasn't clear enough. It also uses custom kill feed sprites. The source code is available inside...

that's sad because we can't propagate custom hud.txt. And there are no workarounds? Thanks for answer


All times are GMT -4. The time now is 21:22.

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