Raised This Month: $51 Target: $400
 12% 

Solved [H3LP] Status Icon Fade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-14-2017 , 08:03   [H3LP] Status Icon Fade
Reply With Quote #1

Hello. How can I use the StatusIcon message to show an icon from this list : https://i.ytimg.com/vi/6oPGjA5-4AM/maxresdefault.jpg , the dmg_snow or whatever it is called, but with a fade effect just like when the player takes damage. I tried flash mode but it doesn't fade, all I can do is show or hide it without the effect. Thanks !

Last edited by DarthMan; 12-14-2017 at 10:00. Reason: Solved
DarthMan is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 12-14-2017 , 09:12   Re: [H3LP] Status Icon Fade
Reply With Quote #2

Hi.
try to use :
PHP Code:
ExecuteHamBHam_TakeDamage 
ex from my code:
PHP Code:
ExecuteHamBHam_TakeDamagepEntityEnt pevInflictorflAdjustedDamageDMG_BLAST 8); 
in hlsdk_const you can find :
Quote:
// Instant damage values for use with gmsgDamage 3rd value write_long(BIT)
#define DMG_GENERIC 0 // Generic damage was done
#define DMG_CRUSH (1<<0) // Crushed by falling or moving object
#define DMG_BULLET (1<<1) // Shot
#define DMG_SLASH (1<<2) // Cut, clawed, stabbed
#define DMG_BURN (1<<3) // Heat burned
#define DMG_FREEZE (1<<4) // Frozen
#define DMG_FALL (1<<5) // Fell too far
#define DMG_BLAST (1<<6) // Explosive blast damage
#define DMG_CLUB (1<<7) // Crowbar, punch, headbutt
#define DMG_SHOCK (1<< // Electric shock
#define DMG_SONIC (1<<9) // Sound pulse shockwave
#define DMG_ENERGYBEAM (1<<10) // Laser or other high energy beam
#define DMG_NEVERGIB (1<<12) // With this bit OR'd in, no damage type will be able to gib victims upon death
#define DMG_ALWAYSGIB (1<<13) // With this bit OR'd in, any damage type can be made to gib victims upon death.
#define DMG_DROWN (1<<14) // Drowning
#define DMG_PARALYZE (1<<15) // Slows affected creature down
#define DMG_NERVEGAS (1<<16) // Nerve toxins, very bad
#define DMG_POISON (1<<17) // Blood poisioning
#define DMG_RADIATION (1<<1 // Radiation exposure
#define DMG_DROWNRECOVER (1<<19) // Drowning recovery
#define DMG_ACID (1<<20) // Toxic chemicals or acid burns
#define DMG_SLOWBURN (1<<21) // In an oven
#define DMG_SLOWFREEZE (1<<22) // In a subzero freezer
#define DMG_MORTAR (1<<23) // Hit by air raid (done to distinguish grenade from mortar)
#define DMG_TIMEBASED (~(0x3fff)) // Mask for time-based damage
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-14-2017 , 09:42   Re: [H3LP] Status Icon Fade
Reply With Quote #3

Quote:
Originally Posted by abdobiskra View Post
Hi.
try to use :
PHP Code:
ExecuteHamBHam_TakeDamage 
ex from my code:
PHP Code:
ExecuteHamBHam_TakeDamagepEntityEnt pevInflictorflAdjustedDamageDMG_BLAST 8); 
in hlsdk_const you can find :
I used the hamsandwich way on my AdminMod admin commands port for the fire command, but I tought there was another way t do it so i won't ahve to sue ham only for 1 function. Guess I'll use Ham then .Thanks anyways. !

Oh wait, I can just use the damage message.

Last edited by DarthMan; 12-14-2017 at 09:49.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-14-2017 , 10:01   Re: [H3LP] Status Icon Fade
Reply With Quote #4

Problem solved using the Damage MsgId
DarthMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-14-2017 , 10:05   Re: [H3LP] Status Icon Fade
Reply With Quote #5

Quote:
Originally Posted by DarthMan View Post
I used the hamsandwich way on my AdminMod admin commands port for the fire command, but I tought there was another way t do it so i won't ahve to sue ham only for 1 function. Guess I'll use Ham then .Thanks anyways. !

Oh wait, I can just use the damage message.
:facepalm:
__________________
HamletEagle 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 18:18.


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