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

[TF2] Fix Player Civillian animation


Post New Thread Reply   
 
Thread Tools Display Modes
toazron1
Senior Member
Join Date: Oct 2006
Old 03-16-2010 , 18:44   Re: [TF2] Fix Player Civillian animation
Reply With Quote #11

block the attack with sdkhooks
__________________
toazron1 is offline
Send a message via AIM to toazron1
Mnkras
Senior Member
Join Date: Mar 2009
Location: 127.0.0.1
Old 03-16-2010 , 20:35   Re: [TF2] Fix Player Civillian animation
Reply With Quote #12

or the losing animation

remove all weapons apply that animation?
__________________
Mnkras is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 03-17-2010 , 00:02   Re: [TF2] Fix Player Civillian animation
Reply With Quote #13

Quote:
Originally Posted by Mnkras View Post
or the losing animation

remove all weapons apply that animation?
Wish I knew how to apply the animation without putting the person in thirdperson.

Quote:
Originally Posted by toazron1 View Post
block the attack with sdkhooks
This will work just as well

but... how?
__________________
Mecha the Slag is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 03-17-2010 , 01:42   Re: [TF2] Fix Player Civillian animation
Reply With Quote #14

The way I did it in natural selection was with prethink and setting buttons to ~IN_ATTACK
__________________
toazron1 is offline
Send a message via AIM to toazron1
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 03-17-2010 , 08:46   Re: [TF2] Fix Player Civillian animation
Reply With Quote #15

Quote:
Originally Posted by noodleboy347 View Post
Switches them to another weapon
What about removing two weapons and setting the third to 0 ammo?
Pawn 3-pg is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 03-17-2010 , 12:34   Re: [TF2] Fix Player Civillian animation
Reply With Quote #16

I got an idea, try giving them a weapon, and blocking the firing of it, along with setting it's alpha to 0, better?
__________________
Please, give me some rep if you found what I posted useful. :]
Cooltad is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 03-17-2010 , 14:44   Re: [TF2] Fix Player Civillian animation
Reply With Quote #17

What about giving them one weapon and then removing it's ammo?
FaTony is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 03-17-2010 , 14:52   Re: [TF2] Fix Player Civillian animation
Reply With Quote #18

This is a fairly reliable way of denying a player the ability to attack:
PHP Code:
new g_iMyWeapons = -1;
...
g_iMyWeapons FindSendPropOffs("CBasePlayer""m_hMyWeapons");
...
stock SetClientWeaponDelay(clientFloat:time=0.0)
{
    new 
weaponoffs;
    
decl String:classname[64];
    
    for (new 
011++)
    {
        
weapon GetEntDataEnt2(clientg_iMyWeapons i+4);
        
        if (
weapon > -1)
        {
            
GetEdictClassname(weaponclassnamesizeof(classname));
            
offs FindSendPropOffs(classname"m_flNextPrimaryAttack");
            
            if (
offs > -1)
            {
                
SetEntPropFloat(weaponProp_Send"m_flNextPrimaryAttack"GetGameTime() + time);
                
SetEntPropFloat(weaponProp_Send"m_flNextSecondaryAttack"GetGameTime() + time);
            }
        }
    }
    
    return;

However it has been known to fail on occasions. I prefer stunning the player but then they will enter third person view.
Wazz is offline
Mnkras
Senior Member
Join Date: Mar 2009
Location: 127.0.0.1
Old 03-17-2010 , 15:32   Re: [TF2] Fix Player Civillian animation
Reply With Quote #19

i got it! Remove Melee and secondary weapons set primary ammo to 0 they will have the primary weapon that does nothing! (but taunt kills will still work)
__________________
Mnkras is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 03-18-2010 , 13:59   Re: [TF2] Fix Player Civillian animation
Reply With Quote #20

Quote:
Originally Posted by toazron1 View Post
The way I did it in natural selection was with prethink and setting buttons to ~IN_ATTACK
Bad results. For the client the attacking animation will loop like insane.

Quote:
Originally Posted by Mnkras View Post
i got it! Remove Melee and secondary weapons set primary ammo to 0 they will have the primary weapon that does nothing! (but taunt kills will still work)
that worked actually. Cheers!
__________________

Last edited by Mecha the Slag; 03-18-2010 at 14:38.
Mecha the Slag 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 13:15.


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