Raised This Month: $32 Target: $400
 8% 

Solved custom sprite


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-14-2022 , 10:54   custom sprite
Reply With Quote #1

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
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-17-2022 at 12:56.
kww is offline
hellmonja
Senior Member
Join Date: Oct 2015
Old 04-17-2022 , 10:11   Re: custom sprite
Reply With Quote #2

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

Last edited by hellmonja; 04-17-2022 at 10:11.
hellmonja is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-17-2022 , 12:55   Re: custom sprite
Reply With Quote #3

Quote:
Originally Posted by hellmonja View Post
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
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-17-2022 at 12:57.
kww is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


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