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

Recreate TF2's Amputator taunt effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SuperStarPL
Junior Member
Join Date: Feb 2014
Location: Grzegorzówka, Poland
Old 08-26-2015 , 15:33   Recreate TF2's Amputator taunt effect
Reply With Quote #1

I'm trying to recreate the amputator's taunt effect, but for the whole time (when someone switch to medic it will heal nearby players).

I don't even think that what i wrote is at least partially correct, but I leave it as attachment.
Hope someone will help soon
Attached Files
File Type: sp Get Plugin or Get Source (medbuff.sp - 323 views - 1.1 KB)

Last edited by SuperStarPL; 08-26-2015 at 15:54.
SuperStarPL is offline
Send a message via Skype™ to SuperStarPL
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-27-2015 , 11:24   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #2

Quote:
Originally Posted by SuperStarPL View Post
I'm trying to recreate the amputator's taunt effect, but for the whole time (when someone switch to medic it will heal nearby players).

I don't even think that what i wrote is at least partially correct, but I leave it as attachment.
Hope someone will help soon
Interessing well I already done that in MannVsTank, and for you the code
PHP Code:
for(new 1<= MaxClientsi++ )
    {
        if( 
IsValidClient(i) && IsPlayerAlive(i) )
        {
                if(
TF2_GetPlayerClass(i) == TFClass_Medic)
                {
                    new 
Float:pos[3];
                    new 
Float:cpos[3];
                    
Entity_GetAbsOrigin(ipos);
                    for(new 
ii 1ii<= MaxClientsii++)
                    {
                        if(
IsValidClient(ii))
                        {
                            
Entity_GetAbsOrigin(iicpos);
                            new 
Float:Dist GetVectorDistance(poscpos);
                            if(
Dist 300.0 && GetClientTeam(ii) == GetClientTeam(i))
                            {
                                    
TF2_RemoveCondition(ii,TFCond_InHealRadius);
                                
TF2_AddCondition(iiTFCond_InHealRadius1.0);
                                
TF2Attrib_SetByDefIndex(ii,57,5.0);
                            }
                            else
                            {
                            
TF2Attrib_RemoveByDefIndex(ii,57);
                            }
                        }
                    }
                }
            }
        }
    }

Again it's not perfect but it should help
__________________
Benoist3012 is offline
SuperStarPL
Junior Member
Join Date: Feb 2014
Location: Grzegorzówka, Poland
Old 08-27-2015 , 12:04   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #3

Quote:
Originally Posted by Benoist3012 View Post
Interessing well I already done that in MannVsTank, and for you the code
PHP Code:
for(new 1<= MaxClientsi++ )
    {
        if( 
IsValidClient(i) && IsPlayerAlive(i) )
        {
                if(
TF2_GetPlayerClass(i) == TFClass_Medic)
                {
                    new 
Float:pos[3];
                    new 
Float:cpos[3];
                    
Entity_GetAbsOrigin(ipos);
                    for(new 
ii 1ii<= MaxClientsii++)
                    {
                        if(
IsValidClient(ii))
                        {
                            
Entity_GetAbsOrigin(iicpos);
                            new 
Float:Dist GetVectorDistance(poscpos);
                            if(
Dist 300.0 && GetClientTeam(ii) == GetClientTeam(i))
                            {
                                    
TF2_RemoveCondition(ii,TFCond_InHealRadius);
                                
TF2_AddCondition(iiTFCond_InHealRadius1.0);
                                
TF2Attrib_SetByDefIndex(ii,57,5.0);
                            }
                            else
                            {
                            
TF2Attrib_RemoveByDefIndex(ii,57);
                            }
                        }
                    }
                }
            }
        }
    }

Again it's not perfect but it should help
It is showing the particle effect like when using amputator, but it doesn't heal them. MANY Thanks @Benoist3012, it works, but I'll try to play around this.
__________________
Help me...
SuperStarPL is offline
Send a message via Skype™ to SuperStarPL
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-27-2015 , 12:14   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #4

Quote:
Originally Posted by SuperStarPL View Post
It is showing the particle effect like when using amputator, but it doesn't heal them. MANY Thanks @Benoist3012, it works, but I'll try to play around this.
Glad to help , if you have any other questions send a message here or a private message to me .
__________________

Last edited by Benoist3012; 08-27-2015 at 12:15.
Benoist3012 is offline
SoulSharD
Member
Join Date: Oct 2013
Location: United Kingdom
Old 08-27-2015 , 12:26   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #5

Isn't condition 55 what you're looking for?
__________________

SoulSharD is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-28-2015 , 08:00   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #6

Quote:
Originally Posted by SoulSharD View Post
Isn't condition 55 what you're looking for?
No this is the concheror effect.
__________________
Benoist3012 is offline
SoulSharD
Member
Join Date: Oct 2013
Location: United Kingdom
Old 08-28-2015 , 08:04   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #7

55 = "Automatically adds condition 20 and 21 and causes the player and every nearby teammate to begin gaining health as if being healed by the Amputator. The player gets the credit for any healing that occurs. Conditions 20 and 21 are automatically removed when the player ends any taunt, but condition 55 remains active (though it does nothing after this point)."

https://wiki.teamfortress.com/wiki/Cheats
__________________

SoulSharD is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-28-2015 , 08:09   Re: Recreate TF2's Amputator taunt effect
Reply With Quote #8

Yes but 55=TFCond_RadiusHealOnDamage
And I'm not sure when a medic taunt with amputor you can get heal by doing damage on opponents
Add manually the cond 20 and 21 should work
__________________

Last edited by Benoist3012; 08-28-2015 at 08:09.
Benoist3012 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 02:30.


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