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

[L4D/L4D2] Heal Refuse


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-08-2020 , 15:47   Re: [L4D/L4D2] Heal Refuse
Reply With Quote #11

bullet28, nice ability, thanks )
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
bullet28
Member
Join Date: Apr 2012
Old 04-08-2020 , 16:01   Re: [L4D/L4D2] Heal Refuse
Reply With Quote #12

Quote:
Originally Posted by xZk View Post
now try this and it seems to work fine
ehh... not exactly fine heal animation continues to play and progress bar isn't disappearing
bullet28 is offline
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Old 04-09-2020 , 16:20   Re: [L4D/L4D2] Heal Refuse
Reply With Quote #13

Quote:
Originally Posted by bullet28 View Post
ehh... not exactly fine heal animation continues to play and progress bar isn't disappearing
try this i think it works better now
PHP Code:
public Action OnTimerCheckIfInterrupted(Handle timerany healerID) {
    
int healer GetClientOfUserId(healerID);
    if (
healer && healingTarget[healer] != 0) {
        if (
isPlayerAliveSurvivor(healer)) {
            
int item GetPlayerWeaponSlot(healer3);
            
int activeWeapon GetEntPropEnt(healerProp_Send"m_hActiveWeapon");
            if (
item != -&& item == activeWeapon) {
                
char classname[32];
                
GetEntityClassname(itemclassnamesizeof classname);
                if (
StrEqual(classname"weapon_first_aid_kit")) {
                    
//RemovePlayerItem(healer, item);
                    //AcceptEntityInput(item, "Kill");
                    //giveItem(healer, "first_aid_kit");
                    
int target GetEntPropEnt(healerProp_Send"m_useActionTarget");
                    if(
isPlayerAliveSurvivor(target)){
                        
SetEntProp(targetProp_Send"m_iCurrentUseAction"0);
                        
SetEntProp(healerProp_Send"m_iCurrentUseAction"0);
                        
SetEntPropEnt(targetProp_Send"m_useActionOwner", -1);
                        
SetEntPropEnt(targetProp_Send"m_useActionTarget", -1);
                        
SetEntPropEnt(healer,  Prop_Send"m_useActionTarget", -1);
                        
SetEntPropEnt(healerProp_Send"m_useActionOwner", -1);
                        
SetEntPropFloat(targetProp_Send"m_flProgressBarDuration"0.0);
                        
SetEntPropFloat(targetProp_Send"m_flProgressBarStartTime"GetGameTime());
                        
SetEntPropFloat(healerProp_Send"m_flProgressBarDuration"0.0);
                        
SetEntPropFloat(healerProp_Send"m_flProgressBarStartTime"GetGameTime());
                    }
                    
SetEntPropEnt(healerProp_Send"m_hActiveWeapon", -1);
                }
            }
        }
    }

xZk 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 23:50.


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